intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Feb 22, 2019 10:34 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 165 posts ]  Go to page 1, 2, 3, 4, 5 ... 17  Next
Author Message
PostPosted: Thu Jul 24, 2014 4:26 am 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 576
Location: Washington
I have finished squashing bugs in the Inform Library 6/12 and tagged it for beta. I have also gone through the Unix package, updated it to pull in 6.33 of the compiler and 6/12-beta1 of the Library. These may be downloaded from the IF Archive at http://www.ifarchive.org/indexes/if-arc ... ource.html and http://www.ifarchive.org/indexes/if-arc ... brary.html if you just want the library. It will take a bit of time for the files to arrive there, so in the meantime, see
https://github.com/DavidGriffith/inform6unix and https://github.com/DavidGriffith/inform6lib respectively.

The most noticable difference in the Inform6 for Unix package is that most of the includes have been removed. There has been a snit with the Debian people about whether or not Inform6 could legitimately be included in the Debian repositories given all those include files that had no clear distribution license. There is also a problem of bitrot there. I have therefore trimmed down the includes to those that 1) are known to be freely redistributable and 2) can be expected to work with the current compiler and library. Some of them needed altering to make them work with the alternative narrative voices offered by Library 6/12.

Aside from numerous bugfixes, the most noticable change in the Library is the ability to use first-person or third-person narrative voices. Almost all interactive fiction published so far works in the second-person voice. That is, "EAT COOKIE" causes "You eat the cookie." to be printed. In the first-person voice, this changes to "I eat the cookie". In the third-person voice, this becomes "David eats the cookie.". This can lead to all sorts of interesting new flavors of storytelling. I describe this in greater detail in https://github.com/DavidGriffith/inform ... voices.txt

I know there are still Inform6 users out there. I hear from them all the time. Please take a look at the new Library. Unix users, please check out my new package for building and installing the Inform6 development tools. I don't have the expertise to put together a new Inform6 compiler package for Windows. Would someone please do that for me? This beta will run a week or two. Please let me know what you think and tell me about any bugs you may find.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Jul 24, 2014 10:53 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5921
Thanks for taking this on and working through it. I know I haven't had much time to spare to help.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 28, 2014 12:17 am 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 122
Thank you for this release, we shall continue to use it.

I don't know why the constant 'CONSTANT CLR_CURRENT 0' is not defined in parserm.h of library 6/11 & 6/12. It is very useful with @set_colour foreground background or SetColour(fg, bg). It appears in Chapter VII §42 page 311 of the DM4 manual.

Corrections 'Inform - Support - Patches - DM4 misprints' have not applied to the last html version of the DM4 manual.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 28, 2014 10:43 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5921
I do not expect the DM4 to be updated. (Either for misprints or for the 6/12 changes.) It's a published book by Graham, it's his voice, and I wouldn't feel comfortable posting a version edited by someone else.

However, I'd put up a "What's new in 6/12" addendum document if someone wrote one up.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 28, 2014 4:13 pm 
Offline

Joined: Fri Jul 23, 2010 5:20 pm
Posts: 266
Great! Thanks for all your work! :)

I'm gonna attempt to adapt it to French in the next few days, so i might come back here to ask questions :wink: But this new "narrative voices" feature sounds awesome!!

_________________
http://hlabrande.fr/if


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 28, 2014 11:02 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 576
Location: Washington
I'll prepare an all-inclusive something for what's new in 6/12 when the bugs are all shaken out. In the meantime, you can look at https://github.com/DavidGriffith/inform ... S-6.12.txt and https://github.com/DavidGriffith/inform ... voices.txt.

Right now I have another problem with DROP and implicit takes doing weird illogical things. Also, someone gave me a really good justification for adding a past tense narrative voice to the Library. That's turning out to be very simple.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 28, 2014 11:11 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 576
Location: Washington
auraes wrote:
Thank you for this release, we shall continue to use it.

I don't know why the constant 'CONSTANT CLR_CURRENT 0' is not defined in parserm.h of library 6/11 & 6/12. It is very useful with @set_colour foreground background or SetColour(fg, bg). It appears in Chapter VII §42 page 311 of the DM4 manual.

