Page 1 of 2

GXT Editor

Posted: 22 Jul 2010, 08:31
by Sektor
B-$hep, Jernej or any Delphi coders, can you modify GXT Editor so it opens e.gxt by default or last opened GXT?

edit: Actually I forgot it supports GXT file from command line and unlike mispad, it doesn't seem to spew an out of bounds error if you don't give the full path name.

Re: GXT Editor

Posted: 03 Aug 2010, 23:57
by elypter
if this is something like a suggestion thread i would like to suggest a textfile import/export method

Re: GXT Editor

Posted: 07 Aug 2010, 12:43
by B-$hep
I will work on it.
All suggestions and stuff is welcome.

Im bored anyway. So i work on different stuff.


Otherwise i will forget many stuff about GTA2 and coding.

Re: GXT Editor

Posted: 10 Aug 2010, 08:22
by B-$hep
OK, i attached the new GXT editor.
The RAR contains the ReadMe.txt file which describes exactly what's fixed, modified, updated or added.

I added the feature Sektor requested: it opens the last used GXT file or e.gxt if it can find it.
Also elypter's request: textfile import / export.

ReadMe.txt contains all the info. It's too long to write this all here.

If you have any other bug reports or ideas, etc, let me know.


Enjoy.

Re: GXT Editor

Posted: 10 Aug 2010, 08:41
by Sektor
Thank you. Saving window size or at least option to start maximized would be good in all of Jernej's tools.

Re: GXT Editor

Posted: 10 Aug 2010, 11:24
by elypter
Awesome, thanks! :D
i have 2 other suggestion:
-commandline option to jump to a specified line/entry (could be used by TMs Editor)
-display which lines trigger a vocal wav file
and a question:
In the language list you added Japanese. I looked a bit around and saw that there must have been a Russian and maybe a Japanese GTA2 version. Shouldn't Russian have to be on the list then too? And are these language files available somewhere? They are not in the US/EU version that most of us have. Not that i am speaking Russian or Japanese, but it would be nice for completeness and the ability to test some things. For example with that special characters.

Re: GXT Editor

Posted: 13 Aug 2010, 10:12
by B-$hep
Will do it.
I already created improved version but i couldn't upload it atm.
I will add the functions you asked for and will upload.

Stay tuned.

Re: GXT Editor

Posted: 24 Aug 2010, 11:22
by B-$hep
elypter wrote:-commandline option to jump to a specified line/entry (could be used by TMs Editor)
-display which lines trigger a vocal wav file
What do you mean by that? Can you be more specific?
Show some example.

I added Russian language and many other things are done.
Read the ReadMe.txt file.

I have attached new version.


Share your ideas, suggestions or bug reports.

Re: GXT Editor

Posted: 24 Aug 2010, 16:37
by elypter
B-$hep wrote:
elypter wrote:-commandline option to jump to a specified line/entry (could be used by TMs Editor)
-display which lines trigger a vocal wav file
What do you mean by that? Can you be more specific?
Show some example.
I think the command line option isn't useful anymore since TradeMark plans to do his own gxt file handling in his editor.

the vocal trigger lines are those hardcoded gxt entries that play a sound file eg:

This is from BFF Wipe out:

Code: Select all


IF (random = 1)
DISPLAY_MESSAGE (5050) //CHOCTASTIC!
ENDIF
IF (random = 2)
DISPLAY_MESSAGE (5051) //RASPBERRY RIPPLE!
ENDIF
IF (random = 3)
DISPLAY_MESSAGE (5052) //YOU SHOT YOUR LOAD!
ENDIF
IF (random = 4)
DISPLAY_MESSAGE (5053) //OOH... DID THAT HURT?
ENDIF
IF (random = 5)
DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
ENDIF
IF (random = 6)
DISPLAY_MESSAGE (5057) //EAT LEADEN DEATH, PUNK!
ENDIF
IF (random = 7)
DISPLAY_MESSAGE (5058) //THAT'S GOTTA HURT!
ENDIF
IF (random = 8)
DISPLAY_MESSAGE (5059) //SORRY ABOUT THAT!
ENDIF
IF (random = 9)
DISPLAY_MESSAGE (5060) //XIN LOI, MY MAN!
ENDIF
IF (random = 10)
DISPLAY_MESSAGE (5061) //DAMN SUNDAY DRIVERS!
ENDIF
IF (random = 11)
DISPLAY_MESSAGE (5062) //SUCK IT AND SEE!
ENDIF
IF (random = 12)
DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
ENDIF
IF (random = 13)
DISPLAY_MESSAGE (5031) //Oh, sorry about that... Did that hurt?
ENDIF
IF (random = 14)
DISPLAY_MESSAGE (5032) //Nice work!
ENDIF
IF (random = 15)
DISPLAY_MESSAGE (5015) //Time's up pal
ENDIF
IF (random = 16)
DISPLAY_MESSAGE (5504) //Race On!
ENDIF
IF (random = 17)
DISPLAY_MESSAGE (5501) //Race Over!
ENDIF
IF (random = 18)
DISPLAY_MESSAGE (1124) //JOB COMPLETE!
ENDIF
IF (random = 19)
DISPLAY_MESSAGE (1125) //JOB FAILED!
ENDIF


Re: GXT Editor

Posted: 19 Sep 2010, 23:24
by BenMillard
Sektor wrote:Saving window size or at least option to start maximized would be good in all of Jernej's tools.
Yes, I'd particularly like Mis Pad and Sty Tool to do that.

(EDIT) Please keep command-line support. There is no advantage to Elypter's suggestion of crippling our current tools.

(EDIT2) Strangely, the menu titles don't turn "Windows selection colour" when I hover the mouse over them. If I click them they highlight and the menu items within them highlight, too.

