Problem with Dump Text to File

Started by Goot, Sun 23/01/2005 02:05:31

Previous topic - Next topic

Goot

Part of the way though my game, I figured out that I needed have an integer which was always set to the currently playing music track, so I dumped the game text to file (the dialog options, dialog scripts, and room scripts) and used "find on page" to find all the places where "PlayMusic" was. (I did the dialogs so I could use "find on page" to fix a few commonly misspelled words which I had figured out I had been spelling wrong.) Everything seemed to work, (and after the second try I got it to import back in without crashing the gameÃ,  :P ) but then I later found out that not all the PlayMusics had a set global int after them and that all the scripts in the intro room had been replaced by various scripts from rooms 1 and 2Ã,  ??? ) Has anyone else had that problem?

BTW, I've got everything fixed now. I had a backup, so I just took the room 0 script from there and everything works fine. And then I figured out that I didn't need that global int for music after all.Ã,  Ã, ;)

Pumaman

I'm not really sure what your question is, but is there any reason you can't just use GetCurrentMusic?

Goot

Ah, I had searched the manual for something like that, but couldn't find anything.

I was more reporting a bug than asking a question.

QuoteI later found out that not all the PlayMusics had a set global int after them and that all the scripts in the intro room had been replaced by various scripts from rooms 1 and 2

It seems as if not all the room files were dumped to the file, (or the "find on page" thing doesn't work too well  :-\ ) and the intro room (room 0) didn't have the right scripts put back to it. Is it possible that that dump text to file doesn't support having a room 0?

Pumaman

Well, what text editor were you using to edit it (and thus the "Find on page" feature)?

Has anyone else had any problems with the Dump TExt feature?

Which AGS version are you using?

Goot

#4
The text was dumped to wordpad. I think it's possible that I may have just forgotten to set the int for some PlayMusics. However, I checked the text file, and it doesn't contain the room script from intro.crm. I am using AGS v.2.62

SMF spam blocked by CleanTalk