Project Zomboid

Project Zomboid

Skyler DrugMod 2.0
 This topic has been pinned, so it's probably important
Skyler  [developer] 11 Dec, 2022 @ 3:14am
Bug Reports
report any bugs that you witness with the Drug mod.
Last edited by Skyler; 11 Dec, 2022 @ 3:14am
< >
Showing 1-15 of 24 comments
juju 14 Dec, 2022 @ 8:15pm 
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  [developer] 14 Dec, 2022 @ 10:21pm 
@juju it should be fixed now
juju 14 Dec, 2022 @ 10:40pm 
My man! Gonna reboot the server and try it out! Thanks for the fast turn around you rock!
Karas 15 Dec, 2022 @ 3:54am 
drug use is illegal
you lose your cooking pot and baking tray when cooking
IndritR 20 Jan, 2023 @ 2:30am 
It happend to me also
Skyler  [developer] 28 Jan, 2023 @ 6:03pm 
@redheadedstepchild @IndritR I will look into the issue and fix it in the next update.
Skyler  [developer] 28 Jan, 2023 @ 6:42pm 
@redheadedstepchild @IndritR I fixed the issue
Lucent 15 Feb, 2023 @ 8:48pm 
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 @ 3:05am 
the mod is burning red on my server
does not work
DD ☠ 27 Feb, 2023 @ 1:50am 
Re-subscribe guys. The author is updating the mod frequently.
Bread 8 Aug, 2023 @ 8:29am 
Cooking crystal meth consumes the big cooking pots still
snji 17 Mar, 2024 @ 3:58am 
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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3188024570&fileuploadsuccess=1
Last edited by snji; 17 Mar, 2024 @ 3:59am
snji 17 Mar, 2024 @ 4:01am 
Simply put, you need to rename the texture name itself and do not forget to use it in Drugs_Models.txt
Skyler  [developer] 17 Mar, 2024 @ 4:55am 
@aeǝr should be fixed now
< >
Showing 1-15 of 24 comments
Per page: 1530 50