My map frequently crashes upon loading for at least 1 player (most of the time it's just 1 player who crashes). The error is {294} ERR: path component index out of bounds. Any idea what causes this problem?
I had a similar problem when using a custom ui. If the player had alt-tabbed during the loading of the game they would desync.
Most of the time it works, but it's just unfortunate to remake when 1 player gets desynced. Any desyncs related to Set Unit Skin function?
Also, isn't this a culprit?View attachment 396704
Hey can you explain exactly what you mean by this, cause my map crashes and uses Lua.If your map is in Lua you also need to make sure all objects are created from within the main function.
Hey can you explain exactly what you mean by this, cause my map crashes and uses Lua.
someTimer = CreateTimer()
function main()
end
someTimer = nil
function main()
someTimer = CreateTimer()
end
function main ()
setglobals ()
end
function setglobals ()
sometimer = createtimer ()
end
I see thanks, is it fine to call a function that creates the objects, within the main function?
Like this
Lua:function main () setglobals () end function setglobals () sometimer = createtimer () end