Walkthrough help

XanMag
01 Nov 2015, 01:49I'm finally beta-testing Xanadu Part 2. I'm making my walk-through. Pardon my ignorance here...
When I go to my walk-through in the GUI editor and click play, it zips through all my recorded commands but it does not add anything to my inventory. The point of me making a walk-through is largely so that I do not have to restart every time I want to test the game. X2 is a LONG game and this would be very tedious. If I don't have the items in my inventory, I cannot test from the point at which I left off. What am I missing?
Thanks in advance.
When I go to my walk-through in the GUI editor and click play, it zips through all my recorded commands but it does not add anything to my inventory. The point of me making a walk-through is largely so that I do not have to restart every time I want to test the game. X2 is a LONG game and this would be very tedious. If I don't have the items in my inventory, I cannot test from the point at which I left off. What am I missing?
Thanks in advance.
The Pixie
01 Nov 2015, 17:39This maybe a stupid question but, are you including the GET commands in the walk-through?

XanMag
01 Nov 2015, 19:38Totally not a stupid question. No. Do I need to do that manually in the walk-through?
The Pixie
01 Nov 2015, 20:33You need everything in the walk through that the player would type.
The easiest way is to use the Record feature. Click on that, and play through the game, taking stuff as the player would. If you already have the start you can Record, and the game will go to where your existing walk-through goes, and will record from there.
The easiest way is to use the Record feature. Click on that, and play through the game, taking stuff as the player would. If you already have the start you can Record, and the game will go to where your existing walk-through goes, and will record from there.

XanMag
01 Nov 2015, 20:40Oh, yes. I did do that, but when it plays through, it adds nothing to my inventory.
The Pixie
01 Nov 2015, 20:44Hmm. I have used walk-throughs a lot and have never encountered that so it is something odd about your game. Try recording a new one (you can have as many as you like) and see if the same thing happens.

XanMag
02 Nov 2015, 00:23Okay. I have found another/the problem. In my game I have a situation early on where success is a random chance. So... let's say when I play the game I am successful on my first try. When I play my recorded steps, if I am not successful on my first try it throws all of my subsequent steps off. Is there a way on the walk-through to indicate that the try is successful no matter what without changing the code for my game? Thanks again!
Currently, I am replaying my recording until I get a first time success. Not very efficient, but it works.
XanMag
Currently, I am replaying my recording until I get a first time success. Not very efficient, but it works.

XanMag
The Pixie
02 Nov 2015, 07:59There is nothing built in to help you. One option would be to set a "cheating" flag on the game object, and add a CHEAT command that sets it to true. Whenever you have a random chance, do something like:
if (RandomChance(40) or game.cheating)
It is none too slick, but will do the job. If you just use RandomChance, rather than GetRandomInt, you could re-write RandomChance itself to check game.cheating.
if (RandomChance(40) or game.cheating)
It is none too slick, but will do the job. If you just use RandomChance, rather than GetRandomInt, you could re-write RandomChance itself to check game.cheating.