Page 11 of 19

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

Posted: 30 Nov 2011, 20:20
by Cuban-Pete
Oops!

Code: Select all

Color number:   1
60,56,8,
172,145,86,
141,112,52,

Color number:   2
64,53,36,
179,149,100,
140,116,78,

Color number:   3
91,91,91,
255,255,255,
199,199,199,

Color number:   4
58,74,91,
162,208,255,
126,162,199,

Color number:   5
53,68,84,
149,191,234,
116,149,183,

Color number:   6
0,55,91,
0,153,255,
0,119,199,

Color number:   7
91,91,39,
255,255,110,
199,199,86,

Color number:   8
91,58,28,
255,163,79,
199,127,62,

Color number:   9
84,72,91,
236,203,255,
184,158,199,

Color number:   10
91,35,6,
255,99,18,
199,77,14,

Color number:   11
35,91,9,
97,255,24,
76,199,19,

Color number:   12
91,75,39,
255,210,109,
199,164,85,

Color number:   13
0,44,25,
0,123,70,
0,96,55,

Color number:   14
20,29,91,
56,82,255,
44,64,199,

Color number:   15
79,16,16,
221,44,44,
172,34,34,

Color number:   16
91,65,0,
255,182,0,
199,142,0,

Color number:   17
26,23,91,
73,65,255,
57,51,199,

Color number:   18
67,67,67,
187,187,187,
146,146,146,

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

Posted: 30 Nov 2011, 20:21
by T.M.
the image with 18 colors doesnt have the mixed color from highlight/font color at all, how did you generate that image? and is the highlight actually the highest-light color, and not the mixed one?

edit: looks like you used the mixed highlight color! i checked the paste you sent of 18 colors, it doesnt match with the brightest highlight color in the image!

edit: also managed to fix your image incorrect black color i talked about.

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

Posted: 30 Nov 2011, 20:27
by Cuban-Pete
Image 18 is Zaibatsu, which is like a grey version of the normal font colour. :)

the high-light colour might be a mixed one, because I saw that the normal font colour has like two highlight colours. version 3 of txt2gta2 uses imagemagick color effect filter, maybe it "average" it something.

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

Posted: 30 Nov 2011, 20:29
by Cuban-Pete
T.M. wrote: edit: also managed to fix your image incorrect black color i talked about.
gta2 has nowhere in game real black. real black is transparent colour. so the shadow colour of the font is not perfect black. or did you mean something else?

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

Posted: 30 Nov 2011, 20:39
by T.M.
look in your normal.png file, it has 0,0,0 (pure black) instead of 7,7,7. thats what i mean.

too bad you messed up the highlight color... well i dont think it matters that much, maybe darker is even better :D

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

Posted: 30 Nov 2011, 20:45
by T.M.
theres something wrong with your large font width data? cant get it to work :S

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

Posted: 30 Nov 2011, 20:50
by Cuban-Pete
strange, here it says shadow is 7,7,7 - on all the images I posted. oh well, you won't see the difference anyway. :)

How are you gonna apply the colour change? Changing palette will only work if you change the whole text in a different colour, if someone wants in a text line only one word in red - how then? as soon as you start looping the pixels too find and change a certain colour things get slow (and eating up your server cpu time).
theres something wrong with your large font width data? cant get it to work :S
The array can't be wrong - in my java version it works:
render.png
render.png (9.88 KiB) Viewed 25413 times

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

Posted: 30 Nov 2011, 20:51
by Cuban-Pete
Keep in mind that you need to convert small characters to big for it to work! Only capital are stored in array. :roll:

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

Posted: 30 Nov 2011, 20:54
by T.M.
strange, here it says shadow is 7,7,7 - on all the images I posted. oh well, you won't see the difference anyway. :)
i meant the alphabet image png you sent to me first, not that 18 color thing. there you said you changed some pixels: apparently you used wrong color to change them. now when i want to make this paletted, i needed to change your black color to 7,7,7 so i can generate the palet...
Keep in mind that you need to convert small characters to big for it to work! Only capital are stored in array. :roll:
omg thats it! just noticed it myself: http://epicgta2.omnitude.net/gta2text/? ... PENING%3F1 lol. edit: fixed now though.
How are you gonna apply the colour change? Changing palette will only work if you change the whole text in a different colour, if someone wants in a text line only one word in red - how then? as soon as you start looping the pixels too find and change a certain colour things get slow (and eating up your server cpu time).
i will generate 18 different font images, with paletted (or not) colors. then i just copypaste rectangles from those images!

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

Posted: 30 Nov 2011, 20:56
by Cuban-Pete
Difference is 32?

Code: Select all

