"WTG!" What does it mean?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

CVROS
Newcomer
Posts: 1
Joined: February 3rd, 2013, 4:42 pm

"WTG!" What does it mean?

Post by CVROS »

Well, I've been working with this one map I deprotected... attempting to make it workable with triggers 'n' what not. Right when I try to import triggers... one of the two happens:

1. Crashes saying there is not enough storage.
2. It gets sent but is empty.

And this all seems to depend on this "WTG!", heck, if I remove the "!" then it won't crash anymore! yey.. but nothing will be imported. Same for if I remove any other of the letters.
Both this map and a very old, unprotected version of this map both begin with this. Both "WTG!". But only one crashes.

Note: If I delete any other part of the protected versions code it'll still crash. Only if I delete the WTG! (I think) or any part of that will it not crash. So I can delete every single line of code but the WTG! and have it still crash. I find this very strange... but I believe if it is openable without the WTG... surely I can alter some part of the code to make it all openable?
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: "WTG!" What does it mean?

Post by owner123 »

"WTG!" is the header of the war3map.wtg (GUI Triggers) file.
What are you trying to do where that shows up? What triggers are you importing?

If you remove a letter from the WTG, it will no longer recognize the header, and therefore no longer recognize it as a .wtg file, and so it won't try to import. Because it doesn't try to import, nothing gets added, but also nothing crashes.

Are you seeing the "WTG!" in the.. trigger editor? That is not right if so. Post the map.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4427
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: "WTG!" What does it mean?

Post by Bartimaeus »

