New example on Mods page
Posted: Fri Jun 05, 2026 5:35 pm
I know LuaHelpers is one of those objects that you could easily miss it being available in data stage. The only link I'm aware of is on the index page, and, in my experience, you're usually skipping it entirely when you feel more comfortable with the api.
So I suggest we add a snippet to Mods to use compare_versions to showcase that it's an option.
I'm thinking something like this
So I suggest we add a snippet to Mods to use compare_versions to showcase that it's an option.
I'm thinking something like this
Code: Select all
-- allows using features only available past a certain version
-- while still being compatible with older versions, useful for experimental releases
if helpers.compare_version(mods["base"], "2.0.56") >= 0 then
use_new_features()
end