Jump to content

TheSim.GetFileModificationTime Doesn't Work For Workshop Mods


Philip.
  • Pending

Newer workshop mods use the ugc_mods for their files now but the TheSim.GetFileModificationTime function seems to use just the old directory for searching.

 

Tested on a Windows and Linux dedicated server.


Steps to Reproduce

Run in your server's console:

Quote

print(TheSim:GetFileModificationTime("../mods/"..KnownModIndex:GetModsToLoad()[1].."/modmain.lua"))

See that it returns an error even though you have at least one mod to load and that kleiloadlua for example with the exactly same path works just fine.

Quote

print(kleiloadlua("../mods/"..KnownModIndex:GetModsToLoad()[1].."/modmain.lua"))

Returns a function as it should.




User Feedback


There are no comments to display.



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...