ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

How do I test a section of my game?

This forum is the place to discuss the older ADRIFT versions 3.9 and 4.0.

Please refer to the ADRIFT 4 Manual for more information.

Postby MikeDesert » Wed Mar 30, 2011 2:32 am

I'm pretty new at this (not having tried to make a text adventure since my TRS-80 days!), so this may be a dumb question- but how do I play/test the game so I don't have to do a bunch of stuff to get to the part I actually want to test?

I can't seem to find it in the PDF and it's driving me insane!
:oh-no:
thanks!
Mike
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland
Points: 10

Postby rotter » Wed Mar 30, 2011 4:54 am

Number of ways really but the way I do it is to create a text file of commands and paste them into the runner. For example
exam bin, get magazine, talk to porter, talk to porter, talk to trainspotter, open door, south, open cabinet, get wallet, exam sofa, get coat, open door, north, give coat to drunk, look, get booklet


So, the above will move you to a certain point in one of my games. The text file contains lots of blocks of text like this to move me to various parts of the game for testing. The other advantage of this is that you also build up a walkthrough that actually works.
Currently working on "The Blank Wall" in ADRIFT 5 and "Again and Again" in Inform 7.
Delron, the home of Otter Interactive Fiction.
User avatar
rotter
 
Posts: 1352
Joined: Sat May 08, 2004 12:12 am
Location: UK
Points: 10

Postby MikeDesert » Wed Mar 30, 2011 2:00 pm

So simple, I never would have thought of it! Thanks!
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland
Points: 10

Postby MikeDesert » Wed Mar 30, 2011 2:02 pm

though it would be great to double-click on a map room and port there for testing...but I guess you'd also have to have all the items as well...
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland
Points: 10

Postby MikeDesert » Wed Mar 30, 2011 2:05 pm

hmmm...the runner is not letting me paste text...
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland
Points: 10

Postby ralphmerridew » Wed Mar 30, 2011 4:52 pm

Another common method is to create "debug verbs":

Command string: "Warp train":
- Runs in first room only
- Condition: No task must be completed
- Action: Move player to train station
- Action: Move ticket to held by player
- Action: Move suitcase to held by player
...

When you have the final release, change the task to "Runs in first room only" to "Doesn't run in any room".


Advantages over rotter's method:
- transcript can take a long time to run through, if it's late in the game
- transcript method may not work if there are random elements

Disadvantages:
- if you don't set the actions correctly, what you test may diverge from what a player will experience.

I recommend using debug verbs to get individual parts ready, then use transcript method for verifying that the game as a whole works.

Also, a drifter wrote a utility called "Script Runner" that can help with the transcript method. Anybody remember who it was / how to get it?
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
ralphmerridew
 
Posts: 2536
Joined: Fri Dec 13, 2002 11:56 pm
Location: Missouri
Points: 10

Postby David Whyld » Wed Mar 30, 2011 5:49 pm

MikeDesert wrote:hmmm...the runner is not letting me paste text...

Right click the command line and select paste from the options.
##################################

In progress: Shadows of the Mind 87k and counting. ETA: sometime in 2018.
David Whyld
 
Posts: 6727
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom
Points: 25

Postby adriftste » Wed Mar 30, 2011 5:59 pm

Also, a drifter wrote a utility called "Script Runner" that can help with the transcript method. Anybody remember who it was / how to get it?


This was user 'phkp' and the script runner can be found at his homepage

http://www.churchmusicorganiser.com/IF/index.html


This is a really useful piece of software for testing and I consider almost essential for v4 users to help in testing
adriftste
 
Posts: 453
Joined: Fri Aug 22, 2008 12:43 pm
Location: England

Postby ralphmerridew » Wed Mar 30, 2011 6:03 pm

Another thing: ADRIFT 4 allows you to do some things with the debugger (move objects around).
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
ralphmerridew
 
Posts: 2536
Joined: Fri Dec 13, 2002 11:56 pm
Location: Missouri
Points: 10

Postby MikeDesert » Wed Mar 30, 2011 8:46 pm

thanks! you guys are the best!
Last place winner of Adrift 2011 Ectocomp
User avatar
MikeDesert
 
Posts: 138
Joined: Wed Mar 30, 2011 2:23 am
Location: Oakland
Points: 10


Return to ADRIFT 3.9 and 4.0

Who is online

Users browsing this forum: No registered users and 6 guests

cron