intfiction.org

The Interactive Fiction Community Forum
It is currently Wed May 22, 2013 12:40 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Feb 28, 2011 10:51 am 
Offline

Joined: Mon Jun 29, 2009 5:51 am
Posts: 288
I've made new releases of the Windows Glulxe and Windows Git interpreters, available from here
http://ifarchive.org/indexes/if-archiveXprogrammingXglulxXinterpretersXglulxe.html
http://ifarchive.org/indexes/if-archiveXprogrammingXglulxXinterpretersXgit.html
http://www.davidkinder.co.uk/glulxe.html

The underlying interpreters have not changed: what is new is an update to the Glk implementation, Windows Glk. This brings support for the shiny new Glk 0.7.1 and 0.7.2 features: control over line input echoing and terminator characters; Unicode string decomposition and normalization; and access to the system's date and time.

One part of Glk 0.7.1 that has not entirely been handled is the new "no window border" flag that can be passed to the Glk function that opens windows. Windows Glk defaults to showing no borders anyway, but if window borders are turned on in the Options dialog, then the above "no window border" flag has no effect. This may be looked at at some point in the future.


Top
 Profile Send private message  
 
PostPosted: Mon Feb 28, 2011 2:02 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 679
Location: Seattle
I just went to the 3rd link and downloaded the Glulxe installation program, installed it, ran it, and then released, opened & ran the example programs from the Inform 7 extensions that expose the new Glk features... but they don't work. The gestalt says they aren't supported, and removing the gestalt check to assume they are anyway still doesn't work. Has the new version of Glulxe not landed on its server or something?

EDIT to add: I'm on Windows, and did not try Git.

EDIT2: oh, but downloading Glulxe's Installer from the first link works just fine.

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
 
PostPosted: Mon Feb 28, 2011 4:33 pm 
Offline

Joined: Mon Jun 29, 2009 5:51 am
Posts: 288
Ron Newcomb wrote:
EDIT2: oh, but downloading Glulxe's Installer from the first link works just fine.
The link from my page is to mirror.ifarchive.org, which will re-direct you to a random IF-Archive mirror - unfortunately some of the mirrors take a bit longer to update than others.


Top
 Profile Send private message  
 
PostPosted: Mon Feb 28, 2011 4:57 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 679
Location: Seattle
Ah.


And thank you!

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
 
PostPosted: Tue Mar 01, 2011 3:17 am 
Offline

Joined: Mon Jun 29, 2009 5:51 am
Posts: 288
By the way, do let me know if you find any oddities with the date/time functionality in Windows Glk. I've implemented this in terms of the Windows API, rather than using the Unix/Posix-style functions that Zarf used in CheapGlk and GlkTerm. While this makes the code nice and neat (good) it also means that there's a chance I've made a mistake somewhere (not so good).


Top
 Profile Send private message  
 
PostPosted: Tue Mar 01, 2011 3:49 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 679
Location: Seattle
It seems to work fine at first blush. For the code
Code:
Instead of waiting:
   repeat with foo running from 1 to 3:
      while suspending time:
         say "Seconds & microseconds: [player's seconds]:[player's microseconds].";
         say "Your time is [the player's time].";
         say "Your date is [player's weekday], [player's month] [player's day], [player's year].";
         say "Oh, and your timezone is [the player's timezone].";
         say "Seconds & microseconds: [player's seconds]:[player's microseconds].";
      say "Seconds & microseconds (after suspension): [player's seconds]:[player's microseconds].";
      say line break.
I get this (Glulxe)
Quote:
>z
Seconds & microseconds: 33:781250.
Your time is 11:58 am.
Your date is Tuesday, March 1, 2011.
Oh, and your timezone is -08.
Seconds & microseconds: 33:781250.
Seconds & microseconds (after suspension): 33:781250.

Seconds & microseconds: 33:781250.
Your time is 11:58 am.
Your date is Tuesday, March 1, 2011.
Oh, and your timezone is -08.
Seconds & microseconds: 33:781250.
Seconds & microseconds (after suspension): 33:781250.

Seconds & microseconds: 33:781250.
Your time is 11:58 am.
Your date is Tuesday, March 1, 2011.
Oh, and your timezone is -08.
Seconds & microseconds: 33:781250.
Seconds & microseconds (after suspension): 33:781250.

Which looks correct (at the time I ran it). (This machine is 2.9 GHz, so cycles are measured in nanoseconds, not microseconds.)

Anything specific I should look out for?

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
 
PostPosted: Wed Mar 02, 2011 7:05 am 
Offline

Joined: Mon Jun 29, 2009 5:51 am
Posts: 288
Ron Newcomb wrote:
Anything specific I should look out for?
No, nothing specific. I'm just aware that Windows Glk is probably the only Glk implementation that won't copy Zarf's code verbatim.


Top
 Profile Send private message  
 
PostPosted: Wed Mar 02, 2011 1:40 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2085
Oh, I'll use the native Cocoa toolkit for the iOS version. Just for the sake of variety.

The unit test, again, is at http://eblong.com/zarf/glulx/datetimetest.ulx .


Top
 Profile Send private message  
 
PostPosted: Sat Mar 05, 2011 3:57 am 
Offline

Joined: Mon Jun 29, 2009 5:51 am
Posts: 288
Windows Glk seems okay with your unit test, so hopefully it's right :)


Top
 Profile Send private message  
 
PostPosted: Wed Mar 09, 2011 6:12 pm 
Offline
User avatar

Joined: Fri Feb 25, 2011 7:59 pm
Posts: 12
Location: Chile
Thank you, David. :D

_________________
Eliuk Blau
eliukblau (AT) gmail.com
http://www.caad.es/eliukblau/


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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