Jump to content
Maris

Mod system bug

Recommended Posts

When you go to main menu from the game without a mod (in save file) but the mod is enabled in main "Mods" menu, there may be a crash.

 

Steps to reproduce:

1) Start new game session.

2) Go to main menu / save the game.

3) Close Project Zomboid (quit application).

4) Subscribe "Dreams" mod. Wait for download.

5) Launch Project Zomboid.

6) Go to "Mods" menu and enable this mod.

7) Continue the game (or load last save). Remember that the mod is disabled in this save file.

8] Go to main menu. ------> error.

Share this post


Link to post
Share on other sites

I'm not sure HOW it works. It seems that in this case the mod system changes order of loading files. So, probably, this bug affects not all mods.

 

In Dreams mod, there are two files: dreams.lua and a_dreams_tags.lua.

In the file "a_dreams_tags.lua" a constant DREAMS is created.

In the file "dreams.lua" this constant is used.

But in crash it says that variable DREAMS is not found. It's very strange. Seems like the mod system loaded only one file of the mod. Or the mod system changes order of loading.

 

That's why I said "MAY BE a crash" in bug report.

Edited by Maris

Share this post


Link to post
Share on other sites
On 1/17/2020 at 10:19 PM, Maris said:

I'm not sure HOW it works. It seems that in this case the mod system changes order of loading files. So, probably, this bug affects not all mods.

 

In Dreams mod, there are two files: dreams.lua and a_dreams_tags.lua.

In the file "a_dreams_tags.lua" a constant DREAMS is created.

In the file "dreams.lua" this constant is used.

But in crash it says that variable DREAMS is not found. It's very strange. Seems like the mod system loaded only one file of the mod. Or the mod system changes order of loading.

 

That's why I said "MAY BE a crash" in bug report.

You have a strange problem. Is the error still present? You are the only one who has a problem. Download the mod again. Such an error can occur when the number of dreams in a constant does not coincide with the actual number of dreams in the mod file.

Share this post


Link to post
Share on other sites

Yes, it's present.

 

I downloaded mod again. Tested with only one mod enabled (Dreams). And I did it exactly how I described in the first post.

And it doesn't matter which localization is chosen.

 

Build 41.29 -debug

pz_err_dreams.png

console.txt

Edited by Maris

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