GTAMP.com

Grand Theft Auto Media Press
It is currently Wed May 22, 2013 9:45 pm

All times are UTC




Post new topic Reply to topic  [ 345 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 18  Next
Author Message
PostPosted: Wed Jan 12, 2011 9:24 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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. :D

Try it out:
http://lars.stonerocket.co.uk/gta2/txt2gta2/

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Wed Jan 12, 2011 9:59 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 825
Location: F21B3EED
Nice, all you need now is font selector and colors.

Do you read the fonts from .sty file?

_________________
My GTA2 related projects:


Top
 Profile  
 
PostPosted: Wed Jan 12, 2011 10:17 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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?

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Wed Jan 12, 2011 10:38 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 411
Location: Estonia
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.


Top
 Profile  
 
PostPosted: Tue Mar 01, 2011 5:02 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
As you might know I have a version 4 that works with .net and opengl and looks pretty nice :P , 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. :)

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Sun Jul 10, 2011 9:58 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
Cuban-Pete wrote:
As you might know I have a version 4 that works with .net and opengl and looks pretty nice :P , 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. :D

Anyway, [respect] try a very early beta version and tell me what you think:

Attachment:
File comment: known bugs:
- generate image is wrong.
- coloring example does not look the same
- clicking bottom half of letter does not change color

beta release 3.5.7z [454.24 KiB]
Downloaded 38 times


//note sure if I can respond this week

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Mon Jul 11, 2011 3:55 am 
Online
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 980
Location: GTAMP.com
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.


Top
 Profile  
 
PostPosted: Mon Jul 11, 2011 5:45 am 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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. :D

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.

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Mon Jul 11, 2011 5:51 am 
Online
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 980
Location: GTAMP.com
You can use ShellExecute API to open the default file manager to a specific folder.


Top
 Profile  
 
PostPosted: Tue Sep 06, 2011 4:31 am 
Offline
Janitor
User avatar

Joined: Wed Apr 01, 2009 8:38 pm
Posts: 142
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.


Last edited by Salamander on Tue Sep 06, 2011 5:30 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Tue Sep 06, 2011 4:41 am 
Offline
Janitor
User avatar

Joined: Wed Apr 01, 2009 8:38 pm
Posts: 142
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:
Image



Screenshot:
Image

Another screenshot:
Image


Last edited by Salamander on Tue Sep 06, 2011 5:33 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Tue Sep 06, 2011 4:39 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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:
Attachment:
beta release 3.5 v2.7z [454.31 KiB]
Downloaded 27 times

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Tue Sep 06, 2011 8:52 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 411
Location: Estonia
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.

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
PostPosted: Tue Sep 06, 2011 9:06 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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?

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Wed Sep 07, 2011 8:46 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 411
Location: Estonia
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.

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
PostPosted: Wed Sep 07, 2011 4:04 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
Yes, that is true. On XP/Vista on exit it gives an error, but that is something in SFML I'm afraid...

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 11:22 pm 
Offline
Ped
User avatar

Joined: Sun Sep 25, 2011 10:38 pm
Posts: 2
Nice program, guy. I liked it. :P

Image


Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 9:42 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
I went crazy and found Processing (java development thing with aim on graphics). [respect]

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. :mrgreen: :| :lol:


Attachments:
txt2gta2 beta v5.7z [220.53 KiB]
Downloaded 9 times

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."
Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 10:11 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 825
Location: F21B3EED
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.

_________________
My GTA2 related projects:


Top
 Profile  
 
PostPosted: Wed Nov 30, 2011 7:53 am 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 795
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.

_________________
"Only Silky Milky implants by Zaibatsu feel and taste like the real thing."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 345 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 18  Next

All times are UTC


Who is online

Users browsing this forum: Sektor and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group