Version: 42.3.1+ (still present on 42.5.1) (Linux x86_64)
Mode: Singleplayer
Mods: Any with multiple files that require alphabetical load order, Bikinitools is a good example, but it is not specific to Bikinitools.
Save: N/A, happens on game bootup as well
Reproduction steps:
1. Have a mod that uses multiple files that require alphabetical loading (e.g. named 01_foo.lua, 10_baz.lua, 99_bar.lua). Bikinitools is a good example.
2. Enable the mod and load PZ.
3. The mod lua files will be loaded in the wrong order (rather than alphabetical), which causes the mod to error and print tracebacks.
As an example of one of the tracebacks, and why I believe it is due to an ordering bug:
function: 11_BT_VehiclePart.lua -- file: 11_BT_VehiclePart.lua line # 1 | MOD: bikinitools v51 [B42].
[27-02-25 14:39:27.714] ERROR: General f:0, t:1740627567714> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: VehiclePart of non-table: null at KahluaThread.tableget(KahluaThread.java:1667).
This is from the line of code in 11_BT_VehiclePart.lua:
function Bikinitools.VehiclePart:isMissing(part)
Which is set up in 00_BT_Base.lua like so:
Bikinitools.VehiclePart = {};
All the other tracebacks are similar. It appears like this is a Zomboid bug specific to Linux since all I can find about Lua loading says that it happens in that alphabetical order, and this isn't affecting the majority of people so I'm chalking it down to being a Linux user :)
I don't think there's a way to log which files are being loaded in what order, and the filename is missing the directory path, but if we take bikinitools/42/media/lua/client/Automation as an example, the tracebacks are logged in this order, which demonstrates how it's not alphabetical.
Question
hawkowl
Version: 42.3.1+ (still present on 42.5.1) (Linux x86_64)
Mode: Singleplayer
Mods: Any with multiple files that require alphabetical load order, Bikinitools is a good example, but it is not specific to Bikinitools.
Save: N/A, happens on game bootup as well
Reproduction steps:
1. Have a mod that uses multiple files that require alphabetical loading (e.g. named 01_foo.lua, 10_baz.lua, 99_bar.lua). Bikinitools is a good example.
2. Enable the mod and load PZ.
3. The mod lua files will be loaded in the wrong order (rather than alphabetical), which causes the mod to error and print tracebacks.
As an example of one of the tracebacks, and why I believe it is due to an ordering bug:
This is from the line of code in 11_BT_VehiclePart.lua:
Which is set up in 00_BT_Base.lua like so:
All the other tracebacks are similar. It appears like this is a Zomboid bug specific to Linux since all I can find about Lua loading says that it happens in that alphabetical order, and this isn't affecting the majority of people so I'm chalking it down to being a Linux user :)
I don't think there's a way to log which files are being loaded in what order, and the filename is missing the directory path, but if we take bikinitools/42/media/lua/client/Automation as an example, the tracebacks are logged in this order, which demonstrates how it's not alphabetical.
This also appears to affect other mods like Spongie's Character Customisation, although I haven't looked into that too much.
add 42.5.1 note
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now