HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wc3 Map Optimizer 3.0b

07-11-2005, 04:49 PM#151
Vexorian
It wasn't complete.

And pms in wc3c work again btw

---

Got it , it is now complete. thanks
07-11-2005, 05:02 PM#152
vile
k, well, you already got it so i wont use the pm.
07-11-2005, 11:21 PM#153
Vexorian
After checking your script I couldn't find anything , it works fine for me.

I noted it didn't really have the newest caster system, when I put it there, it gave errors, it was because you had a pair of functions infiltrated inside the caster system

Code:
function GetAttachedObject takes handle h, string label returns handle
    return GetAttachedInt(h,label)
    return null
endfunction

function MoveUnitToPolarProjection takes unit tomove, real dist, real angle returns nothing
call SetUnitPosition(tomove, GetUnitX(tomove) + dist * Cos(angle * bj_DEGTORAD) , GetUnitY(tomove) + dist * Sin(angle * bj_DEGTORAD))
endfunction

function DistanceBetweenPointsXY takes real x1, real y1, real x2, real y2 returns real
    return SquareRoot((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2))
endfunction

function GetAttachedUnit takes handle h, string label returns unit
    return GetAttachedInt(h,label)
    return null
endfunction

After installing newest caster system and moving those functions somewhere else, the optimizer still didn't cause problems, so I guess your problem wasn't with the optimizer nor the caster system but because of your map losing these functions
07-12-2005, 01:02 PM#154
vile
dude i think you dont get it..

the script i sent you is the script that WORKS, it is with 11.6, which works with those functions.

If you install 11.8, add those functions and it wont work.
Why?!
Where am i supposed to put those functions than?!
i need them.
if 11.6 dont cause problems with them and 11.8 does, than its a caster sys problem..

OK, this proves it.
PLEASE test it as I JUST DID!
Use your map optimizer with Caster System 11.8. RUN IT AFTER its optimized.
It will crash.
07-13-2005, 12:19 AM#155
Vexorian
I did all that stuff, it works, as long as you don't have those functions there, you can have those functions AFTER the caster system and it will be ok.

Are you sure your map works before optimizing?
07-13-2005, 04:48 PM#156
vile
but i didnt put any functions!@#
i just dl it from this site optimized it and thats what happened!
07-18-2005, 10:36 PM#157
Vexorian
untrue, it has functions that shouldn't be there, I think you accidentally added them there instead of somewhere else
07-21-2005, 01:26 PM#158
pongla
This will not work, it come every time up a message "error open file" fix that plz!
07-23-2005, 04:06 PM#159
Vexorian
godamn explain better please