Jump to content

"MODROOT" is INCORRECT in some cases!


Philip.
  • Pending

The mod environment constant "MODROOT" does always point "../mods/<MODNAME>/" which is actually incorrect for the newer v2 mods stored in the "ugc_mods" folder! This causes old mods that are storing some data in their local folder to not work correctly.

Not to mention that it makes the "MODROOT" constant a source of bugs and miss conceptions and unnecessary useless outside cases where it is used in combination with the "kleiloadlua" and "kleifileexists" functions that uses some weird unnecessary C-side hacks to correct the path so it points to the correct "ugc" version of the path.


Steps to Reproduce

Print out the "MODROOT" value from a v2 mods environment and see that the path is incorrect.




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