variables in a deprotected map

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

TheJakal
Newcomer
Posts: 16
Joined: August 23rd, 2010, 5:24 pm

variables in a deprotected map

Post by TheJakal »

I had a map deprotected and am having some problems saving it. When I try to save it, it says something like "The Jass Parses has stopped working". when I close the Jass Parser, a long list of Syntax errors appear. They are mostly undeclared variables of the local type.

I examined the code and found that most of the undeclared variables had a global counterpart(same name, but without the "udg_" prefix). Is there a way to fix this quickly? I decided to ask after realizing that once I fix an error, a new one is added to the list of errors upon recompiling.
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: variables in a deprotected map

Post by GeorgeMots »

Did you save with Jass new gen? I might skip those errors and let you save the map.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
TheJakal
Newcomer
Posts: 16
Joined: August 23rd, 2010, 5:24 pm

Re: variables in a deprotected map

Post by TheJakal »

yes. I used newgen. thanks again for the map.

It does save the map, but the saved map won't run on war3.

what if I just removed all the "udg_"s(including those in the globals). do you think that would work?

BTW, I passed the error with the redeclared initcustomteam by replacing the one at the bottom with the one in the triggers. (I also did the same for the main and config functions)
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: variables in a deprotected map

Post by haxorico »

import the war3map.j from the protected map
if it doesnt work
optimize the war3map.j of the protected map and then replace
if that doesnt work aswell
optimize the war3map.j of the protected map. import the war3map.j back to protected map. now deprotect it. all the udg_ should be gone.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
TheJakal
Newcomer
Posts: 16
Joined: August 23rd, 2010, 5:24 pm

Re: variables in a deprotected map

Post by TheJakal »

it's strange. When I would export the *.j file from the protected map and import it into the deprotected one, the triggers turn back into the deprotected *.j file. I tried it for 2 arrangements of triggers for the deprotected map.

when you say optimize, do you mean to use the 4.9wc3mapoptimize?

also, there were at least 4 variables where I found no udg_ counterpart for.
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: variables in a deprotected map

Post by haxorico »

yes, using vexorian optimizer on the .j file and not on the map itself
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
TheJakal
Newcomer
Posts: 16
Joined: August 23rd, 2010, 5:24 pm

Re: variables in a deprotected map

Post by TheJakal »

hmmm... I using that optimizer but it said that the j.file was complressed by 0%. I took a peek at the original .j file. I'm guessing what the vexorian optimizer does is to just rename the variables to shorter names and remove unnecessary code like spaces and new lines to make the .j file smaller right?

Now I'm going to try the third thing that you told me to do. Sorry I'm still slow in doing this.

Does the .w3x file store the code (triggers, config, player and team config, main, globals) somwhere else?