Updates to STY Tool by Delfi/JernejL
Re: Updates to STY Tool by Delfi/JernejL
wow thanks for the update.
i have one little suggestion and one bug to report:
-a possibility to open by commandline would allow to assign file types and do dragndrop
-there is a bug when importing some cars and especially deltas.
below a screenshot and the car i was trying to import. it does not only happen with this car.
i have one little suggestion and one bug to report:
-a possibility to open by commandline would allow to assign file types and do dragndrop
-there is a bug when importing some cars and especially deltas.
below a screenshot and the car i was trying to import. it does not only happen with this car.
- Attachments
-
- streicher.zip
- (236.95 KiB) Downloaded 571 times
yur sa'nok ngeyä
Re: Updates to STY Tool by Delfi/JernejL
unforunately there is another more severe error. i never saw it in previous versions. when you start gta2 it fails with the error message: sprite 255 has multiple delta entries.
yur sa'nok ngeyä
Re: Updates to STY Tool by Delfi/JernejL
It's very possible that i broke delta compression code while messing with it, avoid this version until i fix this.
Re: Updates to STY Tool by Delfi/JernejL
I tried again and made backups before every change this time. This time it worked although i think i did not made much differently. I was importing, exporting, changing sprite sizes and car properties. So unfortunately it is not reproducable. Maybe it is only a very rare bug and i was just lucky that it didn't happen in earlier versions. If it helps you i can upload the corrupted file.
Edit:
The other problem, partial importing cars&deltas, already existed in earlier versions. You get around it when you open it in gimp and save them. So it's probably only a tiny change in the format which could be found by winmerge easily i guess.
Edit:
The other problem, partial importing cars&deltas, already existed in earlier versions. You get around it when you open it in gimp and save them. So it's probably only a tiny change in the format which could be found by winmerge easily i guess.
yur sa'nok ngeyä
Re: Updates to STY Tool by Delfi/JernejL
Hmm, well i checked now and there were no changes done to the deltas compressor, can you message me on irc with any samples / ways to reproduce any of problems you reported here?
Re: Updates to STY Tool by Delfi/JernejL
Ok, it appears the reason for deltas being imported wrong is, that the format used by that bitmap is not a totally classic bitmap, but it has some slight differences which cause the 13+ year old delphi RTL library to not read the bmp properly, right now i can't give you any fix for this.. it would require a few hours of coding that i don't have
But any competent delphi coder is welcome to take over development of the tool, i'll make source code availible to whoever is competent and interested in it.
EDIT:
A small update to actually implement some of Elypter's suggestions (fixed gci stuff, jasc .pal export/import, mass. tile export and some other stuff.. in theory opening by command line SHOULD now work. + xpmanifest (sigh..)).
It still doesn't fix the odd 8 bit .bmp importing bug tho (that requires re-saving bmp in gimp or paint shop pro).
http://www.mathpudding.com/temp/gta2stytool.rar
I really didn't think i would be updating this tool after all these years, but if you guys insist on modding this game, i won't stop you
EDIT:
The option there MAKE PERFECT SENSE, just read what it says, if unsure then click the last option to leave the palette alone..
When did you turn into such an arse? You should be the last person to have the right to call ME a weirdo..
But any competent delphi coder is welcome to take over development of the tool, i'll make source code availible to whoever is competent and interested in it.
EDIT:
A small update to actually implement some of Elypter's suggestions (fixed gci stuff, jasc .pal export/import, mass. tile export and some other stuff.. in theory opening by command line SHOULD now work. + xpmanifest (sigh..)).
It still doesn't fix the odd 8 bit .bmp importing bug tho (that requires re-saving bmp in gimp or paint shop pro).
http://www.mathpudding.com/temp/gta2stytool.rar
I really didn't think i would be updating this tool after all these years, but if you guys insist on modding this game, i won't stop you
EDIT:
BenMillard wrote: Re-write the retarded "Yes/No/Cancel" message box about importing tiles with different palettes. Nobody can understand it and the confusion can waste epic amounts of time. Such as the way
The option there MAKE PERFECT SENSE, just read what it says, if unsure then click the last option to leave the palette alone..
BenMillard wrote: Name buttons consistently. "go away!" might be novel to a Slovene weirdo when he's making at app at 4am 6 years ago. But it doesn't make good button text for users, imho.
When did you turn into such an arse? You should be the last person to have the right to call ME a weirdo..
Re: Updates to STY Tool by Delfi/JernejL
Good to see your alive Jernej Not seen you around in ages heh heh, how's things? Better keep this short and not de-rail this thread
- Old School GTA2 Mapper and Scripter.
- Creator of the original GTA2 Scripting tutorials hosted by Ben Millard.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Updates to STY Tool by Delfi/JernejL
Perhaps some more motivation for a next update: I made you a sharper looking icon.JernejL wrote:
I really didn't think i would be updating this tool after all these years, but if you guys insist on modding this game, i won't stop you
What do you think about it?
"Mmmm, your eyes are so beautiful."
Re: Updates to STY Tool by Delfi/JernejL
Cuban: there, included your icon, it's the same link as is posted above.
Pyro: long time no see, i didn't know you still hang around gta2, i think i still have you on my msn.. somewhere, ping me on msn sometimes if you got time.
Pyro: long time no see, i didn't know you still hang around gta2, i think i still have you on my msn.. somewhere, ping me on msn sometimes if you got time.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Updates to STY Tool by Delfi/JernejL
well... your welcome...JernejL wrote:Cuban: there, included your icon, it's the same link as is posted above.
it looks here on my pc a bit weird. i think my icons are set at 48 and it takes my 32pixel and stretch it ugly to 48. I can always make/add an 48 size if you want.
"Mmmm, your eyes are so beautiful."
Re: Updates to STY Tool by Delfi/JernejL
on my pc it looks nice. i tested all sizes in directory opus
yur sa'nok ngeyä
Re: Updates to STY Tool by Delfi/JernejL
update by JernejL:
- info tab also shows physical palette for sprites now.
- info tab text is selectable.
- there is a dragable window splitter between right and left tabs. the right tabs can be made completely invisible if you dont need it.
yur sa'nok ngeyä
-
- Immortal
- Posts: 889
- Joined: 16 May 2009, 06:14
- GH nick: BenMillard
- Location: London, UK
- Contact:
Re: Updates to STY Tool by Delfi/JernejL
Just downloaded from URL in JernejL's message... those are some neat improvements. Command line support especially!
Initial opening time seems faster now. But there's a bit of redraw time while scrolling between pages. If you could somehow "cache" pages which have already been drawn, that would be a perfect compromise between initial speed and in-use speed.
My main remaining requests:
Initial opening time seems faster now. But there's a bit of redraw time while scrolling between pages. If you could somehow "cache" pages which have already been drawn, that would be a perfect compromise between initial speed and in-use speed.
My main remaining requests:
- Remember the window size and position from last time.
- "Word wrap" the pages, so the whole viewport is used. That would also make scrolling vertical, which is more common.
- Make the scrollwheel scroll through the rows. Respect the "number of rows to scroll" setting in Windows, if Delphi can read that. Scrollwheels aren't for moving the focus rectangle - arrow keys are good for that. (If the "word wrap" thing is too hard, making scrollwheel go horizontally by columns would still help.)
- Support PageUp and PageDown keys. My mouse has extra buttons so I can skip up and down. Really handy for web browsing and code editing, would be useful in Sty Tool as well. (Again, can go horizontally if "word wrap" is too hard.)
- Drag-drop opening of .sty is a small convenience which allows re-using the window more easily in some situations.
GTA5 Race, DM & Capture | GTA2 Levels & Coding | GTA2 YouTube Videos
Gran Turismo 6 custom track club(Sign in with PSN details, then follow link again.)
Gran Turismo 6 custom track club(Sign in with PSN details, then follow link again.)
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Updates to STY Tool by Delfi/JernejL
Is it possible that you add an option that the background is not black but purple/pink when I export the images, that way I can easily remove it without taking parts of the image sometimes. Sometimes the icon/image itself also contains black so that is why it goes wrong. Even better would be png support and directly export to png with background set to transparent.
"Mmmm, your eyes are so beautiful."
Re: Updates to STY Tool by Delfi/JernejL
GTA2 File Editor can export as bmp with pink transparency but I agree it should be in STY Tool. I can add a mass export to File Editor if you want it.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Updates to STY Tool by Delfi/JernejL
Thanks for the info, I did not know about file editor. You sure it can export with pink background? It only shows the pink in the editor, not in the exported bmp.Sektor wrote:GTA2 File Editor can export as bmp with pink transparency but I agree it should be in STY Tool. I can add a mass export to File Editor if you want it.
A mass export would be nice, but don't do it if jernejl adds it, else it's double work.
"Mmmm, your eyes are so beautiful."
Re: Updates to STY Tool by Delfi/JernejL
STY Tool has a mass export but I guess you knew that and it doesn't use pink.
I see, File Editor transparency only works on tiles, not sprites. Too bad.
I see, File Editor transparency only works on tiles, not sprites. Too bad.
Re: Updates to STY Tool by Delfi/JernejL
Cuban-Pete wrote:Is it possible that you add an option that the background is not black but purple/pink when I export the images, that way I can easily remove it without taking parts of the image sometimes. Sometimes the icon/image itself also contains black so that is why it goes wrong. Even better would be png support and directly export to png with background set to transparent.
you can do that - edit the palette clut, replace first row with pinkish and use max exporter.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Updates to STY Tool by Delfi/JernejL
nothing changes when I edit the palette. completely nothing. even saving the .sty and re-opening it and the custom palette is gone.
"Mmmm, your eyes are so beautiful."
-
- Immortal
- Posts: 889
- Joined: 16 May 2009, 06:14
- GH nick: BenMillard
- Location: London, UK
- Contact:
Re: Updates to STY Tool by Delfi/JernejL
Edit Car button does nothing in the updated Sty Tool.
I was hoping to make several cars have the same axle positions and collision sizes, so we can have several F1 cars which perform very much like each other. The only differences would be in the actual handling data, rather than strange differences in the .sty file.
The previous edition still works, so I can make progress using that.
I was hoping to make several cars have the same axle positions and collision sizes, so we can have several F1 cars which perform very much like each other. The only differences would be in the actual handling data, rather than strange differences in the .sty file.
The previous edition still works, so I can make progress using that.
GTA5 Race, DM & Capture | GTA2 Levels & Coding | GTA2 YouTube Videos
Gran Turismo 6 custom track club(Sign in with PSN details, then follow link again.)
Gran Turismo 6 custom track club(Sign in with PSN details, then follow link again.)