Forum Overview :: The King of Shreds and Patches
 
Re: Automated testing would be a lot easier than that for a text game. by Ice Cream Jonsey 03/07/2010, 1:04pm PST
Fullofkittens wrote:

1: Create an AHK (autohotkey script) for the happy path through the game.
2: any time there's a way that you can diverge from the happy path, create a different AHK. You should be able to build up a library of the keystrokes that it takes to get to all the various parts of the game.
3: create aggregate scripts that take you through all the possible pathways by using #Include on the divergent scripts.

If there's more than one legitimate way to solve the game then you would need a "trunk" script for each.


Huh, had never heard of AutoHotKey. Checking it out right now, thanks for the heads-up.

My theory on randomness in text games is as follows: anything that can be random, yet also defeated by brute force reapplication of the random input is no good. However, there's plenty of opportunity to have a little random fun, as long as the author codes around the other outcome. For instance, early on in my work-in-progress, you can ask a guy to shoot himself in the head. There's a 30% chance he'll do so. If he doesn't, the stuff that comes afterwards is hopefully fun to play through. If he DOES shoot himself, you get a fun bloody graphic and skip a step or two in the ultimate solution.

A thing where a key only works 50% of the time, and if you keep typing >unlock door with key until it works is no good.

I've got a thing setup where cryptids fight each other in an arena, Bard's Tale style. THAT will be impossible to automate completely, as so much of it is based on how the player decides to level up and grow his monsters. But that's fine: if I can concentrate manually there and just be able to press a button and ensure nothing else broke as I make changes, that will be great. My issue in just using output + grep is that I'm never happy with a piece of writing in a WIP. Not because I'm that guy, but because each line can always be made snappier, shorter, better. The way I think I'm going to solve this is by having a compile-time switch for test output routines that print shit like "Made it to the screen where everyone's dead" instead of grepping on actual game text.

This entire thread has been quite valuable to me. Thank you both.


ICJ
PREVIOUS NEXT REPLY QUOTE
 
WHAT DOES THIS LATCH LOOK LIKE HOW DOES IT WORK WHAT AM I SUPPOSED TO DO WITH IT by Bananadine 02/16/2010, 2:59pm PST NEW
    WHAT IS THIS ROWBOAT CRAP by Bananadine 02/16/2010, 5:29pm PST NEW
        Ah okay by Bananadine 02/16/2010, 5:40pm PST NEW
    now I'm really stuck (maybe) by Bananadine 02/20/2010, 6:28pm PST NEW
        This is frustrating by Ice Cream Jonsey 02/20/2010, 7:22pm PST NEW
            Re: This is frustrating by Bananadine 02/20/2010, 8:46pm PST NEW
            oh yeah I meant to play this by jeep 02/20/2010, 9:07pm PST NEW
            Re: This is frustrating by kings of patches etc 05/22/2010, 4:11pm PDT NEW
                I think that's what finally stopped me too! NT by Bananadine 05/22/2010, 4:43pm PDT NEW
                    Re: I think that's what finally stopped me too! by kings of patches etc 05/22/2010, 6:41pm PDT NEW
                        Probably not (I don't remember) NT by Bananadine 05/22/2010, 8:34pm PDT NEW
                Re: This is frustrating by kings of patches etc 05/22/2010, 6:38pm PDT NEW
        stuck for good by Bananadine 02/24/2010, 9:16am PST NEW
            Re: stuck for good by Ice Cream Jonsey 02/24/2010, 10:21am PST NEW
                Postscript by Bananadine 03/06/2010, 4:58pm PST NEW
                    Re: Postscript by Ice Cream Jonsey 03/06/2010, 9:00pm PST NEW
                        Re: Postscript by Bananadine 03/06/2010, 11:26pm PST NEW
                            Automated testing would be a lot easier than that for a text game. by Fullofkittens 03/07/2010, 6:46am PST NEW
                                Re: Automated testing would be a lot easier than that for a text game. by Bananadine 03/07/2010, 7:28am PST NEW
                                Re: Automated testing would be a lot easier than that for a text game. by Ice Cream Jonsey 03/07/2010, 1:04pm PST NEW
                                    Randomness by Fullofkittens 03/07/2010, 1:15pm PST NEW
                                        "manually" should have said "normally" (We need edit buttons and logins) NT by Fullofkittens 03/07/2010, 1:19pm PST NEW
                        Re: Postscript by kings of patches etc 05/22/2010, 6:55pm PDT NEW
        Re: now I'm really stuck (maybe) by Unknown 05/29/2012, 4:52pm PDT NEW
    Isn't this the Derek Smart forum? NT by the obvious joke 03/07/2010, 5:46am PST NEW
    I read this for the first time because of the bump. I thought this game was NT by about '80s lead guitar. -FSBT 05/23/2010, 1:50am PDT NEW
    Re: THE LATCH by Misha 01/05/2012, 4:45pm PST NEW
        Re: THE LATCH by Misha 01/05/2012, 4:50pm PST NEW
            As a doornail NT by Entropy Stew 01/05/2012, 4:53pm PST NEW
                IN BED! NT by that guy 01/05/2012, 5:11pm PST NEW
            Update on my progress! by Bananadine 01/05/2012, 5:58pm PST NEW
                EXAMINE SEARCH by USE LATCH ON SEARCH 01/06/2012, 1:09am PST NEW
 
powered by pointy