- Joined
- Sep 8, 2004
- Messages
- 98
I've been working a ton on my map, basically making the entire map's code up to a 'standard' (half the stuff in it doesn't work, basically).
Today, I decided I'd test the map, just to see how much worked (and see if any bugs occured), but for some reason, the GetHost function is not working, at all:
I have tried running it at Map Initialization, and at 0.1 seconds afterward (using a timer), and both times it stops at TriggerSyncStart. I don't even know what this function does!
Also, is there an op limit for the map initialization? I've got so much variables and initialization stuff that has to be done, that I'm afraid I'm going to hit the OP limit (if it exists).
Today, I decided I'd test the map, just to see how much worked (and see if any bugs occured), but for some reason, the GetHost function is not working, at all:
JASS:
library GetHost
globals
player host
endglobals
function GetHost takes nothing returns nothing
local gamecache g = InitGameCache("Map.w3v")
call StoreInteger(g, "Map", "Host", GetPlayerId(GetLocalPlayer ())+1)
call TriggerSyncStart()
call SyncStoredInteger(g, "Map", "Host" )
call TriggerSyncReady()
set host = Player( GetStoredInteger(g, "Map", "Host" )-1)
call FlushGameCache(g )
set g = null
endfunction
endlibrary
I have tried running it at Map Initialization, and at 0.1 seconds afterward (using a timer), and both times it stops at TriggerSyncStart. I don't even know what this function does!
Also, is there an op limit for the map initialization? I've got so much variables and initialization stuff that has to be done, that I'm afraid I'm going to hit the OP limit (if it exists).