Spoiler:
(10:58:19) Bartimaeus: Question: so when you say you're "importing" the triggers, what exactly does that mean?
(10:58:28) CVROS: Going to the Trigger Editor in wC3
(10:58:29) CVROS: And clicking
(10:58:33) CVROS: "Import Triggers"
(10:58:42) CVROS: File -> Import Triggers
(10:59:02) Bartimaeus: What type of file are you importing?
(10:59:03) Bartimaeus: .wtg?
(10:59:08) CVROS: Yessss.
(10:59:10) CVROS: .wtg I believe
(10:59:14) Bartimaeus: Where did it come from?
(10:59:23) CVROS: What do you mean?
(10:59:25) CVROS: The map it came from?
(10:59:29) Bartimaeus: The map was originally protected, yes?
(10:59:32) CVROS: Yes
(10:59:41) Bartimaeus: Likely, the .wtg in it was deleted, correct?
(10:59:45) Bartimaeus: So where did your .wtg come from?
(10:59:50) CVROS: No, it was already in there.
(10:59:53) CVROS: When I deprotected it
(10:59:58) Bartimaeus: lol
(11:00:06) Bartimaeus: How about before you "deprotected" it?
(11:00:15) CVROS: I'm not sure.
(11:00:22) CVROS: I couldn't see it until I deprotected it
(11:00:25) CVROS: Unless there is another method
(11:00:35) Bartimaeus: I'll tell you: it very likely was.
(11:00:45) CVROS: I use a deprotected txt on a protected map :o
(11:01:02) CVROS: (MPQ Editor)
(11:01:09) Bartimaeus: Your "triggers" are just automatically generated by whatever deprotection program you used, (likely x-dep), that just consist of one big customscript JASS trigger.
(11:01:37) CVROS: I see...
(11:01:47) CVROS: Then why did the deprotection program make then uneditable?
(11:01:53) CVROS: them*
(11:02:07) Bartimaeus: Uneditable?
(11:02:12) Bartimaeus: How so?
(11:02:20) CVROS: Well
(11:02:27) CVROS: It's in a giant mass of text that is very difficult to work with
(11:02:28) CVROS: AND
(11:02:33) CVROS: IF you change anything
(11:02:36) CVROS: It will not be playable
(11:02:40) Bartimaeus: That's JASS customscript I'm talking about.
(11:02:44) Bartimaeus: That's the*
(11:02:46) CVROS: Saying there are "Errors in 11,XXX places" or so
(11:02:51) Bartimaeus: Those are your triggers already, lol
(11:02:54) Bartimaeus: I'm not surprised.
(11:03:00) Bartimaeus: You should probably be using JASSNewGen.
(11:03:09) CVROS: I have some Jass program.. uh
(11:03:10) CVROS: one sec
(11:03:19) CVROS: JassCraft
(11:03:44) CVROS: Question: What is the difference between war3map.wtg and war3map.j?
(11:03:51) CVROS: They seem like they do the same thing
(11:04:02) CVROS: Also, if I delet war3map.j and insert a blank file map is still protected
(11:04:07) CVROS: If I delete war3map.wtg it isn't.
(11:04:12) CVROS: But allthe triggers are gone
(11:04:13) Bartimaeus: One is the trigger GUI, (what you'd normally see in World Editor), and one is the actual functional triggers.
(11:04:27) Bartimaeus: .wtg is the former, and .j is the latter
(11:04:41) CVROS: I see.
(11:04:52) CVROS: So GUI represents a simplified Jass?
(11:04:54) Bartimaeus: The .wtg is normally deleted to save space, as it's only integral for World Editor.
(11:04:56) CVROS: Or did I get that mixed up
(11:04:57) CVROS: asdf
(11:04:58) Bartimaeus: So to speak.
(11:05:08) CVROS: Ah.
(11:05:17) CVROS: So the protected versions have the editor removed
(11:05:27) CVROS: So they not only take up less space but are "protected"
(11:05:37) Bartimaeus: editor-only data*
(11:05:43) CVROS: But
(11:05:46) CVROS: Why is the "WTG!" line
(11:05:49) CVROS: SO POWWWEEERFUUUL
(11:06:01) Bartimaeus: I honestly have no idea what you're talking about in regards to that, o.o
(11:06:06) CVROS: You change one part and it makes it either crash or make it do nothing
(11:06:10) CVROS: I can link the text
(11:06:14) CVROS: But it will not show symbols
(11:06:28) Bartimaeus: o.o
(11:06:30) CVROS: uh
(11:06:34) CVROS: Won't let me copy 'n' paste
(11:06:35) CVROS: oen sec
(11:06:39) Bartimaeus: lol
(11:06:39) CVROS: I got a WEBSITE FOR THIS
(11:06:49) Bartimaeus: What, pastebin? lol
(11:07:13) CVROS: No
(11:07:34) CVROS: uh
(11:07:37) CVROS: its not working either
(11:07:41) CVROS: You mind using Mediafire download?
(11:07:42) Bartimaeus: lol
(11:07:48) Bartimaeus: That's fine.
(11:07:51) CVROS: Ok
(11:07:54) CVROS: one moment, let me upload it
(11:08:06) CVROS: Going to upload both the protected and unprotected (old version) scripts
(11:09:48) CVROS: http://www.mediafire.com/?dbaadd​mt4ngbr2d (UNPROTECTED OLD VERSION)
(11:10:00) CVROS: http://www.mediafire.com/?j990jj​lcp2eakos#! (PROTECTED NEW VERSION)
(11:10:07) Bartimaeus: Wait...
(11:10:29) CVROS: ?
(11:10:32) Bartimaeus: You're attempting to import a never protected version's GUI into the newer version?
(11:10:46) CVROS: No
(11:10:53) CVROS: The unprotected is just an example
(11:10:56) CVROS: At least, for me
(11:11:00) CVROS: I used it to compare to the new
(11:11:05) AbusivePie: Jen
(11:11:06) CVROS: To see if there was a difference
(11:11:18) CVROS: Maybe an obvious "THISLINEPROTECTSTHEMAP_DONTDELE​TEMEPLZ"
(11:11:24) CVROS: And I'd say "Ah, that's strange."
(11:11:26) CVROS: *deletes*
(11:11:35) CVROS: It just shows both begin with WTG!
(11:11:44) CVROS: But only one seems to make the file crash over it
(11:11:59) Bartimaeus: Yeah, I can't really do anything with these two files...
(11:12:06) CVROS: Open with notepad?
(11:12:18) Bartimaeus: I did...
(11:12:32) CVROS: I just wanted to show ye what it looks like.
(11:12:41) CVROS: But, whyyy
(11:12:42) Bartimaeus: If the .wtg you got came from the deprotector, none of this matters.
(11:12:45) CVROS: What does the "WTG!" line do
(11:12:55) CVROS: Well
(11:12:58) Bartimaeus: It's just a bunch of automatically generated JASS-equivalent text.
(11:13:02) CVROS: One of the lines I exported.
(11:13:15) CVROS: The unprotected one I exported from the map while it was open in World Editor
(11:13:27) CVROS: The protected one I extracted from a MPQ Editor
(11:13:54) CVROS: The .wtg contains all the cooode though.
(11:13:57) CVROS: I recognize parts of it
(11:14:01) Bartimaeus: It contains none of the code.
(11:14:02) CVROS: When I skimmed through it
(11:14:08) Bartimaeus: It's just a bunch of text.
(11:14:18) Bartimaeus: The .j file is what contains the actual code.
(11:14:22) CVROS: But why can't I import it then?
(11:14:26) CVROS: I can't import a .j file :4
(11:14:33) Bartimaeus: Because it's JASS...
(11:14:35) Bartimaeus: ...not GUI.
(11:14:40) CVROS: Yes.
(11:14:55) CVROS: but the base code is still there
(11:15:02) CVROS: Otherwise the map would not be playable
(11:15:06) CVROS: How can I get that out into the editor?
(11:15:16) Bartimaeus: But it's an entire different language from the normal GUI that you're using. Also, you can't.
(11:15:28) Bartimaeus: As I just said, the .wtg is the displayable coding in World Editor, not JASS.
(11:15:47) CVROS: I'm a bit confused
(11:17:14) CVROS: So
(11:17:19) CVROS: How does the .wtg mean nothing?
(11:17:42) CVROS: It looks exactly like the unprotected, which works in world editor
(11:17:46) Bartimaeus: JASS is what the map actually uses. It's in a different coding language from what you see in World Editor, and is not actually directly displayed through World Editor, except via the GUI. The GUI is just that - a Graphical User Interface designed for users who don't understand coding, but can understand English. If the GUI is deleted, the JASS cannot be directly displayed through the map except via the giant block of customscript that you said is uneditable.
(11:18:20) CVROS: I see
(11:18:37) CVROS: Ok, then
(11:18:43) CVROS: Guess I'll have to revert to plan B.
(11:18:50) Bartimaeus: What, learn JASS? lol
(11:18:51) CVROS: Importing the old, working code.
(11:18:54) CVROS: No.
(11:18:55) Bartimaeus: lol
(11:18:58) CVROS: AND RECONSTRUCT THE REST.
(11:18:59) CVROS: yey
(11:19:07) CVROS: How would learning Jass
(11:19:09) CVROS: Ah
(11:19:12) CVROS: So I could edit it
(11:19:12) Bartimaeus: You'd have to know JASS to be able to reconstruct the GUI.
(11:19:15) CVROS: From the block of text?
(11:19:21) CVROS: Wait
(11:19:21) Bartimaeus: However, if you knew JASS, there would be no point in doing it.
(11:19:22) CVROS: Its
(11:19:23) CVROS: possible
(11:19:25) CVROS: TO RECONSTRUCT
(11:19:26) CVROS: The GUI?
(11:19:32) Bartimaeus: Manually, of course.
(11:19:39) CVROS: Is it hard?
(11:19:45) CVROS: Or just very time consuming
(11:19:46) Bartimaeus: Have fun reading every single line of coding manually and deciding on its GUI-equivalent option.
(11:19:57) CVROS: Ah.
(11:19:59) CVROS: You mean
(11:20:04) CVROS: To take the code
(11:20:10) CVROS: And make triggers based off of what I think it is?
(11:20:17) Bartimaeus: If you don't know JASS, it's both - impossible, in fact. If you do know JASS, just insanely time-consuming in addition to being pointless.
(11:20:30) CVROS: I see.
(11:20:31) CVROS: Well.
(11:20:36) CVROS: Thank you for your time, again.
(11:20:37) CVROS:
(11:20:39) Bartimaeus: lol
(11:20:44) CVROS: I may yet return.
(11:20:48) CVROS: In several months.
(11:20:48) Bartimaeus: You mean thanks for shattering your hopes and dreams, again?
(11:20:51) Bartimaeus: :D
(11:20:53) CVROS: Yes.
(11:20:59) CVROS: But that wasn't as respectful :o
(11:21:00) Bartimaeus: You're quite welcome. ;o
(11:21:00) CVROS: Lol
(11:21:03) Bartimaeus: lol
(11:25:02) ChatBot: CVROS has been logged out (Timeout).
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: "WTG!" What does it mean?

Post by Apple »

Spoiler:
Bartimaeus wrote:
Spoiler:
(10:58:19) Bartimaeus: Question: so when you say you're "importing" the triggers, what exactly does that mean?
(10:58:28) CVROS: Going to the Trigger Editor in wC3
(10:58:29) CVROS: And clicking
(10:58:33) CVROS: "Import Triggers"
(10:58:42) CVROS: File -> Import Triggers
(10:59:02) Bartimaeus: What type of file are you importing?
(10:59:03) Bartimaeus: .wtg?
(10:59:08) CVROS: Yessss.
(10:59:10) CVROS: .wtg I believe
(10:59:14) Bartimaeus: Where did it come from?
(10:59:23) CVROS: What do you mean?
(10:59:25) CVROS: The map it came from?
(10:59:29) Bartimaeus: The map was originally protected, yes?
(10:59:32) CVROS: Yes
(10:59:41) Bartimaeus: Likely, the .wtg in it was deleted, correct?
(10:59:45) Bartimaeus: So where did your .wtg come from?
(10:59:50) CVROS: No, it was already in there.
(10:59:53) CVROS: When I deprotected it
(10:59:58) Bartimaeus: lol
(11:00:06) Bartimaeus: How about before you "deprotected" it?
(11:00:15) CVROS: I'm not sure.
(11:00:22) CVROS: I couldn't see it until I deprotected it
(11:00:25) CVROS: Unless there is another method
(11:00:35) Bartimaeus: I'll tell you: it very likely was.
(11:00:45) CVROS: I use a deprotected txt on a protected map :o
(11:01:02) CVROS: (MPQ Editor)
(11:01:09) Bartimaeus: Your "triggers" are just automatically generated by whatever deprotection program you used, (likely x-dep), that just consist of one big customscript JASS trigger.
(11:01:37) CVROS: I see...
(11:01:47) CVROS: Then why did the deprotection program make then uneditable?
(11:01:53) CVROS: them*
(11:02:07) Bartimaeus: Uneditable?
(11:02:12) Bartimaeus: How so?
(11:02:20) CVROS: Well
(11:02:27) CVROS: It's in a giant mass of text that is very difficult to work with
(11:02:28) CVROS: AND
(11:02:33) CVROS: IF you change anything
(11:02:36) CVROS: It will not be playable
(11:02:40) Bartimaeus: That's JASS customscript I'm talking about.
(11:02:44) Bartimaeus: That's the*
(11:02:46) CVROS: Saying there are "Errors in 11,XXX places" or so
(11:02:51) Bartimaeus: Those are your triggers already, lol
(11:02:54) Bartimaeus: I'm not surprised.
(11:03:00) Bartimaeus: You should probably be using JASSNewGen.
(11:03:09) CVROS: I have some Jass program.. uh
(11:03:10) CVROS: one sec
(11:03:19) CVROS: JassCraft
(11:03:44) CVROS: Question: What is the difference between war3map.wtg and war3map.j?
(11:03:51) CVROS: They seem like they do the same thing
(11:04:02) CVROS: Also, if I delet war3map.j and insert a blank file map is still protected
(11:04:07) CVROS: If I delete war3map.wtg it isn't.
(11:04:12) CVROS: But allthe triggers are gone
(11:04:13) Bartimaeus: One is the trigger GUI, (what you'd normally see in World Editor), and one is the actual functional triggers.
(11:04:27) Bartimaeus: .wtg is the former, and .j is the latter
(11:04:41) CVROS: I see.
(11:04:52) CVROS: So GUI represents a simplified Jass?
(11:04:54) Bartimaeus: The .wtg is normally deleted to save space, as it's only integral for World Editor.
(11:04:56) CVROS: Or did I get that mixed up
(11:04:57) CVROS: asdf
(11:04:58) Bartimaeus: So to speak.
(11:05:08) CVROS: Ah.
(11:05:17) CVROS: So the protected versions have the editor removed
(11:05:27) CVROS: So they not only take up less space but are "protected"
(11:05:37) Bartimaeus: editor-only data*
(11:05:43) CVROS: But
(11:05:46) CVROS: Why is the "WTG!" line
(11:05:49) CVROS: SO POWWWEEERFUUUL
(11:06:01) Bartimaeus: I honestly have no idea what you're talking about in regards to that, o.o
(11:06:06) CVROS: You change one part and it makes it either crash or make it do nothing
(11:06:10) CVROS: I can link the text
(11:06:14) CVROS: But it will not show symbols
(11:06:28) Bartimaeus: o.o
(11:06:30) CVROS: uh
(11:06:34) CVROS: Won't let me copy 'n' paste
(11:06:35) CVROS: oen sec
(11:06:39) Bartimaeus: lol
(11:06:39) CVROS: I got a WEBSITE FOR THIS
(11:06:49) Bartimaeus: What, pastebin? lol
(11:07:13) CVROS: No
(11:07:34) CVROS: uh
(11:07:37) CVROS: its not working either
(11:07:41) CVROS: You mind using Mediafire download?
(11:07:42) Bartimaeus: lol
(11:07:48) Bartimaeus: That's fine.
(11:07:51) CVROS: Ok
(11:07:54) CVROS: one moment, let me upload it
(11:08:06) CVROS: Going to upload both the protected and unprotected (old version) scripts
(11:09:48) CVROS: http://www.mediafire.com/?dbaadd​mt4ngbr2d (UNPROTECTED OLD VERSION)
(11:10:00) CVROS: http://www.mediafire.com/?j990jj​lcp2eakos#! (PROTECTED NEW VERSION)
(11:10:07) Bartimaeus: Wait...
(11:10:29) CVROS: ?
(11:10:32) Bartimaeus: You're attempting to import a never protected version's GUI into the newer version?
(11:10:46) CVROS: No
(11:10:53) CVROS: The unprotected is just an example
(11:10:56) CVROS: At least, for me
(11:11:00) CVROS: I used it to compare to the new
(11:11:05) AbusivePie: Jen
(11:11:06) CVROS: To see if there was a difference
(11:11:18) CVROS: Maybe an obvious "THISLINEPROTECTSTHEMAP_DONTDELE​TEMEPLZ"
(11:11:24) CVROS: And I'd say "Ah, that's strange."
(11:11:26) CVROS: *deletes*
(11:11:35) CVROS: It just shows both begin with WTG!
(11:11:44) CVROS: But only one seems to make the file crash over it
(11:11:59) Bartimaeus: Yeah, I can't really do anything with these two files...
(11:12:06) CVROS: Open with notepad?
(11:12:18) Bartimaeus: I did...
(11:12:32) CVROS: I just wanted to show ye what it looks like.
(11:12:41) CVROS: But, whyyy
(11:12:42) Bartimaeus: If the .wtg you got came from the deprotector, none of this matters.
(11:12:45) CVROS: What does the "WTG!" line do
(11:12:55) CVROS: Well
(11:12:58) Bartimaeus: It's just a bunch of automatically generated JASS-equivalent text.
(11:13:02) CVROS: One of the lines I exported.
(11:13:15) CVROS: The unprotected one I exported from the map while it was open in World Editor
(11:13:27) CVROS: The protected one I extracted from a MPQ Editor
(11:13:54) CVROS: The .wtg contains all the cooode though.
(11:13:57) CVROS: I recognize parts of it
(11:14:01) Bartimaeus: It contains none of the code.
(11:14:02) CVROS: When I skimmed through it
(11:14:08) Bartimaeus: It's just a bunch of text.
(11:14:18) Bartimaeus: The .j file is what contains the actual code.
(11:14:22) CVROS: But why can't I import it then?
(11:14:26) CVROS: I can't import a .j file :4
(11:14:33) Bartimaeus: Because it's JASS...
(11:14:35) Bartimaeus: ...not GUI.
(11:14:40) CVROS: Yes.
(11:14:55) CVROS: but the base code is still there
(11:15:02) CVROS: Otherwise the map would not be playable
(11:15:06) CVROS: How can I get that out into the editor?
(11:15:16) Bartimaeus: But it's an entire different language from the normal GUI that you're using. Also, you can't.
(11:15:28) Bartimaeus: As I just said, the .wtg is the displayable coding in World Editor, not JASS.
(11:15:47) CVROS: I'm a bit confused
(11:17:14) CVROS: So
(11:17:19) CVROS: How does the .wtg mean nothing?
(11:17:42) CVROS: It looks exactly like the unprotected, which works in world editor
(11:17:46) Bartimaeus: JASS is what the map actually uses. It's in a different coding language from what you see in World Editor, and is not actually directly displayed through World Editor, except via the GUI. The GUI is just that - a Graphical User Interface designed for users who don't understand coding, but can understand English. If the GUI is deleted, the JASS cannot be directly displayed through the map except via the giant block of customscript that you said is uneditable.
(11:18:20) CVROS: I see
(11:18:37) CVROS: Ok, then
(11:18:43) CVROS: Guess I'll have to revert to plan B.
(11:18:50) Bartimaeus: What, learn JASS? lol
(11:18:51) CVROS: Importing the old, working code.
(11:18:54) CVROS: No.
(11:18:55) Bartimaeus: lol
(11:18:58) CVROS: AND RECONSTRUCT THE REST.
(11:18:59) CVROS: yey
(11:19:07) CVROS: How would learning Jass
(11:19:09) CVROS: Ah
(11:19:12) CVROS: So I could edit it
(11:19:12) Bartimaeus: You'd have to know JASS to be able to reconstruct the GUI.
(11:19:15) CVROS: From the block of text?
(11:19:21) CVROS: Wait
(11:19:21) Bartimaeus: However, if you knew JASS, there would be no point in doing it.
(11:19:22) CVROS: Its
(11:19:23) CVROS: possible
(11:19:25) CVROS: TO RECONSTRUCT
(11:19:26) CVROS: The GUI?
(11:19:32) Bartimaeus: Manually, of course.
(11:19:39) CVROS: Is it hard?
(11:19:45) CVROS: Or just very time consuming
(11:19:46) Bartimaeus: Have fun reading every single line of coding manually and deciding on its GUI-equivalent option.
(11:19:57) CVROS: Ah.
(11:19:59) CVROS: You mean
(11:20:04) CVROS: To take the code
(11:20:10) CVROS: And make triggers based off of what I think it is?
(11:20:17) Bartimaeus: If you don't know JASS, it's both - impossible, in fact. If you do know JASS, just insanely time-consuming in addition to being pointless.
(11:20:30) CVROS: I see.
(11:20:31) CVROS: Well.
(11:20:36) CVROS: Thank you for your time, again.
(11:20:37) CVROS:
(11:20:39) Bartimaeus: lol
(11:20:44) CVROS: I may yet return.
(11:20:48) CVROS: In several months.
(11:20:48) Bartimaeus: You mean thanks for shattering your hopes and dreams, again?
(11:20:51) Bartimaeus: :D
(11:20:53) CVROS: Yes.
(11:20:59) CVROS: But that wasn't as respectful :o
(11:21:00) Bartimaeus: You're quite welcome. ;o
(11:21:00) CVROS: Lol
(11:21:03) Bartimaeus: lol
(11:25:02) ChatBot: CVROS has been logged out (Timeout).
Where did that come from? It seems trolling to me xD
Since he already asked so much, making this topic seems like he didn't understand anything from you Bart ;-)
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4427
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: "WTG!" What does it mean?

Post by Bartimaeus »

One: On whose part was this "trolling"?
Two: I probably should've explained - that conversation took place after he posted this topic.
Three: It was on our chat - http://chat.wc3edit.net/