HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Optimizer Obfuscation Causing Crashes?

07-31-2006, 12:17 AM#1
emjlr3
don't get your panties in a bunch just yet, this is just a hunch of mine

after I thought the problem with my projectiles and random crashes was from opti 3.9c, and I thought that 3.9d would fix it

well last 4 hosts no projectiles/movements screwed up at all using 3.9d, using all options that are reccomended

now, in the first game, it went smooth the whoel time, 2nd game it crashed like 30 minutes in, 3rd game it crashed 10 minutes in

i also had ppl tell me that they were getting crashes themselves, which I was rarely getting

then I was like wtf, I remember that with my old Kodo tag map, using all the obsucation stuff in the upper left would sometimes screw things up, so I figured wtf, its worth a try

so i unselected all the obfuscation methods, so all I had checked was mpq reconstruction and extra cleaning

granted this looses me like 10 kbs of space saving, but, on my 4th host, game played threw all the way w/o an problems

I may be jumping the gun here, but maybe there is something in the obfuscation that either does not like what I have coded, or is bugged in some way or another, or maybe there is just something wrong in my coding that causes it to crash randomly

I have tried this method, and Vile has optimized his like this too now, since he is still getting crashes, I will try again when I can, and I sure he will

but perhaps this could clear up some crashing problems, howevr maybe not

any thoughts?
07-31-2006, 02:40 AM#2
Vexorian
Hey emjlr3, Just one question, what's the optimizer readme for? I would not expect you for failing into this and asking in the editing tools forum, also such a generalization is lame. As you might now many people use my optimizer, even DOTA all stars uses it and it does not have random crashes as far as I know. So maybe it is a combination of the optimizer and your map what causes them or maybe it is something in your map that always has a chance to do so and it is a coincidence, there is no way we would tell if you don't email your map to me instead of expecting that the optimizer works the same for every map which is simply not true.

There are things I cannot predict to work, and the obfuscation options are a lot, besides of the n things that are different in each script. The optimizer is actually supposed to crash your map, really, I am saying this.

But the whole idea is that you guys help me fix it instead of posting threads and expect a generic answer, cause there is no generic answer. Every map is different.

Also non of the obfuscation options is supposed to save space , so don't see 10KB as a meaning less reduction. Instead consider that the shortest variable/function names will make any map much faster.

Besides, if you are worried about wtg/wct reconstructors (called Map unprotectors by the most) then you should use the merge one.

--
And you didn't even update the gamecache hatred thread where you said that switching to 3.9d fixed the issues.
--

Really the optimizer has a lot of warnings about random crashes, and the methodolgy to deal with them. I am not sure why people never read the optimizer's readme. You should have tried to isolate the bug already.

Maybe "optimize bj functions" causes issues with gamecache (return bug, actually) since it makes a lot of functions that do not usually set locals to null to do so.

--
The whole fact that it went smooth for one game points out that it is a problem when a specific trigger of yours. There is a good chance it is caused by the optimizer, that it fails when optimizing that trigger. It is not something that happens to every map.
07-31-2006, 01:00 PM#3
emjlr3
i started this because I thought others may have had the same problem

the thing still stands that, my map has never crashed without the optimizer

but i figured if there is something that many maps may have, could maybe try and fix it
and yes i read the readme

and i dont care about dota

just thought this might help
07-31-2006, 02:06 PM#4
Vexorian
And you are not gonna email me your map, then nothing would change. I can't fix bugs with the optimizer without any clue of what it might be, have you at least tried unchecking only optimizer bj functions and remove useless code?
08-07-2006, 07:13 PM#5
Vexorian
Could you help me? I need the map to see if the optimizer is causing bugs
08-07-2006, 07:30 PM#6
emjlr3
er sure, ill send it to you