Author Topic: Hacking AGI--changing colours  (Read 2535 times)

0 Members and 1 Guest are viewing this topic.

Offline Brian Provinciano

Hacking AGI--changing colours
« 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!



Offline Patrick

Re:Hacking AGI--changing colours
« Reply #1 on: May 05, 2003, 06:08:57 AM »
thats freaky cuz i was thinking the EXACT same thing last night!  :D


Offline Nick Sonneveld

Re:Hacking AGI--changing colours
« Reply #2 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..
Nick Sonneveld  |  AGI Dev  |  NAGI

Offline Chris Cromer

Re:Hacking AGI--changing colours
« Reply #3 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. :)
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Sami Tervo

Re:Hacking AGI--changing colours
« Reply #4 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.
Apocalyptic Quest [ http://apocalypticquest.cjb.net ] No Mutants Allowed [ http://www.nma-fallout.com ] Batmud [ http://www.bat.org ]

Kon-Tiki

  • Guest
Re:Hacking AGI--changing colours
« Reply #5 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-

Kon-Tiki

  • Guest
Re:Hacking AGI--changing colours
« Reply #6 on: May 07, 2003, 09:21:45 AM »
Can't find the file I need to look in ::)

-Kon-Tiki-

Offline robingravel

Re:Hacking AGI--changing colours
« Reply #7 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

Offline Zero

Re:Hacking AGI--changing colours
« Reply #8 on: May 11, 2003, 10:48:56 AM »
Thats pretty cool brian I might do it when I get Nagi :D
Zero has just programmed a post please read.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.048 seconds with 22 queries.