Is there any way to modify the color palettes of the GTA 1 peds?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

It was holidays season. i will check why the tools are not properly calculating palette sizes and post with a fix.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

Try this fixed version: https://gtamp.com/tdc/clutedit.7z
Gui7814
Car Jacker
Car Jacker
Posts: 27
Joined: 05 Aug 2024, 17:45

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by Gui7814 »

JernejL wrote: 06 Jan 2025, 07:43 Try this fixed version: https://gtamp.com/tdc/clutedit.7z
Thank you! Now the program is working correctly.
Gui7814
Car Jacker
Car Jacker
Posts: 27
Joined: 05 Aug 2024, 17:45

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by Gui7814 »

wait, I found a bug, for some reason the last 11 palette cluts of style001.g24 only have the first 32 colors and even if you modify one of them and save the file, the program does not save these palettes and therefore these palettes remain unchanged.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

Gui7814 wrote: 08 Jan 2025, 00:23 wait, I found a bug, for some reason the last 11 palette cluts of style001.g24 only have the first 32 colors and even if you modify one of them and save the file, the program does not save these palettes and therefore these palettes remain unchanged.

can you post a picture?

It is possible that not all palettes align perfectly with data in file - since palettes are stored in sets of 64 palettes, but in file - clut_size is specified as direct value, and i only read / write exact clut_size bytes.

I would guess those palettes are not actually in use for anything.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

Turns out i was wrong and the old tool improperly calculates palette location in the file.

https://github.com/mkmkme/OpenGTA/blob/ ... it.cpp#L99

I'll make a fix.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

i made a fix to properly locate position & size of palettes in the file:

https://gtamp.com/tdc/clutedit_FIX.7z

try it.

Gtacars loads the file properly after saving it.
Gui7814
Car Jacker
Car Jacker
Posts: 27
Joined: 05 Aug 2024, 17:45

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by Gui7814 »

JernejL wrote: 09 Jan 2025, 07:15 i made a fix to properly locate position & size of palettes in the file:

https://gtamp.com/tdc/clutedit_FIX.7z

try it.

Gtacars loads the file properly after saving it.
the program still has the same problem.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

Gui7814 wrote: 09 Jan 2025, 14:06
the program still has the same problem.

The gta1 file formats are pain in the ass, it is hard to determine start of palettes and where they end.

Try this: http://gtamp.com/tdc/clutedit_fix2.7z

Try NOT to edit the pixel part beyond end of actor palettes.
Gui7814
Car Jacker
Car Jacker
Posts: 27
Joined: 05 Aug 2024, 17:45

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by Gui7814 »

JernejL wrote: 10 Jan 2025, 07:36
The gta1 file formats are pain in the ass, it is hard to determine start of palettes and where they end.

Try this: http://gtamp.com/tdc/clutedit_fix2.7z

Try NOT to edit the pixel part beyond end of actor palettes.
the program is still not saving these palettes.

When you try to fix it again, wouldn't it be better if you tested the program instead of me to be faster?
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

Gui7814 wrote: 11 Jan 2025, 04:14 the program is still not saving these palettes.

When you try to fix it again, wouldn't it be better if you tested the program instead of me to be faster?

You assume that i can run gta1 on my pc, which i cannot, because i'm compiling this on a remote pc.

So, this time you said it doesn't crash game, but it also didn't save anything?
Gui7814
Car Jacker
Car Jacker
Posts: 27
Joined: 05 Aug 2024, 17:45

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by Gui7814 »

JernejL wrote: 11 Jan 2025, 09:26 So, this time you said it doesn't crash game, but it also didn't save anything?
The program does not save the last 11 palette cluts, the others it saves normally.
User avatar
JernejL
Hitman
Hitman
Posts: 162
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: Is there any way to modify the color palettes of the GTA 1 peds?

Post by JernejL »

can you send me the image you are importing?
Post Reply