Project Zomboid

Project Zomboid

Mod Load Order Sorter [b42]
REfRigERatoR  [developer] 12 Feb @ 1:05pm
Bug reports
Report any bugs you find here.
Don't forget to attach the error logs
< >
Showing 1-15 of 26 comments
Tidurian 23 Feb @ 10:03pm 
I ran into a prroblem. if click "sort" at the bottom i get a Error and nothing happens. checking the Log i find this:

`Callframe at: error
function: visit -- file: MLOS_sorting.lua line # 288 | MOD: Mod Load Order Sorter [b42]
function: visit -- file: MLOS_sorting.lua line # 295 | MOD: Mod Load Order Sorter [b42]
function: visit -- file: MLOS_sorting.lua line # 301 | MOD: Mod Load Order Sorter [b42]
function: topological_sort -- file: MLOS_sorting.lua line # 311 | MOD: Mod Load Order Sorter [b42]
function: autoSort -- file: MLOS_ModSelector_overrides.lua line # 92 | MOD: Mod Load Order Sorter [b42]
function: onOptionMouseDown -- file: ModLoadOrderPanel.lua line # 188 | Vanilla
function: newOnMouse -- file: MLOS_SortingRulesPanel.lua line # 57 | MOD: Mod Load Order Sorter [b42]
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla
se.krka.kahlua.vm.KahluaException: Dependencyes Cycle Detected for \FurryApocalypse
at se.krka.kahlua.stdlib.BaseLib.error(BaseLib.java:291)
at se.krka.kahlua.stdlib.BaseLib.call(BaseLib.java:119)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1902)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1626)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:861)
at zombie.ui.UIManager.update(UIManager.java:721)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.GameWindow.logic(GameWindow.java:324)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:909)
at zombie.GameWindow.run_ez(GameWindow.java:802)
at zombie.GameWindow.mainThread(GameWindow.java:600)
at java.base/java.lang.Thread.run(Unknown Source)
`

Seems the Furry apocalypse mod creates some trouble? how would i fix that?
it would be nice if your mod would be more Verbose in telling what exactly the issue is, instead of just throwing a error.
Last edited by Tidurian; 23 Feb @ 10:04pm
Tidurian 23 Feb @ 10:36pm 
I found out what the exact prolem was. the "Furry Apocalypse Variety pack" had "/FurryApocalypse" in both "Require" and "LoadModBefore" fields in the Modinfo. the error pointed at the wrong mod :). my optinion. try to catch the error and default to load LoadModBefore as that is then clearly intended by the author.
Last edited by Tidurian; 23 Feb @ 10:40pm
REfRigERatoR  [developer] 23 Feb @ 11:10pm 
Originally posted by Tidurian:
I found out what the exact prolem was. the "Furry Apocalypse Variety pack" had "/FurryApocalypse" in both "Require" and "LoadModBefore" fields in the Modinfo. the error pointed at the wrong mod :). my optinion. try to catch the error and default to load LoadModBefore as that is then clearly intended by the author.

Thanks Tidurian.
yes, you are right, the error "Dependencyes Cycle Detected for \FurryApocalypse" could occur because the require option implies that the mod specified there (FurryApocalypse) should be loaded before "Furry Apocalypse Variety pack", but the loadModBefore option implies that the mod for which this option is specified should be loaded before those listed in this option (i.e. "Furry Apocalypse Variety pack" should be loaded before "FurryApocalypse"). which is a contradiction.

I will try to add the detection of such contradictions. Thanks again.
REfRigERatoR  [developer] 23 Feb @ 11:10pm 
by the way, it's interesting to know how the vanilla automatic sorting algorithm handles this error
Tidurian 23 Feb @ 11:25pm 
to my Knowledge i think the Vanilla sorting dosnt applies a sorting to "require"
Vanilla treats it as "it just has to be enabled"
Last edited by Tidurian; 23 Feb @ 11:25pm
Tidurian 23 Feb @ 11:31pm 
Vanilla modinfo supports "loadModAfter=" and "loadModBefore=" and does not aply sorting to "require="
Last edited by Tidurian; 23 Feb @ 11:32pm
Tidurian 24 Feb @ 1:01am 
Ah! since i have your attention for a bit. please update the german translation. The Current :
UI_MLOS_CurrentRules_Tooltip = "Das geltende Recht",
is telling "The applicable law" (goverment laws)
Better would be "Aktuelle Regeln"
"thats more literally "Current Rules" than goverment laws :)
Last edited by Tidurian; 24 Feb @ 1:08am
REfRigERatoR  [developer] 24 Feb @ 1:49am 
Ok
eight 2 Mar @ 12:30pm 
Mod has worked for me for a while. Today, clicking on "Sort Order" yields an error and does not show the window. My game is essentially hung here.

