Project Zomboid

Project Zomboid

144 个评价
Game Night: One-Bullet Game
6
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
130.419 KB
2024 年 8 月 8 日 下午 5:10
2 月 16 日 上午 7:49
6 项改动说明 ( 查看 )

订阅以下载
Game Night: One-Bullet Game

在 Chuckleberry Finn 的 1 个合集中
Game Night Collection
21 件物品
描述
Add-On for GameNight.
Actually fires your weapon! Waste your bullets and your self!

Notable Features:
- Not just RNG, actual simulated chambers.
- Repeated fire comes with more risk. (If you don't re-roll the cylinder.)
- Applies to all guns with the `getWeaponReloadType` of `revolver`.
- Actually uses ammo when fired.
- Animated.


For mod compatability:
If you are a modder and your guns are not `getWeaponReloadType = revolver` you can also use the following code in /client/:
local OneBulletGame = require "gameNight - implementation OneBulletGame" OneBulletGame.addGun("module.type")


[discord.gg]

[github.com]

Credit to Aiteron for the initial timed action code and animation XMLs.

Remaining work is Copyright 2024 Chuckleberry Finn. This item is not authorized for posting on Steam, except under the Steam account(s) named Chuckleberry Finn.

Workshop ID: 3305459666
Mod ID: gamenight_One_Bullet_Game
54 条留言
Charyan 10 月 15 日 上午 10:24 
at zombie.iso.IsoWorld.update(IsoWorld.java:4237)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1700)
at zombie.gameStates.IngameState.update(IngameState.java:1465)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:386)
at zombie.GameWindow.frameStep(GameWindow.java:923)
at zombie.GameWindow.mainThreadStep(GameWindow.java:647)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Charyan 10 月 15 日 上午 10:24 
zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3056)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5964)
at zombie.iso.IsoCell.update(IsoCell.java:5897)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4203)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4323)
Charyan 10 月 15 日 上午 10:24 
zombie.characters.CharacterTimedActions.LuaTimedActionNew.update(LuaTimedActionNew.java:88)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:11034)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10675)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1952)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:1935)
at
Charyan 10 月 15 日 上午 10:23 
I am running b42.12 & having the same issue as mentioned below, error comes when the trigger is pulled, sound and animation work, but doesn't use ammunition and character gets up unharmed. don't know much abut coding mods but here's the error code i got seems slightly different, hope its helpful, love your mods btw

`function: update -- file: gameNight - oneBulletGameTimedAction.lua line # 39 | MOD: Game Night - One-Bullet Game
java.lang.RuntimeException: Object tried to call nil in update
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:817)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1668)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
at
Chuckleberry Finn  [作者] 10 月 7 日 下午 2:36 
Are you on B42?
Cyrisa 10 月 7 日 下午 2:17 
For example


function: update -- file: gameNight - oneBulletGameTimedAction.lua line # 39 | MOD: Game Night - One-Bullet Game
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:210)


Caused by: java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "<parameter1>" is null
at zombie.scripting.ScriptManager.FindItem(ScriptManager.java:1535)
at zombie.inventory.InventoryItemFactory.getItem(InventoryItemFactory.java:56)
at zombie.Lua.LuaManager$GlobalObject.getItem(LuaManager.java:7571)
Cyrisa 10 月 7 日 下午 1:11 
Doesn't seem to work anymore. Can still roll the cylinder. The click and fire both plays sounds. But when the revolver fires it does not actually do anything to the character nor use ammo. Effectively playing the game with blanks.

I was sitting in the driver seat of car using a "guns of 93" revolver.

The option to load 1 round as a context menu extension for playing would be great as well. Otherwise reloading is kind of juggling reloading and hitting esc to cancel the reload action.
Chuckleberry Finn  [作者] 9 月 27 日 上午 6:55 
Yes
Альфа 1918 9 月 27 日 上午 6:53 
Soooo Russian Roulette?
Ксерокопия члена 5 月 21 日 下午 5:19 
best