GTAMP.com

Grand Theft Auto Media Press
It is currently Wed Jun 19, 2013 8:56 pm

All times are UTC




Post new topic Reply to topic  [ 345 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 18  Next
Author Message
PostPosted: Wed Feb 17, 2010 8:09 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
And what are you using to draw them?
PictureBox?

It has property Visible, you can set that to true or false.


I don't know what and how you are drawing, so i can't give exact answer.


Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 8:13 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
Yeah, picturebox. If user clicks radio-thing of normal font, it only sees font example, if he click large, he only gets large example.

I also have a different question.

I have in separate .h file my "working" code (doing string checks and all), but I have not been able to get those this-> things working there. How do I do that?
For example, I want to put in this->progressBar->Value = 10 or 50 or etc.

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


Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 10:21 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
I scraped progressbar and released version 3. Please test and tell me how the gui works for you. I'm pretty content about how it turned out. Only the black box popping up is not so nice (however it does give a little information to user that it is working). :D

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


Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 11:22 pm 
Offline
Lunatic

Joined: Sat Jul 19, 2008 2:14 pm
Posts: 421
Location: Poland / Szczecin
cool nut improve formating

what when i would like to do text like:


ababababababa
sdfsdfsdfsdfsdfsdfsdfsdfs
sdfsdfsdfsdfsdfsdfsdfsdfsdfsdfs


now it`s just straight line :<

just noticed strange bug:
Code:
[0]0[1]1[2]2[3]3[4]4[5]5[6]6[7]7[8]8[9]9[10]10[11]11[12]12[13]13[14]14[15]15[16]16[17]17[18]18[19]19

and Result:


Attachments:
result01.png
result01.png [ 3.41 KiB | Viewed 1260 times ]
Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 8:22 am 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
Good bug spotting. :) I know where the bug is, fixing it now.

Multi-line input will take some research before it can work (but I already got idea to make it work).

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


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 5:24 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
I added this text before download link:

Disclaimer: You understand and agree that your use of this program is entirely at your own risk and that the program is provided "As Is" and "As Available".
Copyright: Fonts (images) are taken from Grand Theft Auto 2 (GTA2) game. Original creators are DMA Design (now Rockstar North).

Looks pretty "solid" and correct to me, or?

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


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:02 pm 
Offline
User avatar

Joined: Mon May 18, 2009 9:40 pm
Posts: 390
Location: Nowhere.
Cuban-Pete I noticed that in the version 3.0.1, the colour 19 (Zaibatsu) is lighter than the color 18 (same Zaibatsu color) in the python/1.1 version, you should try to fix that, even because the colour 18 in v1.1 looks more like Zaibatsu than in version 3.0.1 :p (not a real problem, but the darker one is better if someone wants to make a Zaibatsu-like text)

Attachment:
File comment: v1.1
result.png
result.png [ 546 Bytes | Viewed 1240 times ]


Attachment:
File comment: v3.0.1
result07.png
result07.png [ 447 Bytes | Viewed 1240 times ]

_________________
You just lost the game.


Last edited by Gustavob on Thu Feb 18, 2010 7:08 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:07 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
One more idea.
The text generator should show preview of what user will see in result.
So Font Example will show actually your text with the colors without generating images.


Probably difficult to implement but...


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:17 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
I indeed tweaked some colours (#7a8c8f vs #bbbbbb).
v1.1
Attachment:
result.png
result.png [ 550 Bytes | Viewed 1238 times ]

v3.0.1
Attachment:
result02.png
result02.png [ 451 Bytes | Viewed 1238 times ]

I will change the colour in next release, unless you say it's very important. Perhaps there are more "wrong" colours? Please tell now. The problem is that the "colour changer" from imagemagick (program that I use to edit images) does not create exactly the colour you enter so I needed to adjust for that.

Quote:
One more idea.
The text generator should show preview of what user will see in result.
So Font Example will show actually your text with the colors without generating images.


Probably difficult to implement but...

Yeah, I had that idea also, but thought/think it's too difficult for me to make. I'm already glad I got a decent GUI, which is much better than console, also looks more professional. Perhaps in future release. I will put it under "things to do" list.

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


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:29 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
It only takes a second to generate anyway, so you could just display the image after generation.

Showing a proper preview without writing to disk would be a complete new project that doesn't use Image Majik.

I tried making Menu text but it has a transparent background instead of black. Is that normal?


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:34 pm 
Offline
User avatar

Joined: Mon May 18, 2009 9:40 pm
Posts: 390
Location: Nowhere.
Cuban-Pete: I tested it right now and its only the Zaibatsu and Yakuza colours that are lighter in v3.0.1:

Attachment:
File comment: v3.0.1
result08.png
result08.png [ 553 Bytes | Viewed 1232 times ]


Attachment:
File comment: v1.1
result.png
result.png [ 530 Bytes | Viewed 1232 times ]


IMO in both ones, the darker one look more like gang one.

_________________
You just lost the game.


Top
 Profile  
 
PostPosted: Thu Feb 18, 2010 7:52 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
Sektor wrote:
It only takes a second to generate anyway, so you could just display the image after generation.

Showing a proper preview without writing to disk would be a complete new project that doesn't use Image Majik.

I tried making Menu text but it has a transparent background instead of black. Is that normal?


Yes, it has on purpose a transparent background, so you can place it on a different coloured background.
If you want a quick way to add black background, open cmd.exe at txt2gta2 main folder (or navigate to it) and enter:

Code:
imagemagick\convert.exe result03.png -background black -flatten result03.png


where result03.png is the file with the text.

@gustavob, I will also put Yakuza back (but it does look very dark).

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


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 12:12 pm 
Offline
Janitor
User avatar

Joined: Wed Apr 01, 2009 8:38 pm
Posts: 142
I prefer the lighter v3.0.1 version of the gray text. Make sure your monitor is properly calibrated.


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 2:38 pm 
Offline
Lunatic

Joined: Sat Jul 19, 2008 2:14 pm
Posts: 421
Location: Poland / Szczecin
cuban try to create

[#]:

Example:
Code:
[10]:


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 5:46 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
Sorry, I don't understand what you mean, Razor.

I'm not sure what to do with colours (Zaibatsu). I guess it's starting to become personal taste. Perhaps it's an idea to make a separate file where people can set there own colours. However I'm not that good at coding, how do I let it read the colour codes into char array? (.xml ??).

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


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 5:55 pm 
Offline
Lunatic

Joined: Sat Jul 19, 2008 2:14 pm
Posts: 421
Location: Poland / Szczecin
i mean if you chose any color and it text area you will put just ":" and then click to create image the editor will display bug info :)


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 6:08 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
Here it just works. I get an image with ":"

There is still one bug and that is, if you end your text line with [ or [5 it will give error. I got idea how to fix it, but the program users should just pay attention. :D

I do have some error checking, if you enter only a color tag, like [4] it will tell "Could not color the emptiness, please enter a text line" - it's a little joke of me. Or when you enter nothing and press generate it will say "Could not read your mind, please enter a text line" :lol:

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


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 6:15 pm 
Offline
Lunatic

Joined: Sat Jul 19, 2008 2:14 pm
Posts: 421
Location: Poland / Szczecin
weird
Code:
Szczegółowe informacje na temat wywoływania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajdują się na końcu tego komunikatu.

************** Tekst wyjątku **************
System.AccessViolationException: Nastąpiła próba odczytu lub zapisu pamięci chronionej. Często wskazuje to, że inna pamięć jest uszkodzona.
   w strlen(SByte* )
   w GetResultNumber(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   w inpFont012(String textInput, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* folder, Int32 inpFont, Boolean overwriteCheck, String custom8, String custom9)
   w TXT2GTA2_v3.Form1.GenerateImageFile(Object sender, EventArgs e)
   w System.Windows.Forms.Control.OnClick(EventArgs e)
   w System.Windows.Forms.Button.OnClick(EventArgs e)
   w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   w System.Windows.Forms.Control.WndProc(Message& m)
   w System.Windows.Forms.ButtonBase.WndProc(Message& m)
   w System.Windows.Forms.Button.WndProc(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Zestawy załadowane **************
mscorlib
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TXT2GTA2_v3
    Wersja zestawu: 1.0.3700.41216
    Wersja Win32: 3.0.0
    CodeBase: file:///C:/TXT2GTA2_v3/TXT2GTA2_v3.exe
----------------------------------------
msvcm90
    Wersja zestawu: 9.0.30729.4148
    Wersja Win32: 9.00.30729.4148
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e/msvcm90.dll
----------------------------------------
System.Windows.Forms
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
mscorlib.resources
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
    Wersja zestawu: 2.0.0.0
    Wersja Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Debugowanie w trybie JIT **************
Aby włączyć debugowanie w trybie JIT (just-in-time), plik .config tej
aplikacji lub komputera (machine.config) musi mieć
wartość jitDebugging ustawioną w sekcji system.windows.forms.
Aplikacja musi być również skompilowana z włączonym
debugowaniem.

Na przykład:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Gdy debugowanie JIT jest włączone, wszystkie nieobsługiwane wyjątki
są wysyłane do debugera JIT zarejestrowanego na komputerze
i nie są obsługiwane w tym oknie dialogowym.


Image


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 6:19 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
[15]: worked for me.


Top
 Profile  
 
PostPosted: Fri Feb 19, 2010 6:21 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 796
If you use something else, like a letter a,b,c,d etc. Does it than work?

edit: Perhaps it's something with polish (special) characters numbering...

_________________
"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, 2, 3, 4, 5, 6, 7, 8 ... 18  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group