Page 9 of 19
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 12 Jan 2011, 21:24
by Cuban-Pete
I made a test version. It does work rather nice, that php stuff.
I had the luck that the xampp server contained example php image code.
Try it out:
http://lars.stonerocket.co.uk/gta2/txt2gta2/
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 12 Jan 2011, 21:59
by T.M.
Nice, all you need now is font selector and colors.
Do you read the fonts from .sty file?
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 12 Jan 2011, 22:17
by Cuban-Pete
TradeMark wrote:Nice, all you need now is font selector and colors.
Do you read the fonts from .sty file?
No, from a simple .tff, I'm not that good programmer.
I also tried to make an overload/flow protector. Something that prevents users pressing too often on 'fire' and cause the free server to stop working. They won't like that. I tried to write the time() to a txt file and read it in next load and compare the time. If shorter than 1-3 seconds it should block it. It did work a little, perhaps you got better idea's?
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 12 Jan 2011, 22:38
by B-$hep
Check if IP is same and allow one user only generate text in some defined intervals.
Like only after every 10 or 15 minutes, or something like that.
Like rapidshare.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 01 Mar 2011, 17:02
by Cuban-Pete
As you might know I have a version 4 that works with .net and opengl and looks pretty nice

, but I ran stuck with shader crap. Because lots of stuff was unclear (like, I didn't even know about pointers), I decided to start a version 3.5. This version will go back to basics and will have a command line interface and run on windows/ubuntu/osx you name it - it's all basic c++. Also the file size will be nice and small. After this version I can go three ways: 1) continue with version 4 and finish it nicely. 2) restart version 4 going all multi operating systems (lots of work). 3) go to web based version php (lots of learning).
How things go after 3.5, I don't know, but for now I try to finish this version and learn as much as possible.
When I got something worth showing, you guys will be the first to know.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 10 Jul 2011, 21:58
by Cuban-Pete
Cuban-Pete wrote:As you might know I have a version 4 that works with .net and opengl and looks pretty nice

, but I ran stuck with shader crap. Because lots of stuff was unclear (like, I didn't even know about pointers), I decided to start a version 3.5. This version will go back to basics and will have a command line interface and run on windows/ubuntu/osx you name it - it's all basic c++. Also the file size will be nice and small. After this version I can go three ways: 1) continue with version 4 and finish it nicely. 2) restart version 4 going all multi operating systems (lots of work). 3) go to web based version php (lots of learning).
How things go after 3.5, I don't know, but for now I try to finish this version and learn as much as possible.
When I got something worth showing, you guys will be the first to know.