LOG : General f:0, t:1740947346494> -------------------------------------------------------------
attempted index: name of non-table: null

LOG : General f:0, t:1740947346495> -----------------------------------------
STACK TRACE
-----------------------------------------
function: instantiate -- file: ModLoadOrderPanel.lua line # 34 | Vanilla
function: onOptionMouseDown -- file: ModSelector.lua line # 201 | Vanilla
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla

ERROR: General f:0, t:1740947346496> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: name of non-table: null at KahluaThread.tableget(KahluaThread.java:1667).
Stack trace:
se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1902)
se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
zombie.ui.UIElement.onMouseUp(UIElement.java:1626)
zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
zombie.ui.UIManager.updateMouseButtons(UIManager.java:861)
zombie.ui.UIManager.update(UIManager.java:721)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
zombie.GameWindow.logic(GameWindow.java:324)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
zombie.GameWindow.frameStep(GameWindow.java:909)
zombie.GameWindow.run_ez(GameWindow.java:802)
zombie.GameWindow.mainThread(GameWindow.java:600)
java.base/java.lang.Thread.run(Thread.java:1583)
LOG : General f:0, t:1740947346496> -----------------------------------------
STACK TRACE
-----------------------------------------
function: instantiate -- file: ModLoadOrderPanel.lua line # 34 | Vanilla
function: onOptionMouseDown -- file: ModSelector.lua line # 201 | Vanilla
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla
eight 2 Mar @ 12:36pm 
Clarifying: this only happens when trying to "Sort" from the mod list for an existing save. This previously worked on the same save yesterday. :-/
eight 2 Mar @ 12:56pm 
I think I found it: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3416696068 seems to be absent from the workshop suddenly. This appears to be breaking my save AND breaking the sorter. It may be worth considering a warning message in the sorter as well as handling the disappearance of mods causing the sort mod to put the program into an unrecoverable state.
REfRigERatoR  [developer] 3 Mar @ 5:29am 
@eight, Great find!
I was able to reproduce the problem locally too, but this error has nothing to do with my mod. This should be reported to the game developers.

The problem is that when the mod sorting window is initialized, it tries to load information about active mods, but when the list of active mods contains mods that are deleted (whether they do not exist locally, or have been unsubscribed from them), then there is a reference to an object that does not exist, because of which the game crashes
M1ST0R 4 Mar @ 12:16pm 
42.4
-------

`attempted index: name of non-table: null
function: instantiate -- file: ModLoadOrderPanel.lua line # 34 | Vanilla
function: onOptionMouseDown -- file: ModSelector.lua line # 201 | Vanilla
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla
java.lang.RuntimeException: attempted index: name of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1902)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1633)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1588)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1588)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1695)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:869)
at zombie.ui.UIManager.update(UIManager.java:728)
at zombie.GameWindow.logic(GameWindow.java:332)
at zombie.GameWindow.frameStep(GameWindow.java:928)
at zombie.GameWindow.run_ez(GameWindow.java:821)
at zombie.GameWindow.mainThread(GameWindow.java:619)
at java.base/java.lang.Thread.run(Unknown Source)
`
REfRigERatoR  [developer] 4 Mar @ 1:01pm 
@M1ST0R
Please try to reproduce the same error but with the disabled "Mod Load Order Sorter [b42]"

judging from the error text this is a vanilla bug (see discussion above)
M1ST0R 4 Mar @ 11:41pm 
without mod all works fine, but i need this masterpiece. auto load sorter in vanilla are broken
Last edited by M1ST0R; 4 Mar @ 11:43pm
< >
Showing 1-15 of 26 comments
Per page: 1530 50