Project Zomboid

Project Zomboid

144 arvostelua
Game Night: One-Bullet Game
6
2
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
130.419 KB
8.8.2024 klo 17.10
16.2. klo 7.49
6 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Game Night: One-Bullet Game

1 kokoelmassa, tekijä Chuckleberry Finn
Game Night Collection
21 luomusta
Kuvaus
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 kommenttia
Charyan 15.10. klo 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 15.10. klo 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 15.10. klo 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 15.10. klo 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  [tekijä] 7.10. klo 14.36 
Are you on B42?
Cyrisa 7.10. klo 14.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 7.10. klo 13.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  [tekijä] 27.9. klo 6.55 
Yes
Альфа 1918 27.9. klo 6.53 
Soooo Russian Roulette?
best