Closed Dark3211 closed 4 years ago
Unfortunately, it's not possible to display certain start-up information; Which is most of it, actually. But I'll see what I can come up with.
Ok, but it is possible to record the errors (shown in the console, if they have any) of all the scripts loaded by the server?
Due to a limitation with SAPP, the only thing you can do is copy/paste the below code into each individual script you have. Put this at the bottom of each script.
SAPP's OnError() function is raised every time there is an error but this is on a per-script basis.
function OnError()
local path = "errors.txt"
local file = assert(io.open(path, "a+"))
if (file ~= nil) then
file:write(debug.traceback() .. " \n\n")
io.close(file)
end
end
Will the script be for Halo PC, CE or BOTH?
What server extension are you using?
What version of SAPP are you using?
Will the script be run on a custom map? (non stock)
Will the script need to be map and/or gametype specific?
Script Details:
Save a log file (console.log) in the root folder.
Hello, I would like to know if it is possible to create a script that shows everything that is shown in the console (console log).
Example:
sv_name: SAPP V10.2.1 sv_rcon_password: 'password' true sv_maxplayers: 16 0 Loading SAPP ... Starting threads ... Searching for Halo functions ... Patching Halo's code for codecaves ... Loading commands ... 14 custom commands were loaded. Loading Lua scripts ... Loading settings ...
Example of Error:
OnScriptUnLoad >> Lua Error: attempt to call a nil value