Very basic question about the quit window

Started by aussie, Fri 23/09/2011 09:35:40

Previous topic - Next topic

aussie

Hi all,
I have been an AGS user for eight years, so I feel a little embarrased to ask this.  :-\
How do you change the quit message ("are you sure you want to quit?") in the current version? It's not with the GUIs and I can't find it doing a search in the global script. ???
Thanks in advance.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

TomatoesInTheHead

I don't know if it's the best/only way to do it, but you can open the Game.agf file in a simple text editor and search for "Message ID="995"". These messages up to ID 999 are the built-in texts.
Make sure the game is not opened in AGS while you edit anything there (and of course, make sure you don't end up with a malformed XML file by deleting any closing tags or something).

aussie

It worked. Thanks.   :D

It's been a long time since the last time I used AGS. I'm still coming to grips with the new editor.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

arj0n

Or change the action that is connected to the ctrl-q keypress in the global script, and use a custom gui.

steptoe

Hi

You could customize the text for the gRestartYN GUI and adjust buttons to restart game and quit..

Simply call it when required from within the script.


hedgefield

Yeah you can quite easily make one yourself. Make a gui called something like gQuit, and put a text label and two buttons on it.
Then replace all instances of QuitGame(1); in your scripts with gQuit.Visible = true;. For the button codes put QuitGame(0); on the OK button and gQuit.Visible = false; on the Cancel button. Then finally you can put whatever text you want in the label, and customize the look of the gui.

Arjunaz78

Quote from: TomatosInTheHead on Fri 23/09/2011 09:50:26
I don't know if it's the best/only way to do it, but you can open the Game.agf file in a simple text editor and search for "Message ID="995"". These messages up to ID 999 are the built-in texts.
Make sure the game is not opened in AGS while you edit anything there (and of course, make sure you don't end up with a malformed XML file by deleting any closing tags or something).

i know i can create custom gRestartYN GUI with adjusted buttons restart & quit game like steptoe has been told,but i want to know how to edit the "Message ID="995"" custom display that include in Game.agf because i've been try to edit with "Message ID="quit already?"" but the editor give an error message as below..why??

..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

monkey0506

That's why you shouldn't be editing the AGF file. The ID is the integer identification number used by the editor to reference the messages. You should not change the ID.

You shouldn't be using that route anyway. You should be creating your own GUI. Those messages are deprecated, and only exist now for backwards compatibility (hence the reason there's no in-editor way of modifying them). That one in particular seems to be the text displayed on the GUI built-in to the editor, that shouldn't be used by games you're planning to release, and exists as a way for testers and developers to implement a Quit method as a placeholder until a proper GUI is created.

SMF spam blocked by CleanTalk