Screw no GUI, that is so 2008 (late). I made a better version with SFML and a custom GUI. For now the GUI (buttons mainly) can keep up with my wishes, but maybe in the future it will need to be replaced by a real GUI and not a home made one.
Anyway,
![[respect] [respect]](./images/smilies/powerups/respect.png)
try a very early beta version and tell me what you think:
- beta release 3.5.7z
- known bugs:
- generate image is wrong.
- coloring example does not look the same
- clicking bottom half of letter does not change color - (454.24 KiB) Downloaded 617 times
//note sure if I can respond this week
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 11 Jul 2011, 03:55
by Sektor
Typing without an cursor is funny
It reminds me of those animations in TV shows and movies that show fake applications/typing.
cmd opens when I click on the filename
I like it. It has style.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 11 Jul 2011, 05:45
by Cuban-Pete
Sektor wrote:Typing without an cursor is funny
It reminds me of those animations in TV shows and movies that show fake applications/typing.
cmd opens when I click on the filename
I like it. It has style.
Thanks.
The cmd opens and starts explorer to go to the folder with the saved image. I don't know any other way to it besides calling "system()". On my win7 cmd closes directly, but on vista it stayed open while the folder is open... a bit weird.
I might add a cursor option, maybe a old school one that blinks a horizontal line.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 11 Jul 2011, 05:51
by Sektor
You can use ShellExecute API to open the default file manager to a specific folder.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 06 Sep 2011, 04:31
by Salamander
I got TXT2GTA2-3.0.1 to run in wine-1.3.27 by installing dotnet20 and vcrun2008 using
winetricks. Seems to work fine.
Cuban-Pete you could improve it by coding it in a cross-platform toolkit, and by immediately updating the preview image as text is typed.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 06 Sep 2011, 04:41
by Salamander
TXT2GTA2 beta release 3.5.7 somewhat works using wine as well, also needs vcrun2008, not sure about dotnet20.
Clicking the two color boxes at the top-right and then clicking on text does change its color, only strangely enough the pink box makes the text blue. Saving works, but the area saved is displaced by roughly 30-50 pixels vertically, see this output image:
Screenshot:
Another screenshot:

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 06 Sep 2011, 16:39
by Cuban-Pete
Thanks for the feedback. I already had a version that got that problem fixed a month ago, but I did not release it because the coloring system (under the hood) is crap. Currently not enough time to finish it. Unless I keep it this way, but than I need to manually pick all the fontcolors which takes a lot of time. If someone wants to do that for me - please tell me and i'll give some instructions.
btw, it's not 3.5.7 ... it's 3.5 in a 7zip file.
Here is a better beta version:
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 06 Sep 2011, 20:52
by B-$hep
Clicking on color boxes does nothing.
I cant choose color because it just doesn't work.
And why is text quality so poor? Looks very blocky.
Previous version generated smooth text. What did you change there?
After clicking many times, trying to change color and closing app it just crashed.
Using XP Pro Eng.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 06 Sep 2011, 21:06
by Cuban-Pete
Can you make a screenshot of "blocky"?
Here it all works perfect and looks perfect... anybody else problems on XP?
Are you sure your videocard driver is up-to-date B-shep?
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 07 Sep 2011, 08:46
by B-$hep
Sorry CB.
Seems that blocky text bug is gone.
I guess my XP is dying, i have to make clean install.
It's getting very old now, i installed it at the beginning of the 2011 i think.
But anyway one bug remains: colors and crash at exit.
Take a look, what your code does when shutting down app, maybe you have little bug there.
Anyway, you have made a good work on this thing.
All the best.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 07 Sep 2011, 16:04
by Cuban-Pete
Yes, that is true. On XP/Vista on exit it gives an error, but that is something in SFML I'm afraid...
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 25 Sep 2011, 23:22
by R4ZZ0R
Nice program, guy. I liked it.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 29 Nov 2011, 21:42
by Cuban-Pete
I went crazy and found Processing (java development thing with aim on graphics).
So here I present a new beta, just to see if it works for all. Even included Mac and Linux version.
The beta is very basic, only text show up, rendering one line in basic color. I made this in one day - way faster than with c++ crap.
In fact, because it is java, there is even a web version:
http://lars.stonerocket.co.uk/gta2/txt2gta2/
Problem with web version is that the user can't save the image. A logical restriction to prevent hackers putting bad programs on your pc.
The future is looking bright again with processing on my side.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 29 Nov 2011, 22:11
by T.M.
Why dont you make a
PHP version? it makes most sense if you want to show it on website too, really easy to make and doesnt need java support etc. the nice thing with PHP is that you can use a PHP script to generate an image which will be usable inside the [img] tags even here on the forums.
not to mention, i dislike java from bottom of my heart.
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Posted: 30 Nov 2011, 07:53
by Cuban-Pete
PHP is so different in syntax and does not have decent image manipulation or I need to work with the real pixeldata which will always be a mess when converting back to an image (not to mention, very slow). Also, real text preview will be a no-go with PHP.
What is wrong with java? It looks a lot like a combo of c++ and python, it works on all operating systems and most people got it installed (which is not with python, bummer). Maybe java is a bit slower in execution, but that does not matter for most of my simple programs.