Saved game is loaded

Status
Not open for further replies.
Level 14
Joined
Nov 30, 2013
Messages
926
Get me wrong, I haven't used that event alot.
You could create a trigger like a reset system of their active quests when loaded the saved game.
Or revert their units/heroes back into the last checkpoint I guess.
My apologies if this doesn't answer your question.
 
well, I found myself 2 actions that must be dane when game is loaded: camera smoothing factor, and pitch of sounds

  • GameLoaded
    • Events
      • Game - A saved game is loaded
    • Conditions
    • Actions
      • Sound - Set pitch of 10_David_Benoit_Miles_After_Dark3_30_SQ <gen> to 0.50
      • Camera - Change camera smoothing factor to 100.00
what else? does anyone know?

@bear_369, thanks for trying help, but i need specific actions for this event that must be done
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
All timers are paused... they need to be re-started. EDIT: <<< this is not true :D I misplaced it with periodic timers that are paused and resumed.
GetLocalPlayer() variables will not be properly set any more.

You may also want to load specific data that you stored on map saving in an additional file.
 
Last edited:
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
 
Last edited:
Status
Not open for further replies.
Top