Project Zomboid

Project Zomboid

Skyler DrugMod [B41 & B42]
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Skyler  [udvikler] 11. dec. 2022 kl. 3:14
Bug Reports
report any bugs that you witness with the Drug mod.
Sidst redigeret af Skyler; 11. dec. 2022 kl. 3:14
< >
Viser 1-15 af 24 kommentarer
juju 14. dec. 2022 kl. 20:15 
Hi Skyler, I noticed this error on my server after I added this mod, I noticed that I cant see any items in game. I think the distributions lua contains the definitions where the items show up, the roll numbers and chances on which source? That might explain why my server does not have any of the items on anything:


`se.krka.kahlua.vm.KahluaException: DrugMod_distributions.lua:37: ')' expected near `;`
at org.luaj.kahluafork.compiler.LexState.lexerror(LexState.java:278)
at org.luaj.kahluafork.compiler.LexState.syntaxerror(LexState.java:289)
at org.luaj.kahluafork.compiler.LexState.error_expected(LexState.java:683)
at org.luaj.kahluafork.compiler.LexState.check_match(LexState.java:713)
at org.luaj.kahluafork.compiler.LexState.funcargs(LexState.java:1062)
at org.luaj.kahluafork.compiler.LexState.primaryexp(LexState.java:1156)
at org.luaj.kahluafork.compiler.LexState.exprstat(LexState.java:1691)
at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1779)
at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1790)
at org.luaj.kahluafork.compiler.LexState.compile(LexState.java:198)
at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:132)
at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:124)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:546)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.gameStates.GameLoadingState.enter(GameLoadingState.java:97)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`

I checked the line in my servers distribution file and noticed a typo in the file calling the table.insert() function:

table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 2.25;

This table.insert statement on line 37 is missing a closing brace, it maybe should be:
table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 2.25);
Skyler  [udvikler] 14. dec. 2022 kl. 22:21 
@juju it should be fixed now
juju 14. dec. 2022 kl. 22:40 
My man! Gonna reboot the server and try it out! Thanks for the fast turn around you rock!
Karas 15. dec. 2022 kl. 3:54 
drug use is illegal
redheadedstepchild 17. dec. 2022 kl. 21:24 
you lose your cooking pot and baking tray when cooking
IndritR 20. jan. 2023 kl. 2:30 
It happend to me also
Skyler  [udvikler] 28. jan. 2023 kl. 18:03 
@redheadedstepchild @IndritR I will look into the issue and fix it in the next update.
Skyler  [udvikler] 28. jan. 2023 kl. 18:42 
@redheadedstepchild @IndritR I fixed the issue
Lucent 15. feb. 2023 kl. 20:48 
I have a weird error on an existing game, items no longer spawn on zombies or in the world. Existing found drugs are still in inventory. Server.bat shows file: DrugMod_distributions.lua line # 7 | MOD: Drug Mod, any idea what might be wrong?
honey 26. feb. 2023 kl. 3:05 
the mod is burning red on my server
does not work
DD ☠ 27. feb. 2023 kl. 1:50 
Re-subscribe guys. The author is updating the mod frequently.
Bread 8. aug. 2023 kl. 8:29 
Cooking crystal meth consumes the big cooking pots still
snji 17. mar. 2024 kl. 3:58 
THE PROBLEM! :deadrat:
There is a problem with textures in this mod. When I looked into the mod's textures folder, I noticed the Baking Tray.png file, which overwrites the texture against the bottom in the game. The problem is that the game itself already has a texture with the same name.

Here is a screenshot of the problem to make it clearer: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3188024570&fileuploadsuccess=1
Sidst redigeret af snji; 17. mar. 2024 kl. 3:59
snji 17. mar. 2024 kl. 4:01 
Simply put, you need to rename the texture name itself and do not forget to use it in Drugs_Models.txt
Skyler  [udvikler] 17. mar. 2024 kl. 4:55 
@aeǝr should be fixed now
< >
Viser 1-15 af 24 kommentarer
Per side: 1530 50