intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Jan 20, 2019 1:13 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Apr 02, 2015 6:44 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 1545
I've made an online interpreter for Hugo. It's at http://nitku.net/if/hugo/ and some more info in this blog post.

Right now you can only play games that I've pre-compiled for the interpreter, so if you have something you absolutely want to see in the library feel free to suggest it. Later I'll add a feature to upload your own story files or pull them from the Internet. Also note that save games aren't persistent yet, i.e. they'll disappear when you close the page.

In addition I've made a tool to extract data from Hugo .hex story files. It's at http://nitku.net/if/hugo/hexparser/. It can show things like the dictionary, grammar, objects and lots of other things, basically everything that's stored in the story files. Useful for Hugo techies and when you're stuck in a game and want a "hint". It works with games compiled with Hugo version 3.1 (the latest), but the interpreter works with all versions.

_________________
BlogTextureVorple


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Apr 03, 2015 11:24 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5884
As no one has responded -- thanks! This looks like, well, it's a scary way to get the job done but it gets the job done. :)

(Your web server isn't reachable right now, but my web cache says: "a JavaScript version of DOSbox running the DOS version of the text-only Hugo interpreter.")


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Apr 03, 2015 3:51 pm 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 1545
Thanks. The server was down due to technical problems an hour or two but seems to work now. Yes, it's an interpreter on an emulator on another interpreter and the stack goes down as far as the eye can see, but I'm working on a more robust solution so hopefully that'll be a bit cleaner!

_________________
BlogTextureVorple


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Apr 03, 2015 5:39 pm 
Offline

Joined: Tue Aug 12, 2014 7:56 pm
Posts: 1668
It's turtles all the way down!

(for Pratchett fans)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Fri Apr 03, 2015 7:13 pm 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 1037
Location: Greece
That used to be my whole computer there. And now it's running in a window of a web browser.

That always amazes me. Hopefully it's possible to provide a datafile as a URL parameter that can be mounted as a DOS drive? That way one would be a able to load external games.

_________________
@realnc


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

Joined: Tue May 04, 2010 8:19 pm
Posts: 146
And you don't even have to make a boot disk to run your favorite games, ha.

Anyhow, this is super cool!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Apr 04, 2015 7:08 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 10:12 pm
Posts: 461
This will be very useful. Thanks for working on this.

Asking as someone who has designed/implemented in Hugo a little bit without being a serious developer, what's involved in compiling a compatible .hex file?

Edit:
I think I'm getting the same error zarf mentioned. I see "Exception thrown, see JavaScript console" and a DOSBox terminal showing the commands SET BLASTER=A220 I7 D1 H5 T6/MOUNT C "."/C:/CALL HUGO.BAT

And the output of the JavaScript console:
Code:
pre-main prep time: 3629 msclock.html:122 Module.printErr
dosbox.js:1 Uncaught SimulateInfiniteLoop


Oh, just a guess -- maybe part of getting a Hugo game ready for this interpreter stack involves rigging the batch file?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Apr 05, 2015 3:06 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 1545
Sorry, where are you getting this? With all the games in the interpreter site? Which browser are you using?

The system that runs Dosbox needs to load all files in one resource file. Compiling a game involves taking all files (the interpreter, the game file and some misc stuff) and bundling them up. Hugo.bat is needed to call the interpreter with parameters so that it loads the game file.

_________________
BlogTextureVorple


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Apr 05, 2015 5:33 pm 
Offline

Joined: Tue May 04, 2010 8:19 pm
Posts: 146
Paul, if you're asking if the author has to put any special code in the game file, no, it'll play most games just fine, although games with multimedia don't work well.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Apr 06, 2015 6:08 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 10:12 pm
Posts: 461
Juhana wrote:
Sorry, where are you getting this? With all the games in the interpreter site? Which browser are you using?

It was Chrome running on Windows. I got the same result a few minutes ago with at least two or three games in the same browser, but I was surprised to find that Clock actually worked. Then my browser crashed (slow laptop, not the interpreter, I'm sure).

Sorry, this is a terrible test -- even more so because I also tried the interpreter on Chromium running on Linux last night on my desktop PC, and it worked! I want to go through every game in your library on every browser that I have installed on both operating systems, but I don't have any time right now. Maybe I can do the test tomorrow.

Roody_Yogurt wrote:
Paul, if you're asking if the author has to put any special code in the game file, no, it'll play most games just fine, although games with multimedia don't work well.

Excellent -- Roodylib helps degrade for the DOS layer too, if I remember. I would be pleased to see Waiting running in the browser.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 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 5 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