Page 1 of 1
is there any way to edit fstyle.sty?
Posted: 12 Dec 2024, 23:18
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
Re: is there any way to edit fstyle.sty?
Posted: 06 Jan 2025, 00:53
by Gui7814
Hello? Nobody will answer me?
Re: is there any way to edit fstyle.sty?
Posted: 06 Jan 2025, 06:06
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.
Re: is there any way to edit fstyle.sty?
Posted: 08 Jan 2025, 00:34
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"
Re: is there any way to edit fstyle.sty?
Posted: 08 Jan 2025, 21:13
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.
Re: is there any way to edit fstyle.sty?
Posted: 09 Jan 2025, 07:19
by JernejL
Ofcourse - my gta2 style editor has similar feature and can edit all palettes at once similar to my g24 editor.
Re: is there any way to edit fstyle.sty?
Posted: 09 Jan 2025, 14:09
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"
Re: is there any way to edit fstyle.sty?
Posted: 26 Jan 2025, 20:13
by Gui7814
Will no one answer me?
Re: is there any way to edit fstyle.sty?
Posted: 28 Jan 2025, 15:28
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.
Re: is there any way to edit fstyle.sty?
Posted: 29 Jan 2025, 08:09
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).
Re: is there any way to edit fstyle.sty?
Posted: 29 Jan 2025, 20:01
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.
Re: is there any way to edit fstyle.sty?
Posted: 30 Jan 2025, 03:18
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.
Re: is there any way to edit fstyle.sty?
Posted: 03 Feb 2025, 11:56
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.