Re: GXT Editor

Posted: 20 Sep 2010, 14:46
by elypter
BenMillard wrote: (EDIT) Please keep command-line support. There is no advantage to Elypter's suggestion of crippling our current tools.
You understood that wrong. I never suggested to remove anything. I just said it's not important to add something that does not exist yet.

Re: GXT Editor

Posted: 21 Sep 2010, 19:02
by BenMillard
Oh yeah, just re-read and noticed what you were quoting. I agree there's no need to add a command-line option which jumps to a particular line.

Having said that, an Edit > Go To Line feature might be useful? (EDIT) In particular for Mis Pad.

Re: GXT Editor

Posted: 21 Sep 2010, 19:06
by Gustavob
BenMillard wrote:Having said that, an Edit > Go To Line feature might be useful?
That one is already there since 3.0.0:
Readme wrote: * What's new in 3.0.0
[...]
+ Added possibility to "Go To" specific line in editor
[...]
Edit:
BenMillard wrote: (EDIT) In particular for Mis Pad.
agreed now :P
Also, in MisPad too, maybe add a better highlighting..

Maybe an option to change the font the editor uses? Low priority ofc but some people may not like current font and would like to use another font

Re: GXT Editor

Posted: 08 May 2011, 12:23
by BenMillard
elypter wrote:I think the command line option isn't useful anymore since TradeMark plans to do his own gxt file handling in his editor.

the vocal trigger lines are those hardcoded gxt entries that play a sound file eg:[...]
Would a list of GTA2 messages which create sounds help? ;) I wrote that up today so it probably isn't complete. (EDIT) It's mostly based on Sektor's Block Fort Frag script, with a from from my Army Base and R* bonus levels.

Most can be triggered using DISPLAY_MESSAGE. Anyone know how the "Your time is extended!" announcement works?

Re: GXT Editor

Posted: 08 May 2011, 18:35
by elypter
yep, that list is useful. i used bff wipeout for that before.
about the time extended i dont know. i think it has to do with some kind of add time to timer command but dont remember clearly.

Re: GXT Editor

Posted: 26 Jan 2013, 20:48
by BenMillard
Hitman Pro detected a couple of viruses in my GTA2GXT.exe file, version 3.0.0.46:
Hitman Pro 3.7.1 Build 186 (64-Bit) wrote:Detection Names
G Data Gen:Trojan.Heur.qmKfrHgMcjdke
Ikarus Trojan.Win32.Spy!IK

Scoring (100.0)
[In red:] One or more antivirus vendors have indicated that the file is malicious.
[In amber:] Entropy (or randomness) indicates the program is encrypted, compressed or obfuscated. This is not typical for most programs.
[In green:] The file appears to be part of an installation package or setup program. This is typical for most programs.
Not sure if it came with these or if it got infected at a later date.

Re: GXT Editor

Posted: 27 Jan 2013, 02:11
by Sektor
It's a false positive, partially triggered because the file is packed with UPX exe compression. Sadly Hitman Pro is not the only scanner to falsely identify it.

Here's a scan of v3.0.1 http://gtamp.com/gta2/tools

Re: GXT Editor

Posted: 28 Jan 2013, 23:25
by B-$hep
Idiots at virustotal are publishing my email.
If you think i sent you a damn virus then don't use it.

I compiled clean executable on clean PC, i compressed it for it to be smaller.
I never send or attach viruses to anyone. I don't know where the sources are for GXTEditor but i find them i can recompile and can upload original exe, without UPX'ing.
If that will satisfy everyone.

Re: GXT Editor

Posted: 29 Jan 2013, 02:16
by Sektor
Uncompressing it with UPX makes less scanners detect it, which is odd since the scanners could decompress it themselves.

virtualtotal.com uncompressed version report.

The uncompressed version shows behavioural information:

Hooking activity:

TYPE: WH_CALLWNDPROC
METHOD: SetWindowsHook (successful)

TYPE: WH_CBT
METHOD: SetWindowsHook (successful)

TYPE: WH_GETMESSAGE
METHOD: SetWindowsHook (successful)

Network activity
UDP communications...

<MACHINE_DNS_SERVER>:53

I guess it thinks some of those are suspicious but it doesn't actually say and those are standard functions.

Re: GXT Editor

Posted: 13 Dec 2015, 13:01
by Logofero
B-$hep wrote:
elypter wrote:-commandline option to jump to a specified line/entry (could be used by TMs Editor)
-display which lines trigger a vocal wav file
What do you mean by that? Can you be more specific?
Show some example.

I added Russian language and many other things are done.
Read the ReadMe.txt file.

I have attached new version.


Share your ideas, suggestions or bug reports.
B-$hep, thank you for this tool.

My report. Hard to say it refers to tool or patch 11.44.

Sektor, can check it out?

I wanted to enable local language Russian:
  • 1. Add a translation r.gxt (I have been translating for the year 2001. For quality I do not answer, because I do not remember how the game looks. And who translated do not know)

    Image

    2. Add a translation bob_r.gxt for GTA Manager - this my translation. In GTA Manager works great. But GXT Editor (in tool bar) shows Spanish.

    Image

    3. All appened files r.gxt, bob_r.gxt in to GTA2/data

    Image

    4. Start GTA2 Manager, change the language of the local Russian

    Image

    5. Start game GTA2...

    Image

    Also multiplayer

    Image

    6. What I see: The language was still English. Although this transfer before I worked in version 9.6. When you start going too multiplayer. Also translation always is English or displays an error message 'GTA2/data/r.gxt invalid' and stopped game
I inform: The local language Russian stopped working in 11.44 but worked in version 9.6.