Some changes were made to Lua sandboxing due to security concerns. Here's how they affect you:
If you used require("mobdebug").start() in your mods, that should be replaced with StartDebug() to prevent your script from hitting an error, since that only works with --luadebug enabled. This means you'll have to update any lua mods you've released with that line left in.
For now we strongly recommend running workshop mods only with --luadebug disabled. This recommendation may be retracted in a later update.
See the debugging page in the tools/luadoc documentation for a tutorial on setting up the debugger.
Changed the way unpacked resources are loaded, due to issues players were frequently seeing where unpacked resources were becoming outdated, players with incompatible legacy mod files or mods applied by the legacy method. Now the game prefers to load files from the pack file first, and if that fails, loads from loose files.
Fixed const-ness of player entity passed to certain callbacks.
Fixed an issue where a function for getting the screen position of an entity didn't account for the camera offset or screen shake.
This page was last edited on 22 November 2019, at 20:25.
Content is available under CC BY-NC-SA 3.0 unless otherwise noted. Game content and materials are trademarks and copyrights of their respective publisher and its licensors. All rights reserved.
This site is a part of Fandom, Inc. and is not affiliated with the game publisher.