Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Brian Provinciano on May 05, 2003, 02:22:02 AM

Title: Hacking AGI--changing colours
Post by: Brian Provinciano on May 05, 2003, 02:22:02 AM
I received an email today asking about how one would go about changing the message box colours in AGI. If you really want a custom interface, the best thing would be to modify NAGI, as you can easily do anything you like, and do it in C :)

However, if you do want to just change the colours in the original AGI, it's quite simple. Get a hex editor and search for the following hex strings. "xx" means any value. the "[xx xx]" are the values you change.

; window colours
83 xx xx
b8 [xx xx]
50
ff 36 xx xx
ff 36 xx xx
e8 xx xx
83 c4 06


; menu colours
b8 [xx xx]
50
ff 36 xx xx
ff 36 xx xx
e8 xx xx
83 c4 06
8b 44 0c

Happy Hacking!
Title: Re:Hacking AGI--changing colours
Post by: Patrick on May 05, 2003, 06:08:57 AM
thats freaky cuz i was thinking the EXACT same thing last night!  :D
Title: Re:Hacking AGI--changing colours
Post by: Nick Sonneveld on May 06, 2003, 09:14:38 PM
think there'd be demand for a couple of new options in nagi?

or a new cmd to change colours?

- Nick

.. getting new parts today..
Title: Re:Hacking AGI--changing colours
Post by: Chris Cromer on May 06, 2003, 10:19:57 PM
I think shake.screen is more important than palette colors. ;)

But I do think that choosing the colors would be a nice feature. :)
Title: Re:Hacking AGI--changing colours
Post by: Sami Tervo on May 07, 2003, 04:59:26 AM
Quote
or a new cmd to change colours?

Shake.screen(xxx) is quite good because...it's a standard? :) Well, I wouldn't mind if interpreters would try to use even some common commands, like shake.screen for palette-changing, because incase one wishes to distribute both windows and dos-interpreters (E.g. nagi & agi mouse) with his/her game, one doesn't have to create two or more different versions.

And yes, I'm bit narrowminded, but still I wouldn't except too many games using shake.screen (in it's original purpose) with values greater than 100. So this command wouldn't probably harm game making like e.g. mouse-support which has taken push.script-command for it's ungodly purposes.

Anyway, like Chris said, I think also that support for the original function of shake.screen is feature with high priority.
Title: Re:Hacking AGI--changing colours
Post by: Kon-Tiki on May 07, 2003, 07:57:03 AM
WAY TO GO! I was asking for that around the first release of Little Pirate, but they said it was impossible. This just proves once more that nothing's impossible when one knows what he does.
I'll go try this out :)

-Kon-Tiki-
Title: Re:Hacking AGI--changing colours
Post by: Kon-Tiki on May 07, 2003, 09:21:45 AM
Can't find the file I need to look in ::)

-Kon-Tiki-
Title: Re:Hacking AGI--changing colours
Post by: robingravel on May 07, 2003, 10:33:47 AM
Quote
or a new cmd to change colours?
And yes, I'm bit narrowminded, but still I wouldn't except too many games using shake.screen (in it's original purpose) with values greater than 100.

Serguei's destiny and Naturette 2 support palette hacking.



Robin Gravel
Title: Re:Hacking AGI--changing colours
Post by: Zero on May 11, 2003, 10:48:56 AM
Thats pretty cool brian I might do it when I get Nagi :D