Page 2 of 3
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 06 Jan 2025, 06:07
by JernejL
It was holidays season. i will check why the tools are not properly calculating palette sizes and post with a fix.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 06 Jan 2025, 07:43
by JernejL
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 07 Jan 2025, 20:57
by Gui7814
Thank you! Now the program is working correctly.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 08 Jan 2025, 00:23
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 08 Jan 2025, 11:25
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 08 Jan 2025, 15:38
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 09 Jan 2025, 07:15
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 09 Jan 2025, 14:06
by Gui7814
the program still has the same problem.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 10 Jan 2025, 07:36
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 11 Jan 2025, 04:14
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?
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 11 Jan 2025, 09:26
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?
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 12 Jan 2025, 19:02
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.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 13 Jan 2025, 10:42
by JernejL
can you send me the image you are importing?
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 26 Jan 2025, 20:23
by Gui7814
JernejL wrote: 13 Jan 2025, 10:42
can you send me the image you are importing?
I don't think the problem is with the clut palette image, since the program saves any clut palette image correctly except if it is the last 11 clut palettes.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 28 Jan 2025, 15:29
by JernejL
i'd still like to have the image file you imported, because it could be related to how your program saves it, that it causes the problem in the clut editor.
I suspect that because if the program loads palette into image, then it has to save properly - the logic to calculate how much bytes to read from and write to file is same.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 28 Jan 2025, 16:11
by Gui7814
JernejL wrote: 28 Jan 2025, 15:29
i'd still like to have the image file you imported, because it could be related to how your program saves it, that it causes the problem in the clut editor.
I suspect that because if the program loads palette into image, then it has to save properly - the logic to calculate how much bytes to read from and write to file is same.
ok, so here it is:
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 29 Jan 2025, 06:20
by JernejL
After you import your palette, export the whole main palette clut to bmp and send that.

Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 29 Jan 2025, 19:47
by Gui7814
JernejL wrote: 29 Jan 2025, 06:20
After you import your palette, export the whole main palette clut to bmp and send that.
here it is:
the index of the replaced clut palette is 960.
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 08 Feb 2025, 19:02
by Gui7814
So, is there any news on this issue?
Re: Is there any way to modify the color palettes of the GTA 1 peds?
Posted: 10 Feb 2025, 19:07
by Gui7814
Will no one answer me?