Jibble

Author Topic: GUI+MODULE: GodMode 1.01 - See the game through the eyes of the developer!  (Read 4738 times)

Edmundito

  • Mittens Serf
  • Just tween it.
    • Best Innovation Award Winner 2014, for 'Tween Module'
    • Edmundito worked on one or more games that won an AGS Award!
    •  
    • Edmundito worked on one or more games that was nominated for an AGS Award!
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:

You can also disable it and it'll be tucked into a corner while you play the game!

Download
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! :)
« Last Edit: 17 Nov 2010, 04:36 by Edmundito »
The Tween Module now supports AGS 3.5.0!

hedgefield

  • Oh snap!
    • I can help with play testing
    • I can help with translating
    • I can help with voice acting
    • hedgefield worked on one or more games that won an AGS Award!
    •  
    • hedgefield worked on one or more games that was nominated for an AGS Award!
Holy crap that is brilliant. Dragging objects around at runtime sounds super useful, I'll have to take it out for a spin!

tzachs

  • Parking Goat- games that goats like!
    • I can help with translating
    • tzachs worked on one or more games that won an AGS Award!
    •  
    • tzachs worked on one or more games that was nominated for an AGS Award!
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).

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
i don't think there could be a better name for that module!! Way to go Edmundito!! Tween just found its sequel!! :D :D
No more military army stuff. I'm alive and back.

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.

Wow, Edmundito, This is bloody brilliant!

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!

Edmundito! BRAVISSIMO MOLTO FORTE!!!

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

Thanks!




ThreeOhFour

  • Wild colonial boy.
    • Lifetime Achievement Award Winner
    • ThreeOhFour worked on one or more games that won an AGS Award!
    •  
    • ThreeOhFour worked on one or more games that was nominated for an AGS Award!
Good thinking! This is a neat idea :)

This is the most useful module I have ever seen!

Edmundito

  • Mittens Serf
  • Just tween it.
    • Best Innovation Award Winner 2014, for 'Tween Module'
    • Edmundito worked on one or more games that won an AGS Award!
    •  
    • Edmundito worked on one or more games that was nominated for an AGS Award!
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?
The Tween Module now supports AGS 3.5.0!

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!

Wyz

  • anno 1986
    • I can help with making music
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
    • I can help with web design
    • Wyz worked on one or more games that won an AGS Award!
    •  
    • Wyz worked on one or more games that was nominated for an AGS Award!
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
Life is like an adventure without the pixel hunts.

Edmundito

  • Mittens Serf
  • Just tween it.
    • Best Innovation Award Winner 2014, for 'Tween Module'
    • Edmundito worked on one or more games that won an AGS Award!
    •  
    • Edmundito worked on one or more games that was nominated for an AGS Award!
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!
« Last Edit: 16 Nov 2010, 04:18 by Edmundito »
The Tween Module now supports AGS 3.5.0!


oopsy daisy..

I've changed the line, but exactly the same AGS runtime error.

Edmundito

  • Mittens Serf
  • Just tween it.
    • Best Innovation Award Winner 2014, for 'Tween Module'
    • Edmundito worked on one or more games that won an AGS Award!
    •  
    • Edmundito worked on one or more games that was nominated for an AGS Award!
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...!
The Tween Module now supports AGS 3.5.0!


THANK YOU!

Now it works flawlessly!!!


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!