Hacking AGI--changing colours

Brian_Provinciano 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!
smartguy240 thats freaky cuz i was thinking the EXACT same thing last night! :D
sonneveld 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..
AGI1122 I think shake.screen is more important than palette colors. ;)

But I do think that choosing the colors would be a nice feature. :)
Sami_Tervo
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.
Kon-Tiki 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-
Kon-Tiki Can't find the file I need to look in ::)

-Kon-Tiki-
Robin_Gravel
Sami_Tervo wrote:

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
Zero2003 Thats pretty cool brian I might do it when I get Nagi :D