Jump to content

Load files order


Maris

Recommended Posts

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

  • 1 month later...

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 by ATPHHe
Link to comment
Share on other sites

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

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