Project Zomboid

Project Zomboid

144 ratings
Game Night: One-Bullet Game
6
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
130.419 KB
8 Aug, 2024 @ 5:10pm
16 Feb @ 7:49am
6 Change Notes ( view )

Subscribe to download
Game Night: One-Bullet Game

In 1 collection by Chuckleberry Finn
Game Night Collection
21 items
Description
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 Comments
Charyan 15 Oct @ 10:24am 
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 15 Oct @ 10:24am 
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 15 Oct @ 10:24am 
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 15 Oct @ 10:23am 
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  [author] 7 Oct @ 2:36pm 
Are you on B42?
Cyrisa 7 Oct @ 2:17pm 
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 7 Oct @ 1:11pm 
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  [author] 27 Sep @ 6:55am 
Yes
Альфа 1918 27 Sep @ 6:53am 
Soooo Russian Roulette?
best