intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Sep 24, 2018 5:32 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 165 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17
Author Message
PostPosted: Tue Sep 04, 2018 8:38 am 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 109
I'm looking for trouble but :
Quote:
>throw ball at
(the ball)
(first taking the ball)
Futile.

>throw ball
Futile.

>


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Sep 04, 2018 4:07 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 554
Location: Washington
auraes wrote:
I'm looking for trouble but :
Quote:
>throw ball at
(the ball)
(first taking the ball)
Futile.

>throw ball
Futile.

>


I don't follow what you're suggesting. I can change the grammar entry to this:
Code:
Verb 'throw'
    * noun                                      -> ThrowAt
    * held 'at'/'against'/'on'/'onto' noun      -> ThrowAt;

and now this happens:
Quote:
>throw ball
Futile.

But your first command of THROW BALL AT is incomplete and naturally one would expect the parser to try to guess.

_________________
David Griffith


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 13, 2018 10:41 pm 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 109
There is an error with NO_SCORE in parser.h DrawStatusLine (); Move Cursor (1, posc) is missing:
Code:
   if (width > 53 && width <= 66) {
       MoveCursor(1, posb);
       #Ifdef NO_SCORE;
       print (string) MOVES__TX, sline2;
       #Ifnot;
       print sline1, "/", sline2;
       #Endif;
   }
Missing MoveCursor (1, posc);
Code:
       #Ifnot;
       MoveCursor(1, posc);
       print sline1, "/", sline2;
       #Endif;


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Sep 14, 2018 1:29 pm 
Offline

Joined: Mon Dec 30, 2013 4:55 am
Posts: 109
When we translate, the length of the text constants are different so their positions change too. It concerns all the text constants aligned to the right in the top window.
It's true for posa and posb in DrawStatusLine() with constants SCORE__TX , MOVES__TX, and TIME__TX.
And it's true for DoMenu() with constants PKEY__TX, QKEY1__TX and QKEY2__TX.

I can't find documentation on DoMenu. There is an example in Advent.inf but it is little to understand how it works.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Sep 14, 2018 9:33 pm 
Offline
User avatar

Joined: Mon Dec 12, 2011 7:03 pm
Posts: 554
Location: Washington
auraes wrote:
There is an error with NO_SCORE in parser.h DrawStatusLine (); Move Cursor (1, posc) is missing:
Code:
   if (width > 53 && width <= 66) {
       MoveCursor(1, posb);
       #Ifdef NO_SCORE;
       print (string) MOVES__TX, sline2;
       #Ifnot;
       print sline1, "/", sline2;
       #Endif;
   }
Missing MoveCursor (1, posc);
Code:
       #Ifnot;
       MoveCursor(1, posc);
       print sline1, "/", sline2;
       #Endif;


That was intentional. I intended the "M: 2" style move count to apply for widths of 53 to 66 columns. The "0/0" style is for widths of 52 columns and fewer.

_________________
David Griffith


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 Previous  1 ... 13, 14, 15, 16, 17

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Eleas, ralphmerridew and 6 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