Phasor is a server extension for Halo PC which focuses on giving the end-user the ability to deeply customize gameplay. Phasor does this via its scripting system, which uses the Lua language. Scripters are able to react to and change many different aspects of the game.
MIT License
19
stars
9
forks
source link
Crash Possibly OnScriptUnload() (it's some time after OnGameEnd() stage 3) #26
I'm running a Mapvote script here. The crash does not happen every time, but about every 3 or 4 games. OnGameEnd in stage 3, I use a modified version of sendconsoletext() which works in other scripts I've tested it in with no problems to send players their mapvote options. It is also possible that the crash could be OnServerChat (since I type "vote #" each time, though the message goes through before the crash, so I think this is unlikely). I am also using svcmd("sv_map " .. map .. " " .. gametype .. " " .. table.concat(scripts, " ") every time someone votes (I have the script do this for the option with the most votes every time someone votes because there's no reliable way to use sv_map on the right option right before OnScriptUnload). OnScriptUnload has only one line of code which uses table.save, a function I've used in many other scripts with no problems. Sorry for the crapload of vague information; I have no way of knowing where this crashes though.
I'm running a Mapvote script here. The crash does not happen every time, but about every 3 or 4 games. OnGameEnd in stage 3, I use a modified version of sendconsoletext() which works in other scripts I've tested it in with no problems to send players their mapvote options. It is also possible that the crash could be OnServerChat (since I type "vote #" each time, though the message goes through before the crash, so I think this is unlikely). I am also using svcmd("sv_map " .. map .. " " .. gametype .. " " .. table.concat(scripts, " ") every time someone votes (I have the script do this for the option with the most votes every time someone votes because there's no reliable way to use sv_map on the right option right before OnScriptUnload). OnScriptUnload has only one line of code which uses table.save, a function I've used in many other scripts with no problems. Sorry for the crapload of vague information; I have no way of knowing where this crashes though.
https://www.dropbox.com/s/5aafux8dhhl2wxz/Phasor-01.00.10.059-0017-20130603-120900-5448-9828.dmp