Jump to content
Maris

Load files order

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?

Share this post


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

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...