Maris Posted April 2, 2020 Share Posted April 2, 2020 We know that Lua files from all active mods load in alphabetical order. But I noticed that files in server folder load after files in client folder even if you have only one active mod. Is there any full guide about load order? Link to comment Share on other sites More sharing options...
ATPHHe Posted May 3, 2020 Share Posted May 3, 2020 (edited) Hmm. Not sure if one guide exists yet as I haven't found one. From what I've seen in the CMD/Debug Console, the game loads PZ Lua files, then Mod Lua files from the "lua" folder based on what's happening below. Build 40 Lua files in these folders are loaded when you are booting up Project Zomboid, reloading lua mods, or returning to the main menu: Loaded 1st: "../media/lua/shared" ( folders/files loaded alphabetically - PZ Lua files, then Mod Lua files ) Loaded 2nd: "../media/lua/client" ( folders/files loaded alphabetically - PZ Lua files, then Mod Lua files ) Lua files in these folders are loaded only when you are starting up a Singleplayer game/save, or a Multiplayer Server: "../media/lua/server" ( folders/files loaded alphabetically - PZ Lua files, then Mod Lua files ) Build 41 seems to keep the same load order for Lua files from Build 40. --------------------------------------------------------------------------------------------------------------------- For other files like 3d models, scripts, textures, texturepacks, etc., I cannot confirm yet how they are loaded exactly. Hope this helps a little bit though. Edited May 3, 2020 by ATPHHe Maris 1 Link to comment Share on other sites More sharing options...
Maris Posted May 3, 2020 Author Share Posted May 3, 2020 8 hours ago, ATPHHe said: lua/server files are loaded only when you are starting up a Singleplayer game/save, or a Multiplayer Server As I remember, server files are always loaded when you create/join game session. And lua/client files are loaded only on client (not on dedicated server). Link to comment Share on other sites More sharing options...
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