Jump to content

Detecting build version


ethanwdp

Recommended Posts

Is there a way, instead of having two separate mod folders for Build 31 and Build 32, to detect the build version using Lua?

I was thinking of having a single mod folder, and the Lua file would launch two variations of the code depending on the version.

Link to comment
Share on other sites

You want getCore():getVersionNumber() which currently returns "Early Access v32.5" or something similiar. It returns exactly the string you see on the Main Menu in the bottom right.

Thanks for the godspeed reply!

That was exactly what I was looking for.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...