is there any way to edit fstyle.sty?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

is there any way to edit fstyle.sty?

Post by Gui7814 »

I wanted to edit fstyle.sty, but I don't know any program that can edit it and not even the programs that edit wil.sty, ste.sty, bil.sty files can edit them, since GTA 2 Sty Tool Can't Save fstyle.sty and GTA 2 STYed Car Editor Can't Load
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

Hello? Nobody will answer me?
User avatar
JernejL
Hitman
Hitman
Posts: 168
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: is there any way to edit fstyle.sty?

Post by JernejL »

The file only contains some menu fonts and is a bit atypical compared to other sty files, it would take a bunch of work to make this work with any tool.

You could save it in gta2 sty editor, then manually remove TILE, DELX, DELS, OBJI, RECY, CARI, SPEC from the file.
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

how? When I try to save fstyle.sty it gives the error "" is not a valid integer value had occured while writing: DELX"
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

JernejL wrote: 06 Jan 2025, 06:06 The file only contains some menu fonts and is a bit atypical compared to other sty files, it would take a bunch of work to make this work with any tool.

You could save it in gta2 sty editor, then manually remove TILE, DELX, DELS, OBJI, RECY, CARI, SPEC from the file.
Is there at least one program that edits only palette cluts of .sty files? Since I'm doing a remake of GTA 2 GBC using GTA 2 for PC and I wanted to change the palettes by replacing the palette cluts colors Of fstyle.sty to only 4 of them to simulate 8-bit graphics.
User avatar
JernejL
Hitman
Hitman
Posts: 168
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: is there any way to edit fstyle.sty?

Post by JernejL »

Ofcourse - my gta2 style editor has similar feature and can edit all palettes at once similar to my g24 editor.
stytoolpaledit.png
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

JernejL wrote: 09 Jan 2025, 07:19 Ofcourse - my gta2 style editor has similar feature and can edit all palettes at once similar to my g24 editor.

stytoolpaledit.png
I meant if there is any program that only edits cluts palettes and nothing else, besides in gta 2 sty tool when trying to save the fstyle.sty it doesn't let me and gives the error "" is not a valid integer value had occurred while writing: DELX"
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

Will no one answer me?
User avatar
JernejL
Hitman
Hitman
Posts: 168
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: is there any way to edit fstyle.sty?

Post by JernejL »

i fixed so my tool can now save it but doesn't correctly handle fonb section for fstyle (font bases for sprite numbers), i might fix that somewhen in the near future and post a fixed version.
User avatar
JernejL
Hitman
Hitman
Posts: 168
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: is there any way to edit fstyle.sty?

Post by JernejL »

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

As far as i tried, it works (load and save) but the only difference is, that it pads palette clut up to 64 palettes (just how editor always worked).
I hope gta2 doesn't crash when loading it, but if it works, it's first time fstyle was properly editable.

FONB section is now preserved to how it was in original file. Before this, the editor just wrote out default bytes sequence for that, as this was same for all sty files (except fstyle).
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

JernejL wrote: 29 Jan 2025, 08:09 Try this:
http://gtamp.com/tdc/gta2stytool_PALB_TEST.7z

As far as i tried, it works (load and save) but the only difference is, that it pads palette clut up to 64 palettes (just how editor always worked).
I hope gta2 doesn't crash when loading it, but if it works, it's first time fstyle was properly editable.

FONB section is now preserved to how it was in original file. Before this, the editor just wrote out default bytes sequence for that, as this was same for all sty files (except fstyle).
I tried saving fstyle.sty without making any changes, I tested it in the game and saw that some texts turned black.
whitetextbug.png
Gui7814
Car Jacker
Car Jacker
Posts: 33
Joined: 05 Aug 2024, 17:45

Re: is there any way to edit fstyle.sty?

Post by Gui7814 »

For some reason, when saving fstyle.sty, the program changes the last 4 colors of all the palette cluts to black, which is why the text in the image I sent you is black.
User avatar
JernejL
Hitman
Hitman
Posts: 168
Joined: 21 Feb 2010, 22:03
GH nick: RedShirt

Re: is there any way to edit fstyle.sty?

Post by JernejL »

You are correct, but i have no idea what would cause this, i will investigate further, but at least we are getting somewhere now.
Post Reply