Page 1 of 1

New example on Mods page

Posted: Fri Jun 05, 2026 5:35 pm
by PennyJim
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

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

Re: New example on Mods page

Posted: Fri Jun 05, 2026 5:39 pm
by MrSmoothieHuman
+1, as someone who just missed its existence

Re: New example on Mods page

Posted: Sat Jun 06, 2026 1:57 am
by protocol_1903
+1