Jump to content

Mod system bug


Maris

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.

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

  • 4 weeks later...
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.

Link to comment
Share on other sites

  • 2 weeks later...

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