While debuging my campaign I found strange thing
There was bug in one map related to this:
JASS:
if OrderId2StringBJ(GetIssuedOrderId()) == "smart" or OrderId2StringBJ(GetIssuedOrderId()) == "setrally" then
It works fine but when map saved/loaded it's NOT working.. so I changed to integers and new line this works fine (tested):
JASS:
if GetIssuedOrderId() == 851971 or GetIssuedOrderId() == 851980 then
anyone can explain why this happends??
It would be nice addition to all info we gathered here in this thread.
I'd like to understand the reason to avoid such a problems in the future.
zibi
edit:
well, it seems that two natives not working on loaded game:
JASS:
constant native UnitId2String takes integer unitId returns string
JASS:
constant native OrderId2String takes integer orderId returns string
and also
OrderId2StringBJ not working because it's using both above natives..
I found some info that additionaly confirms that here
http://www.hiveworkshop.com/forums/triggers-scripts-269/small-code-snippets-40758/index24.html#post1857241
So, for now we have as follows:
These must be
set up again on load:
1. pitch of sound
2. camera smoothing factor
3. all enviroment triggers like terrain tile changes, ripples, ect (@ The_Silent)
These
not working on loaded game:
1. periodic timers that are paused and resumed.(timer is not periodical any more) (@ Wietlol)
2. GetLocalPlayer() variables will not be properly set any more. (@ Wietlol)
3. native UnitId2String - always returns null /war3 bug/
4. native OrderId2String (and OrderId2StringBJ) - always returns null /war3 bug/
well, I found what cause problem in my campaign , anyway if you know what can be added to above list, please share with us.
zibi