Adventure Game Studio

AGS Support => Modules, Plugins & Tools => Topic started by: edmundito on Sat 13/11/2010 17:25:01

Title: GUI+MODULE: GodMode 1.01 - See the game through the eyes of the developer!
Post by: edmundito on Sat 13/11/2010 17:25:01
Have you ever ran your game and wished you had placed the character object or gui in a better spot, but you want to fix it without going back to the editor and running the game again? Or maybe you want to play around with placement by moving things around the screen and see if they can look better. Or maybe your testers found a bug and they need to know the proper name of things and want to take a screenshot with a nicer description...

GodMode is meant for that stuff. It shows an enhanced version of the game including hotpot WalkToPoints, a list of everything that is in the room, allows you to click and drag characters, objects, and GUIs around the screen, and allows you to save the last change you made to a log file so that you can go back to the editor and enter those numbers.

This is what it will look like this in your game as long as Debug mode is on:
(http://www.losmunditos.com/images/ags/godmode-1.0.png)
You can also disable it and it'll be tucked into a corner while you play the game!

Download (http://www.losmunditos.com/downloads/ags-godmode/ags-godmode-1.01.zip)
For AGS 3 and above only!

Feel free to post suggestions for things you would like to do while running the game. I may add these ideas to future versions! :)
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: hedgefield on Sat 13/11/2010 18:06:16
Holy crap that is brilliant. Dragging objects around at runtime sounds super useful, I'll have to take it out for a spin!
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: tzachs on Sat 13/11/2010 18:08:37
Wow! This is awesome! Super useful!  :D

Potential enhancements for the future:
* Being able to load the log file in the editor to implement the changes you made in the game.
* Being able to edit the walkable areas as well (probably not possible ATM, due to not having access to the mask at run time afaik).
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: Dualnames on Sat 13/11/2010 18:50:25
i don't think there could be a better name for that module!! Way to go Edmundito!! Tween just found its sequel!! :D :D
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: Ryan Timothy B on Sat 13/11/2010 19:11:40
You should definitely add outlining to the hotspots, regions, etc if you're selecting that mode. It wouldn't be too hard, it would just take a small moment of loading time while it traces out the whole background and saves it to a DynamicSprite until you change rooms.

Anyway, it's a brilliant idea. Hopefully it becomes quite useful to some.
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: Scarab on Sun 14/11/2010 05:53:37
Wow, Edmundito, This is bloody brilliant!

Quote from: Ryan Timothy on Sat 13/11/2010 19:11:40
You should definitely add outlining to the hotspots, regions, etc if you're selecting that mode. It wouldn't be too hard, it would just take a small moment of loading time while it traces out the whole background and saves it to a DynamicSprite until you change rooms.

I was just about to say this. Access to the hotspot and region masks the same way we have access to the walkable area mask would be invaluable for bug finding purposes.

Just speculating here, but one possible feature would be a way to switch the graphics/views of objects, characters and buttons, by use of a drop down box that previews the image.
This would  only have rare uses in the way me make games currently, but this module could lead to basically all of the graphical elements of the game to be made in WYSIWYG style.

Keep up the great work!
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: goodohman on Sun 14/11/2010 08:59:50
Edmundito! BRAVISSIMO MOLTO FORTE!!!

Just tell me why
gGodModeModule.Y = System.ScreenHeight - 12;
complains that the coordinates are out of range?

Thanks!



Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: ThreeOhFour on Sun 14/11/2010 09:24:56
Good thinking! This is a neat idea :)
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: xerca on Sun 14/11/2010 11:05:56
This is the most useful module I have ever seen!
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: edmundito on Sun 14/11/2010 20:43:15
Quote from: goodohman on Sun 14/11/2010 08:59:50
gGodModeModule.Y = System.ScreenHeight - 12;
complains that the coordinates are out of range?

goodohman Oooh! I don't get that problem! A bug it is! Could you comment that line out for now and add this to a room enter (after fadein) event:

Display("gui Y=%d, screen H=%d", gGodModeModule.Y, System.ScreenHeight);

And send me the numbers it displays?

Also would you mind sending me what resolution is your game using? And the exact message of what AGS is telling you when it crashes?
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: goodohman on Mon 15/11/2010 22:57:39
Thanks Edmundito.

The Display() is: gui Y=219, screen H=600

(and the GUI comes all squashed and small on the left middle of the room, just as it is in the Editor)

The error: AGS had a problem running your game [bla bla standard] ..
the actual yellow line: GUI.Y co-ordinates specified are out of range.

The games is 800x600 32bit color. My display res is 1440x900 native.

Thanks again!
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: Wyz on Tue 16/11/2010 00:15:12
Good stuff! this sure will come in handy in the future. I will remember to use it the next time object placement leaves me utterly frustrated. :D
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: edmundito on Tue 16/11/2010 02:55:35
Quote from: goodohman on Mon 15/11/2010 22:57:39
Thanks Edmundito.

The Display() is: gui Y=219, screen H=600

(and the GUI comes all squashed and small on the left middle of the room, just as it is in the Editor)

The error: AGS had a problem running your game [bla bla standard] ..
the actual yellow line: GUI.Y co-ordinates specified are out of range.

The games is 800x600 32bit color. My display res is 1440x900 native.

Thanks again!


Oh of course! The gui system, depending on which version you use does not have an equivalent coordinates as the screen.... I will check that out and put up a new version. Will let you guys know soon!


Edit! New version is up... it was one line change:

System.ViewportHeight  instead of System.ScreenHeight.

Let me know if that works!
Title: Re: GUI+MODULE: GodMode 1.0 - See the game through the eyes of the developer!
Post by: goodohman on Tue 16/11/2010 20:50:20

oopsy daisy..

I've changed the line, but exactly the same AGS runtime error.
Title: Re: GUI+MODULE: GodMode 1.01 - See the game through the eyes of the developer!
Post by: edmundito on Wed 17/11/2010 04:37:57
Well this is most interesting. And I learned a few things... so, 1.01 is out!

First, yeah I was wrong with that fix... that didn't make much sense! :D

Second, I think we may have found a bug (or intended bad behavior?) with AGS in that I can't set the gui Y to beyond 200 during the game_start() event. I have to do it on the room enter event at the earliest. So things should be fine now.

I stuck in a couple of guis resized for 640 and 800 resolutions! So try importing the new version of the module, the 800 sized gui and let me know if it works out...!
Title: Re: GUI+MODULE: GodMode 1.01 - See the game through the eyes of the developer!
Post by: goodohman on Wed 17/11/2010 07:48:05

THANK YOU!

Now it works flawlessly!!!
Title: Re: GUI+MODULE: GodMode 1.01 - See the game through the eyes of the developer!
Post by: goodohman on Sat 20/11/2010 03:58:35

I hope I don't become synonym with complaints :O

but...

Please note that when selecting a character and dragging him to trigger a room leave,
The game will crash because some of the vars in godmodule are not updated I think

Big Thanks for your great contribution!