Project Zomboid

Project Zomboid

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