variables in a deprotected map
Moderator: Cheaters
-
- Newcomer
- Posts: 16
- Joined: August 23rd, 2010, 5:24 pm
variables in a deprotected map
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.
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.
-
- Crusader
- Posts: 4236
- Joined: January 27th, 2007, 4:46 pm
- Location: Greece, Veria
Re: variables in a deprotected map
Did you save with Jass new gen? I might skip those errors and let you save the map.
-
- Newcomer
- Posts: 16
- Joined: August 23rd, 2010, 5:24 pm
Re: variables in a deprotected map
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)
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)
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: variables in a deprotected map
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.
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.
-
- Newcomer
- Posts: 16
- Joined: August 23rd, 2010, 5:24 pm
Re: variables in a deprotected map
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.
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.
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: variables in a deprotected map
yes, using vexorian optimizer on the .j file and not on the map itself
-
- Newcomer
- Posts: 16
- Joined: August 23rd, 2010, 5:24 pm
Re: variables in a deprotected map
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?
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?