Change History
New api methods will be announced here. Changes in our data that is relevant to checkers scripts/tags will also be announced here.
Changed By: KaiserVonChina
Change Date: September 19, 2025 11:34AM
Re: Common library (feedback needed)
I like the idea to have this in another script, so that everybody can still see the source code and to have more flexibility to easily extend the functionality when needed or to use different kinds of libraries as per personal preference.
I think the library script could look something like this:
[code]
local Utils = {}
function Utils.Foo()
...
end
function Utils.Bar()
...
end
return Utils
[/code]
And the checker scripts could then require it to use those functions, i.e. like
[code]
local utils = require("Utils")
utils.Foo()
utils.Bar()
[/code]
Details how to require the script of course depend on how you store them on your server.
Original Message
Author: KaiserVonChina
Date: September 19, 2025 11:33AM
Re: Common library (feedback needed)
I like the idea to have this in another script, so that everybody can still see the source code and to have more flexibility to easily extend the functinality when needed or to use different kinds of libraries as per personal preference.
I think the library script could look something like this:
[code]
local Utils = {}
function Utils.Foo()
...
end
function Utils.Bar()
...
end
return Utils
[/code]
And the checker scripts could then require it to use those functions, i.e. like
[code]
local utils = require("Utils")
utils.Foo()
utils.Bar()
[/code]
Details how to require the script of course depend on how you store them on your server.