intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Feb 23, 2019 4:58 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sat Apr 25, 2015 9:08 am 
Offline

Joined: Tue Apr 08, 2014 8:01 am
Posts: 175
While a lot of people have caught this news already, I thought I'd put it here for completeness sake. Recently I caught the trail of an ancient text adventure creation system, and with the help of Peter Langston (the author) and Anthony Hope, managed to track it down.

https://ahopeful.wordpress.com/2015/04/ ... -is-found/

https://bluerenga.wordpress.com/2015/04 ... -answered/

Quoting from Anthony:

Quote:
Wander was probably the first computer game that is recognisable as what came to be known as a “text adventure” (or “interactive fiction”) – pre-dating even ADVENT (a.k.a. Colossal Cave) by Crowther and Woods!

But Wander was more than that because it seems to have been designed to be a tool to allow users to create “non-deterministic fantasy stories” of their own. So perhaps it would be more accurate to say that Wander was in fact the earliest known precursor to modern interactive-fiction development-systems like Inform 7!


The second link has a ZIP that should compile out of the box. Binaries are being worked on.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 9:41 am 
Offline

Joined: Tue Aug 12, 2014 7:56 pm
Posts: 1668
Binaries would be an excellent thing indeed for some us. :) I'll be eagerly awaiting them.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 9:54 am 
Offline

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 616
I should point out: The source distribution won't compile under Linux:

Code:
cc    -c -o wand1.o wand1.c
cc    -c -o wand2.o wand2.c
wand2.c:311:1: error: unknown type name ‘in’
 in           /* put wrd vals in w[0], w[1],  ... */
 ^
wand2.c: In function ‘fsize’:
wand2.c:850:10: error: ‘FILE’ has no member named ‘_file’
  fstat(fp->_file, &sbuf);
          ^
<builtin>: recipe for target 'wand2.o' failed
make: *** [wand2.o] Error 1


(Tested in Ubuntu Vivid). This is predictable, I assume someone only gave it a pass to make it compile on modern OS X? Maybe the un-massaged files would be a better starting point for people trying to get it to compile with gcc (Which would also probably be the compiler of choice for this on Windows, using cygwin). Apparently this version was written for System V, which puts it pretty much at the oldest edge of software that should still run on today's operating systems, but I'm no C programmer so I have no idea how to get this thing to compile myself.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 10:30 am 
Offline

Joined: Tue Apr 08, 2014 8:01 am
Posts: 175
Just to check, which version of the download did you use? About an hour or so ago I posted a new ZIP which should compile better and also supports save/restore.

(Doesn't mean it won't break on a particular OS, of course.)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 10:34 am 
Offline

Joined: Tue Apr 08, 2014 8:01 am
Posts: 175
ADD ADD: also there was a typo on one line ("in" instead of "int") that's also just now has been fixed.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 10:58 am 
Offline

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 616
Nope, the "fixed" zip won't compile on my system, but I figured it out. Starting on line 845:

Code:
off_t
fsize(FILE *fp)
{
   struct stat sbuf;

   fstat(fp->_file, &sbuf); /* Should be fstat(fp, &sbuf); */
   return(sbuf.st_size);
}


Changing that line gets it to compile and run, though I haven't checked that it won't segfault or die halfway through itself. I don't know if this is a legitimate difference between the libc in Linux and the libc in OS X (So you'd need some platform-specific IFDEFS in there) or just a case where OS X allows something that glibc2 doesn't; try compiling that patch under OS X?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 12:13 pm 
Offline

Joined: Tue Apr 08, 2014 8:01 am
Posts: 175
Jayson Smith has compiled Windows 32-bit binaries. I added it to the links at
https://bluerenga.wordpress.com/2015/04 ... -answered/


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 12:19 pm 
Offline
User avatar

Joined: Tue Jun 05, 2012 4:14 am
Posts: 37
Hi. Anthony "Ant" Hope here.

Jason, thank you for the link and the quote, and for writing about Wander in the first place.

Sequitur, I just tried compiling your patch on OS X 10.6.8 and got this:

Code:
$ make Wander
cc    -c -o wand1.o wand1.c
cc    -c -o wand2.o wand2.c
wand2.c: In function ‘fsize’:
wand2.c:850: warning: passing argument 1 of ‘fstat’ makes integer from pointer without a cast
cc    -c -o wandglb.o wandglb.c
cc    -c -o wandsys.o wandsys.c
cc wand1.o wand2.o wandglb.o wandsys.o -o Wander

But the target does get built, and seems to run fine, at least so far. (I don't fully understand the details of the code, I confess.)

_________________
Retroactive Fiction


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 12:57 pm 
Offline
User avatar

Joined: Sun Apr 29, 2012 6:19 pm
Posts: 35
Surely it should be fstat(fileno(fp), ...)?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 25, 2015 1:03 pm 
Offline

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 616
Aha... yes, indeed it should.


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

All times are UTC - 6 hours [ DST ]


Who is online

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