Project Zomboid

Project Zomboid

Skyler DrugMod [B41 & B42]
 此主题已被置顶,因此可能具有重要性
Skyler  [开发者] 2022 年 12 月 11 日 上午 3:14
Bug Reports
report any bugs that you witness with the Drug mod.
最后由 Skyler 编辑于; 2022 年 12 月 11 日 上午 3:14
< >
正在显示第 1 - 15 条,共 24 条留言
juju 2022 年 12 月 14 日 下午 8: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  [开发者] 2022 年 12 月 14 日 下午 10:21 
@juju it should be fixed now
juju 2022 年 12 月 14 日 下午 10:40 
My man! Gonna reboot the server and try it out! Thanks for the fast turn around you rock!
Karas 2022 年 12 月 15 日 上午 3:54 
drug use is illegal
redheadedstepchild 2022 年 12 月 17 日 下午 9:24 
you lose your cooking pot and baking tray when cooking
IndritR 2023 年 1 月 20 日 上午 2:30 
It happend to me also
Skyler  [开发者] 2023 年 1 月 28 日 下午 6:03 
@redheadedstepchild @IndritR I will look into the issue and fix it in the next update.
Skyler  [开发者] 2023 年 1 月 28 日 下午 6:42 
@redheadedstepchild @IndritR I fixed the issue
Lucent 2023 年 2 月 15 日 下午 8: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 2023 年 2 月 26 日 上午 3:05 
the mod is burning red on my server
does not work
DD ☠ 2023 年 2 月 27 日 上午 1:50 
Re-subscribe guys. The author is updating the mod frequently.
Bread 2023 年 8 月 8 日 上午 8:29 
Cooking crystal meth consumes the big cooking pots still
snji 2024 年 3 月 17 日 上午 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
最后由 snji 编辑于; 2024 年 3 月 17 日 上午 3:59
snji 2024 年 3 月 17 日 上午 4:01 
Simply put, you need to rename the texture name itself and do not forget to use it in Drugs_Models.txt
Skyler  [开发者] 2024 年 3 月 17 日 上午 4:55 
@aeǝr should be fixed now
< >
正在显示第 1 - 15 条,共 24 条留言
每页显示数: 1530 50