65 A
66 B
67 C
68 D
69 E
70 F
71 G
72 H
73 I
74 J
75 K
76 L
77 M
78 N
79 O
80 P
81 Q
82 R
83 S
84 T
85 U
86 V
87 W
88 X
89 Y
90 Z
91 [
92 \
93 ]
94 ^
95 _
96 `
97 a
98 b
99 c
100 d
101 e
102 f
103 g
104 h
105 i
106 j
107 k
108 l
109 m
110 n
111 o
112 p
113 q
114 r
115 s
116 t
117 u
118 v
119 w
120 x
121 y
122 z

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

Posted: 30 Nov 2011, 20:57
by T.M.
yeah i know! PHP has function for that: strtoupper() ;)

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

Posted: 30 Nov 2011, 20:59
by Cuban-Pete
Ooh, lazy PHP. I wanted to do it this way:

Code: Select all

if($val >= 97 || $val <= 122){
	$val = $val - 32;
}

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

Posted: 30 Nov 2011, 21:00
by Cuban-Pete
Image

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

Posted: 30 Nov 2011, 21:02
by Cuban-Pete
Are you up to also doing the car and street font?

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

Posted: 30 Nov 2011, 21:04
by T.M.
car and street font? dunno what those are, but sure!

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

Posted: 30 Nov 2011, 21:08
by T.M.
have you modified the large font too? it has 266 colors total o_O shouldnt it be max 256? or is it using multiple (and similar) palets in gta2? O_O

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

Posted: 30 Nov 2011, 21:09
by Cuban-Pete
T.M. wrote:car and street font? dunno what those are, but sure!
Image

Car font array

Code: Select all

{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,13},{13,6},{19,11},{0,0},{0,0},{0,0},{0,0},{30,5},{0,0},{0,0},{0,0},{0,0},{35,5},{40,11},{51,5},{0,0},{56,12},{68,7},{75,12},{87,12},{99,15},{114,12},{126,12},{138,14},{152,12},{164,12},{176,5},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{181,12},{193,12},{205,12},{217,12},{229,12},{241,12},{253,12},{265,12},{277,9},{286,12},{298,14},{312,12},{324,19},{343,12},{355,12},{367,12},{379,14},{393,12},{405,12},{417,11},{428,13},{441,16},{457,22},{479,15},{494,15},{509,15},{0,0},{0,0},{0,0},{0,0},{0,0},{524,5},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{529,12},{541,12},{553,12},{0,0},{565,12},{0,0},{577,19},{596,12},{608,12},{620,12},{632,12},{644,12},{656,9},{665,9},{674,12},{686,11},{0,0},{697,12},{709,12},{721,12},{733,12},{0,0},{745,12},{0,0},{0,0},{757,12},{769,12},{781,12},{793,12},{0,0},{0,0},{805,13},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{818,12},{0,0},{830,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{842,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{854,12},{0,0},{866,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{878,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{890,15},{0,0},{905,15},{0,0}
There is a standard background size (this one):
background_car.png
background_car.png (12.97 KiB) Viewed 25409 times
But I also like (in txt2gta2 v3 at least) to have auto-size background. I did this with 3 parts. A left side, middle and right side.
background_left.png
background_left.png (3.29 KiB) Viewed 25409 times
background_middle.png
background_middle.png (3.35 KiB) Viewed 25409 times
background_right.png
background_right.png (3.3 KiB) Viewed 25409 times
And of course the main image:
result.png
result.png (3.27 KiB) Viewed 25409 times

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

Posted: 30 Nov 2011, 21:10
by Cuban-Pete
T.M. wrote:have you modified the large font too? it has 266 colors total o_O shouldnt it be max 256? or is it using multiple (and similar) palets in gta2? O_O
Not sure, I used images from version 3. Been a year since I worked on those files.

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

Posted: 30 Nov 2011, 21:14
by elypter
i dont have access to my pc, so get it from the packs
http://gta2dare.omnitude.net/maplist/packs.php

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

Posted: 30 Nov 2011, 21:18
by Cuban-Pete
Stree also has one background size. I did not make this auto-size because it is very visible if you do. Car background is hard to see, but street not.
background_street.png
background_street.png (28.72 KiB) Viewed 25406 times
The array:

Code: Select all

{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,14},{14,6},{20,11},{0,0},{0,0},{0,0},{0,0},{31,6},{0,0},{0,0},{0,0},{0,0},{37,6},{43,12},{55,6},{0,0},{61,15},{76,9},{85,15},{100,15},{115,18},{133,15},{148,15},{163,15},{178,15},{193,15},{0,0},{208,6},{0,0},{0,0},{0,0},{0,0},{0,0},{214,15},{229,15},{244,15},{259,15},{274,14},{288,14},{302,15},{317,15},{332,10},{342,15},{357,17},{374,14},{388,20},{408,15},{423,13},{436,15},{451,16},{467,15},{482,15},{497,14},{511,15},{526,17},{543,20},{563,18},{581,18},{599,16},{0,0},{0,0},{0,0},{0,0},{0,0},{615,6},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{621,6},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{627,15},{642,15},{657,15},{0,0},{672,15},{0,0},{687,25},{712,15},{727,14},{741,14},{755,14},{769,14},{783,10},{793,10},{803,10},{813,11},{0,0},{824,15},{839,13},{852,13},{865,13},{0,0},{878,13},{0,0},{0,0},{891,15},{906,15},{921,15},{936,15},{0,0},{0,0},{951,14},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{965,15},{0,0},{980,15},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{995,14},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{1009,14},{0,0},{1023,15},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{1038,15},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{1053,16},{0,0},{1069,16},{0,0}
The main image:
result.png
result.png (3.7 KiB) Viewed 25406 times