GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

Add filesize to bench "page" please.

//or dont you see zip difference in file size and only in used bandwidth? :roll:
// is it like gzip?
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

Edit: image test:
Image

the zip is used for text parameter to compress the URL smaller.

I added the filesize now:
http://epicgta2.omnitude.net/gta2text/g ... 3D&z&debug

Edit: added better compression (previous compressed text parameter images may not work)
Last edited by T.M. on 06 Dec 2011, 17:05, edited 1 time in total.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

playing with headers now; added proper filename when you save image to disk (firefox didnt recognize it as a png file, was annoying to type .png myself there!) its using ymdHis date format so its easy to sort your pictures you saved and makes them all unique names.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

Hey that is a good idea. I don't know what exactly you did, but when I now right click on the image in firefox to view it, I get a dialog if I want to download it. This way we only need to add a small "download" button and link to the image and presto! :)
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

WAIT... when you click that image link, it asks to download? :| im not sure if thats a good idea.

lets test:
http://epicgta2.omnitude.net/gta2text/g ... F7fwM%3D&z

Edit: crap, you are right... i dont like it lol

Edit2: fixed it, wont ask for DL anymore, but i could add it as an option on the page? still, i think its pretty useless since you can always right click on any image and press "save image as".

edit3: wtf is wrong with firefox font? WAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWA
looks like:
wtffont.png
wtffont.png (318 Bytes) Viewed 23803 times
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

Render text smooth turned off? Restart?
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

i dont think i changed my settings, but i hate smooth text anyways, im not gonna enable it lol. (makes me feel like something is wrong with my eyes when everything is blurred).

I added timestamps for the images now; its fully automated: if i modify the gta2text.php, then the timestamp will change and thus all images must be reloaded again.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

Wow, sound like a good adjustment.

6 dec 2011 17:24:20

:)
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

how did you get that time btw?
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

not sure if it is correct, but just rmb on image and select image-info -> general info -> altered on: ...

//firefox
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

wtfux? i can only see my current clock time there lol.

ps: i think the changing filename makes the cache not work properly, testing if it does.

Edit: yup, i was right. the timestamp on the image filename messed up cache; when i closed firefox, it didnt load the images from cache anymore! but now i use a hash of the parameters, so the filename never changes for same image. better for saving too; you know if you already saved the file if you try to save it twice.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

added JPG and GIF support!

PNG:
Image 17580 bytes
Image 1720 bytes
JPG:
Image 14305 bytes
Image 11271 bytes
GIF:
Image 14281 bytes
Image 1580 bytes

just add "&gif" or etc in end of the image url 8-)

NOTE: jpg doesnt support transparency :lol:

edit: seems like you were correct, gif is smaller :O
Last edited by T.M. on 06 Dec 2011, 17:37, edited 1 time in total.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

jpg is bull. it is for photo's not for these graphics.

gif is faster in loading and smaller filesize, but it is minimal.

compare: http://epicgta2.omnitude.net/gta2text/g ... 3D&z&debug

to: http://epicgta2.omnitude.net/gta2text/g ... &debug&gif

//did you do palette trick with png already?
Last edited by Cuban-Pete on 06 Dec 2011, 17:38, edited 1 time in total.
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

seems like gif doesnt support transparency either :(

edit: wow, 18ms for GIF and 55ms for PNG :shock:

edit: i havent done palette tricks yet.,
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

Create PNG: 55.4 ms
Create JPG: 23.7 ms
Create GIF: 18.3 ms

JPG is pretty fast too :o

trying to get GIF transparency working now...

edit: i think i can make PNG smaller in filesize than GIF if i use 256 palette for the PNG image too.

edit: i tested png gave 1262 bytes with 16 colors, and gif 1580 bytes with 256 colors, weirdly enough: PNG with 256 color made smaller PNG than with 16 color PNG was, only 1133 bytes :shock:
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

can you make me 256 colored transparent PNG for the file "gta2font_normal_c0.png" ? i'll test if it boosts the rendering speed when theres less colors to draw.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

I get this:
Attachments
more colours
more colours
gta2font_normal_c0.png (5.32 KiB) Viewed 23788 times
256 colours
256 colours
gta2font_normal_c0.png (3.4 KiB) Viewed 23788 times
Last edited by Cuban-Pete on 06 Dec 2011, 17:57, edited 1 time in total.
"Mmmm, your eyes are so beautiful."
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

where is the shiny :(
"Mmmm, your eyes are so beautiful."
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by T.M. »

sc folder is shiny. thanks for the PNG btw. atm im trying to make that damn gif transparent argh... so hard.

edit: your png isnt 256 colored? i see lot less colors. (256 colored PNG should be smaller in filesize) also, can you make the bg to white+transparent?
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Post by Cuban-Pete »

3.4 KB vs 5.32 KB

I did a use index colours in GIMP before saving.

now also added save trans background color, but I have no idea which color it is... gimp does not tell me
Attachments
gta2font_normal_c0.png
gta2font_normal_c0.png (3.4 KiB) Viewed 23786 times
"Mmmm, your eyes are so beautiful."
Post Reply