Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: geork on Wed 21/07/2010 20:22:12

Title: Script won't change game!
Post by: geork on Wed 21/07/2010 20:22:12
  Hey all!
   I wrote some script yesterday, which worked fine
   I altered that script today, adding new lines and replacing old ones, but the game still ran as if it was using that old script, and not the new one! I tried everything, even editing the entire section out, but the game just plodded along as if it were using yesterdays script!
   Does anyone know how to fix this?
    Thanks
   
Title: Re: Script won't change game!
Post by: Dualnames on Wed 21/07/2010 23:42:30
Perhaps you didn't compile it?

Or the new lines don't get to be executed...
Title: Re: Script won't change game!
Post by: Khris on Wed 21/07/2010 23:47:44
Without getting a look at the script and what you've changed, this is going to be one hell of a difficult puzzle.
> insert worn teddy-bear into teddy-bear-shaped hole

Nothing happens.

> i
You're carrying:
  cluelessness
  your beloved worn teddy-bear
  a huge iron key

> throw teddy-bear at hole

Your attempts at violence will lead you nowhere.

> quit
Do you really want to quit (yes/no)? >
Title: Re: Script won't change game!
Post by: Ryan Timothy B on Thu 22/07/2010 03:15:00
Khris, as I look at it, his post wasn't bewildering and lacking information at all.  Your post was funny, nonetheless. :)

I've had this glitch happen before (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=40948.0).  You'll need to go to Build --> Rebuild All Files.  For some reason it doesn't compile correctly and uses the older game files.
Title: Re: Script won't change game!
Post by: Khris on Thu 22/07/2010 08:37:39
Ah ok, sorry then. This has never happened to me so I assumed it was simply a scripting error.
Title: Re: Script won't change game! (SOLVED)
Post by: geork on Thu 22/07/2010 19:11:31
  Thanks! That worked a treat!
 
  Also: great post Khris! I think the answer was something along the lines of:

> combine teady-bear with huge iron key

You open the door!