Corrections 'Inform - Support - Patches - DM4 misprints' have not applied to the last html version of the DM4 manual.


I'm not familiar with the constant CLR_CURRENT. I don't see it in 6/10 or any of the previous versions and don't see it in the DM4. How is it supposed to be used?

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jul 29, 2014 2:35 am 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 122
frotz wrote:
How is it supposed to be used?
CONSTANT CLR_CURRENT 0, It allows to change only one of the two parametrize (foreground, background) of @set_colour. The second is preserved.
Without library :
Code:
CONSTANT CLR_CURRENT 0;
Constant CLR_DEFAULT 1; Constant CLR_BLACK 2; Constant CLR_RED 3; Constant CLR_YELLOW 5; Constant CLR_BLUE 6;
[ color_ f b; @set_colour f b; ];
[ main   key;
   color_ (CLR_YELLOW, CLR_BLUE);
   print "foreground: Yellow, background: Blue^";
   color_ (CLR_RED, CLR_CURRENT);
   print "foreground: Red, background: Blue^";
   color_ (CLR_CURRENT, CLR_BLACK);
   print "foreground: Red, background: Black^";
   color_ (CLR_DEFAULT, CLR_DEFAULT);
   print "foreground: Default, background: Default^";
   @read_char 1 ->key;
];
But with library and SetColour(fg, bg), i can't do that. I always have to define value of foreground and background.
Code:
Constant COLOR;
CONSTANT CLR_CURRENT 0;
Include "parser";  Include "verblib";
Object room "Color Room"
with
   description [;
      SetColour (CLR_YELLOW, CLR_BLUE);
      print "foreground: Yellow, background: Blue^";
      SetColour (CLR_RED, CLR_CURRENT);
      print "foreground: Red, background: Blue^";
      SetColour (CLR_CURRENT, CLR_BLACK);
      print "foreground: Red, background: Black^";
      SetColour (CLR_DEFAULT, CLR_DEFAULT);
      print "foreground: Default, background: Default^";
   ],
has light;
[ initialise; clr_on = 1; location = room; ];
Include "grammar";
And if I want to use colors, I MUST SET CLR_ON TO 1 because in library it is never set, and it's always equal to 0 !?
(Thanks to the (stupid!?) machine translator, it is hard to explain something in a language which is not his!)


Last edited by auraes on Tue Jul 29, 2014 11:52 am, edited 1 time in total.

Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jul 29, 2014 4:14 am 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 576
Location: Washington
Okay, I see what you mean. I've filed a bug report on this. See it at http://inform7.com/mantis/view.php?id=1377. I've applied the solution for Z-machine targets. For Glulx it's trickier. It's tricky because I don't think I've ever successfully compiled an Inform6 program using color control targeting the Glulx VM. To put it bluntly, it doesn't compile. Presumably Zarf wrote those portions of the Library dealing with Glulx color, so... Zarf, would you please take a look at the Glulx version of SetColour() and give me a hand?

_________________
David Griffith


Last edited by DavidG on Tue Jul 29, 2014 4:29 am, edited 1 time in total.

Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jul 29, 2014 4:26 am 
Offline

Joined: Fri Jul 23, 2010 5:20 pm
Posts: 266
Past tense sounds great! :D

By the way, would there be any chance of adding a "plural/singular" flag for the narrative voice? It'd actually be better for French (and presumably Spanish and Italian too), since we have different "you"s (the plural/formal one "vous", which is the one we use, but the informal, personal "tu", which may create an interesting narrative voice for a game); with such a flag we could actually distinguish both and conjugate verbs correctly. It shouldn't be too hard for English since verbs are conjugated almost the same whether it's singular or plural, so you can probably ignore the flag most of the times in the English routines; and then that also means you can have the narratives voices "We" or "They" (like, "The members of the sect wave their hands aimlessly." or "The Pikmin pick up the flower."). I hope it's not too much of a hassle for you to implement this, because it would be really interesting to be able to have both "vous" and "tu" in French.

Thanks a lot !!

_________________
http://hlabrande.fr/if


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 165 posts ]  Go to page 1, 2, 3, 4, 5 ... 17  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group