![]() |
#1 |
Free Software Terrorist
Technical Director
|
![]() This is the commenting thread for wc3 map optimizer
__________________[Download place] |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
Free Software Terrorist
Technical Director
|
![]() Version 3.9b, *should* fix all the reported problems for 3.9
|
![]() |
![]() |
![]() |
#3 |
User
Join Date: Nov 2003
Posts: 233
![]() |
![]() I've isolated a bug related with the shortest variable/function name possible. Sent a report to your mail stating the exact location of the problem in an attached map script.
|
![]() |
![]() |
![]() |
#4 |
User
Join Date: Oct 2005
Posts: 68
![]() |
![]() Using all the Options in your Optimizer(except for the ones that were not recomended) cuased a problem on one of my triggers. So i browsed my maps war3map.j file (awsome idea btw) and i realized that the optimizer made the function look like this:
Code:
loop exitwhen b set r=GetRandomInt(1,6)if C[r]==false then set b=true endif endloop So am i right in thinking that the line Code:
if C[r]==false then should be in its own line? I consider myself fairly efficient at JASS, but you obviously know alot more than me, so i though i'd point this out. Last edited by The__Prophet : 02-07-2006 at 10:54 PM. |
![]() |
![]() |
![]() |
#5 |
( ~)>
Respected User
Join Date: Feb 2005
Posts: 959
![]() ![]() ![]() |
![]() Yes it should be on its own line.
__________________ |
![]() |
![]() |
![]() |
#6 |
Free Software Terrorist
Technical Director
|
![]() Can't do anything without the map, The__prophet . Read the readme it explains things a little
__________________ |
![]() |
![]() |
![]() |
#7 |
User
Join Date: Oct 2005
Posts: 68
![]() |
![]() Yea i know, i've read the readme. And i've sent you my map before, just usually i post the problem before i send the map to make sure it wasnt somthing stupid on my part. Anyways Map sent.
|
![]() |
![]() |
![]() |
#8 |
Free Software Terrorist
Technical Director
|
![]() From what I can see a correct line break appears at that line. It is probably a bug with the text editor your used to open the file. And the real problem with your map is probably caused by something else let me check
__________________ |
![]() |
![]() |
![]() |
#9 |
Free Software Terrorist
Technical Director
|
![]() Prophet, please tell me which of the triggers fails after the optimizer
Try using 'Safe IsUnitType' and see if it fixes the problem |
![]() |
![]() |
![]() |
#10 |
User
Join Date: Oct 2005
Posts: 68
![]() |
![]() Heh, my fault, i guess if fixed it before without realizing it. When i originally made this post, I had the script look like this:
Code:
loop exitwhen b == true set r = GetRandomInt(1, 6) if udg_Picked[r] == false then set b = true endif endloop But i specifically remember taking out the == true on the exit when line, just as a simple habbit (since i learned recently you dont need it). The version i sent you vex, I already fixed the exitwhen line. I guess having the == true must of confused/messed up the optimizer. |
![]() |
![]() |
![]() |
#11 |
Free Software Terrorist
Technical Director
|
![]() Highly doubt so. that's a simple exitwhen b==true should work. But I 'll check it anyways.
__________________if a line like 'set r=GetRandomInt(1,6)if C[r]==false then' was indeed generated the map wouldn't work at all. Instead of just one trigger failing Edit: Tried adding the ==true , it doesn't remove the line break between those lines either |
![]() |
![]() |
![]() |
#12 |
User
Join Date: Jan 2006
Posts: 9
![]() |
![]() this isn't really a bug but when i use the optimize bj functions option i can no longer upload it to Wc3sear.ch
also i can see a text box in the bottom that says DebugMemo 12 files found |
![]() |
![]() |
![]() |
#13 |
Free Software Terrorist
Technical Director
|
![]() That's a bug with wc3sear.ch so report it to their administration not to me.
__________________And you shouldn't be able to see it, maybe my method for hiding it is not working well, could you please make me an screenshot of that? |
![]() |
![]() |
![]() |
#14 |
STARCRAFT II OMFG
|
![]() i found bug in AntiBJ, the optimizer replaces GetAbilityEffectBJ (which takes an integer for the ability argument) with GetAbilityEffect (which takes a string for the ability argument).
it shud replace it instead with GetAbilityEffectById which takes an integer. EDIT: it also adds a "?" infront of "globals". Last edited by shadow1500 : 02-27-2006 at 01:47 AM. |
![]() |
![]() |
![]() |
#15 |
User
Join Date: Jan 2006
Posts: 9
![]() |
![]() cant really see it all that well and it only happens after i save.
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|