GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
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 »

Cuban-Pete wrote:Thanks for the images. However they look a bit boring, ugly and old. :o So I'm thinking about not putting them in, sorry.

I'm thinking about putting under the current menu font, 2 new fonts. One with logo font (is current menu font), one with the real menu font and one with those circles (posted by razor).

Did I miss any GTA2 font?

It looks like all the smaller menu fonts in GTA2 are just from the big one. So I guess I just have to use the big one and resize it correctly.
Attachments
menu.png
menu.png (27.91 KiB) Viewed 33959 times
"Mmmm, your eyes are so beautiful."
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

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

Post by Gustavob »

Cuban-Pete wrote: I'm thinking about putting under the current menu font, 2 new fonts. One with logo font (is current menu font)
Logo font can be made downloading logo font Microgramma D Bold, then theres no much need to put it into your program unless you really want to. The free font download is here.

Image

Also, it would be cool to have a resizing option (like typing text would change size of font inside the tags).
You just lost the game.
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 »

Sorry, I said it wrong. I meant that there will be:

large menu font (the one in the red bar) (or is that also Microgramma D Bold,?? )
normal menu font (used as menu text, which is just a smaller version of large menu font)
level circles (the ones with '1', '2' and '3' for levels and 'A', 'B' etc for bonus levels.)

but... it is a long way because I'm having trouble with getting the .net image editing working. it's a pain in the butt....

I'm trying to write my own bitmap copy function. That is copies from one big image only specific part to a new image, but it is hard. loop that, x this, y that, color this....

Maybe there is already a function like that? Saves time.... Or something in OpenGL because video-card is faster at image stuff. Perhaps TradeMark knows how to do that?
"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 »

Save options are starting to shape up nicely (it will for example remember your save folder after quitting), but I'm having trouble with public/static/local/global or sumthing. The compiler can't find my static variables from .net form in the other header file. I need to dive back into some tutorials to understand it correctly.

The .net image editing has just made it's first victory. It displayed a custom string. Only font numbering was off, but that should be able to fix. Next is to clean code up and add multi-line support. :)
"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 »

Bollocks, memory usage with new system is huge. Around 50 MB with just 250 characters. There must be something going wrong. Also, with 250 characters the preview is starting to get noticeable slow with updating/refresh.

An image of my desktop (1680x1050) is only 6 MB with .bmp.... and I get with a smaller preview image already 50MB..... :x

edit: it is something with that function just keeps adding and adding, it needs to garbage clean somewhere...
"Mmmm, your eyes are so beautiful."
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

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

Post by Gustavob »

Cuban-Pete wrote: large menu font (the one in the red bar) (or is that also Microgramma D Bold,?? )
yep, its microgramma d bold also. Here is an example image of same text with Microgramma D Bold on notepad proving it:
player quit!.png
player quit!.png (1.24 KiB) Viewed 33937 times
You just lost the game.
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 »

Ah, so it is the same, thanks. :)

I just also checked the font in notepad and when the font is small, it gives bad layout. Like the horizontal lines of the "E" are not spaced equally (test 20pt). So I was thinking about keeping the font in my program, but on the other hand, I might also just remove it, since you could use the 'original font'.
"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 »

I'm way to busy now, so version 4 will not be released for a long long time. Here an impression of what it would have been:
version4_idea.png
version4_idea.png (86.53 KiB) Viewed 33911 times
"Mmmm, your eyes are so beautiful."
Razor
Lunatic
Lunatic
Posts: 456
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

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

Post by Razor »

get your ass to work
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 »

Razor wrote:get your ass to work
I don't have enough time. I need to learn lots of new things to make the next version work proper.

Besides, version 3 (current) works good enough, the next version is more eye candy (ok, multi-line support would be nice). :)
"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 »

This silly image is a major milestone in the development. Enjoy... :mrgreen:
Attachments
dude.png
dude.png (1.52 KiB) Viewed 33663 times
"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 »

I have a test version. Only normal font, no color support and no real save options. Just for testing opengl, how it works. :)

Give it a try, I hope there are no errors. The opengl I used is pretty basic, so most videocards should support it. However opengl 1.1 cards don't support the long texture (2048 wide) so that could be a problem. Anybody know how much opengl 1.1 cards there are? Not much I guess... perhaps only for virtual pc.

//edit: check that file size, freaking sweet I don't need to use imagemagick anymore. oh yeah! :lol: :mrgreen:
Attachments
TXT2GTA2_v4 Opengl Test 1.0.zip
OpenGL Test 1.0
(287.59 KiB) Downloaded 700 times
"Mmmm, your eyes are so beautiful."
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

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

Post by elypter »

very nice. :D
It would be cool if it supports command line too. And an integrate into larger image function would be great too. This way TXT2GTA2 could be used to write map name and author on preview images automatically.
yur sa'nok ngeyä
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 »

Thanks. Perhaps I will add support for command line. I don't know how that works, so will take some time. I put it on dream list for now. :)

To use the program to write on map (preview) images is something that Trademark can better do (in his program), he codes way faster (and probably better) than me.
"Mmmm, your eyes are so beautiful."
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

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

Post by elypter »

About the preview images: I asked him before. Maybe he makes it, but its a bit useless to include a image processing unit only for this feature when there is a program that is specialized to this. I just thought it wouldn't be too much effort to place the generated text(s) with specified coordinates on a given image instead of a new one. But never mind. Just wanted to state that i think this would be nice.
yur sa'nok ngeyä
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 »

elypter wrote:I just thought it wouldn't be too much effort to place the generated text(s) with specified coordinates on a given image instead of a new one.
Imagemagick can do that also with 'command line arguments'. :)

About the command line arguments, just thinking about it, I'm afraid that won't work for my program, because I use opengl (videocard) to draw something and then use what is on screen to make a text image of it. I don't see that working with command line.... not sure...


---

But the opengl test 1.0 version works for you properly? That's good news, so I can move on to multi-line, coloring, saving options and other fonts support.
"Mmmm, your eyes are so beautiful."
User avatar
Sektor
Boss
Boss
Posts: 1453
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

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

Post by Sektor »

It took a while to load but it worked. Good having it stand alone with instant text display.
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

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

Post by elypter »

command line support is usually very simple in every programming language. it doesn't matter what the program is doing.
in c++ :
http://gd.tuwien.ac.at/languages/c/prog ... /c_105.htm
yur sa'nok ngeyä
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 »

Sektor wrote:It took a while to load but it worked. Good having it stand alone with instant text display.
Yeah, the "loading" cursor shows up when the mouse is on opengl part just after the program started, but it's nonsense, it's already done with loading. I have no idea why it does that. You can type right away when the program shows up.

Perhaps I should just place the cursor somewhere else (which is a bit annoying I think) or force a different cursor icon if that is possible.
"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 »

elypter wrote:command line support is usually very simple in every programming language. it doesn't matter what the program is doing.
in c++ :
http://gd.tuwien.ac.at/languages/c/prog ... /c_105.htm
Thanks for the link, but that does not work for windows form application.
"Mmmm, your eyes are so beautiful."
Post Reply