GXT Editor

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
Sektor
Boss
Boss
Posts: 1369
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

GXT Editor

Post by Sektor » 22 Jul 2010, 08:31

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.

User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GXT Editor

Post by elypter » 03 Aug 2010, 23:57

if this is something like a suggestion thread i would like to suggest a textfile import/export method
yur sa'nok ngeyä

User avatar
B-$hep
Immortal
Posts: 531
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: GXT Editor

Post by B-$hep » 07 Aug 2010, 12:43

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.
Last edited by B-$hep on 10 Aug 2010, 08:24, edited 1 time in total.

User avatar
B-$hep
Immortal
Posts: 531
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: GXT Editor

Post by B-$hep » 10 Aug 2010, 08:22

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.
Attachments
GXTEdv3.rar
GTA2 GXT Editor v3.0.0
(240.98 KiB) Downloaded 1070 times

User avatar
Sektor
Boss
Boss
Posts: 1369
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GXT Editor

Post by Sektor » 10 Aug 2010, 08:41

Thank you. Saving window size or at least option to start maximized would be good in all of Jernej's tools.

User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GXT Editor

Post by elypter » 10 Aug 2010, 11:24

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.
yur sa'nok ngeyä

User avatar
B-$hep
Immortal
Posts: 531
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: GXT Editor

Post by B-$hep » 13 Aug 2010, 10:12

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.

User avatar
B-$hep
Immortal
Posts: 531
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: GXT Editor

Post by B-$hep » 24 Aug 2010, 11:22

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.
Attachments
GXTEdv3.0.1.rar
GXT Editor v3.0.1
(243.13 KiB) Downloaded 4237 times

User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GXT Editor

Post by elypter » 24 Aug 2010, 16:37

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

yur sa'nok ngeyä

BenMillard
Immortal
Posts: 889
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GXT Editor

Post by BenMillard » 19 Sep 2010, 23:24

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.

User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GXT Editor

Post by elypter » 20 Sep 2010, 14:46

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.
yur sa'nok ngeyä

BenMillard
Immortal
Posts: 889
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GXT Editor

Post by BenMillard » 21 Sep 2010, 19:02

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.
Last edited by BenMillard on 21 Sep 2010, 19:07, edited 1 time in total.

User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: GXT Editor

Post by Gustavob » 21 Sep 2010, 19:06

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
You just lost the game.

BenMillard
Immortal
Posts: 889
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GXT Editor

Post by BenMillard » 08 May 2011, 12:23

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?
Last edited by BenMillard on 09 May 2011, 10:56, edited 2 times in total.

User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GXT Editor

Post by elypter » 08 May 2011, 18:35

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.
yur sa'nok ngeyä

BenMillard
Immortal
Posts: 889
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GXT Editor

Post by BenMillard » 26 Jan 2013, 20:48

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.

User avatar
Sektor
Boss
Boss
Posts: 1369
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GXT Editor

Post by Sektor » 27 Jan 2013, 02:11

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

User avatar
B-$hep
Immortal
Posts: 531
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: GXT Editor

Post by B-$hep » 28 Jan 2013, 23:25

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.
Always wear safety glasses while programming.

User avatar
Sektor
Boss
Boss
Posts: 1369
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GXT Editor

Post by Sektor » 29 Jan 2013, 02:16

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.

Logofero
Serial Killer
Serial Killer
Posts: 258
Joined: 09 Dec 2015, 14:18
GH nick: Logofero

Re: GXT Editor

Post by Logofero » 13 Dec 2015, 13:01

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.
Attachments
gta2 2015-12-13 12-38-42-18.jpg
SNAG-0002.png
SNAG-0004.png
GTA2 2015-12-13 12-24-47-29.jpg
SNAG-0001.png
SNAG-0001.png (38.28 KiB) Viewed 32688 times
SNAG-0000.png
SNAG-0000.png (39.41 KiB) Viewed 32688 times
Russian_Translation[bob_r].7z
(2.11 KiB) Downloaded 817 times
Russian_Translation[r.gxt].7z
(56.87 KiB) Downloaded 804 times

Post Reply