Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Check the options in the mod and you'll see I'm not trying to make anyone use my personal headlight preferences, the options can go to ridiculous levels. 360° daylight-level illumination with a range so high it extends out of the loaded world? I hate it, but I won't stop other people doing it.
This mod isn't being forced on you, and having options (either in vanilla sandbox settings or mod settings) doesn't mean you need to set them to a value you don't like.
WOMP WOMP. Why play a highly immersive games rooted in realistic mechanics if this is your attitude. You getting cocky and running your battery flat because you weren't paying attention IS the fun of a game like this. Essentially this is just a cheat mod if it doesn't have any counter balancing.
Tip: make backup copies of the original files before you replace them with the modded versions. I have a folder elsewhere on my computer called Java Mods and I keep a clean copy of the original Zombie folder. Then for each mod I'll make copies of *just* sub folders/files that are being replaced. They come in handy if I want to disable the mod without Verifying the Integrity of the Game Files.
`Callframe at: setAllTheThings
function: UpdateLights -- file: NepHB_highbeams.lua line # 200 | MOD: Nepenthe's High Beams 2.0 Java Edition
function: setHeadlightsOnSpawn -- file: NepHB_highbeams.lua line #
.....
Caused by: java.lang.NullPointerException: Cannot assign field "highBeamsActive" because the return value of "zombie.vehicles.BaseVehicle.getPartById(String)" is null
at zombie.vehicles.VehiclePart.setAllHighBeamsOff(VehiclePart.java:149)
Is there a chance you can add some options to the "360" feature? I like how the beams work, but it makes the vehicle itself hard to see in the complete darkness - so wondering if we can have options on the 360 glow to have a smaller (less OP) light on the car so I can see it while driving too?
What messages regarding the mod are in your console.txt?
There's also 360° mode, but that gets really silly really quickly.
Unfortunately it's hard to do anything in between, since the lights have to face directly forward and there's are limits on his much the shape can be adjusted. I find that 3x distance/1.5x intensity is wide enough for night driving.
I love your mods, especially those highbeams!
An idea for an extension/submod: wide beams/fog lights.
I like the new lighting system but every lightbeam is so narrow.
For cars widebeams (or maybe a gradual light fading on the highbeam edge?) would be great.
Cheers!
Also, AI for Zomboid mods is really terrible, and I advise against it.
`attempted index: create of non-table: null
function: initOptions -- file: NepHB_highbeams.lua line # 96 | MOD: Nepenthe's High Beams 2.0 Java Edition
function: NepHB_highbeams.lua -- file: NepHB_highbeams.lua line # 120 | MOD: Nepenthe's High Beams 2.0 Java Edition
java.lang.RuntimeException: attempted index: create of non-table: null
I used ProjectZomboiddecompiler to decompile the game and create a directory with dependencies.
For everyone else: This is NOT needed for normal installation, most users should just copy the precomputed VehiclePart.class
boolean bl;
VehiclePart headlightLeft = this.vehicle.getPartById("HeadlightLeft");
VehiclePart headlightRight = this.vehicle.getPartById("HeadlightRight");
// Only toggle high beams if the parts exist
if (headlightLeft != null && headlightRight != null) {
bl = !this.highBeamsActive;
headlightLeft.highBeamsActive = bl;
headlightRight.highBeamsActive = bl;
} else {
System.out.println("Warning: One or both headlight parts are missing.");
}
this.updateAllLights();
}
VehiclePart headlightLeft = this.vehicle.getPartById("HeadlightLeft");
VehiclePart headlightRight = this.vehicle.getPartById("HeadlightRight");
// Check if the parts exist before modifying them
if (headlightLeft != null) {
headlightLeft.highBeamsActive = false;
} else {
System.out.println("Warning: HeadlightLeft part is missing.");
}
if (headlightRight != null) {
headlightRight.highBeamsActive = false;
} else {
System.out.println("Warning: HeadlightRight part is missing.");
}
this.updateAllLights();
}
VehiclePart headlightLeft = this.vehicle.getPartById("HeadlightLeft");
VehiclePart headlightRight = this.vehicle.getPartById("HeadlightRight");
// Check if the parts exist before modifying them
if (headlightLeft != null) {
headlightLeft.highBeamsActive = true;
} else {
System.out.println("Warning: HeadlightLeft part is missing.");
}
if (headlightRight != null) {
headlightRight.highBeamsActive = true;
} else {
System.out.println("Warning: HeadlightRight part is missing.");
}
this.updateAllLights();
}
public void updateAllLights() {
VehiclePart headlightLeft = this.vehicle.getPartById("HeadlightLeft");
VehiclePart headlightRight = this.vehicle.getPartById("HeadlightRight");
// Only update the lights if the parts exist
if (headlightLeft != null) {
headlightLeft.updateLight();
}
if (headlightRight != null) {
headlightRight.updateLight();
}
}
For now my workaround is to enable 360° normal lights, and euse those for parking at night.
Any chance you could add 'Reverse' white lights for all vehicles too please, now that you've pwn'd Java?
No Burnt Cars;
PZK VLC (Vanilla look-like car pack) (Exotic Cars and "Highway to hell" Addon);
Condition On Dash;
AutoMechanics;
Reduced sickness inside the vehicle;
No Trunk Space Loss (Vanilla only);
Project Seasons (vehicle rust mechanic);
FlipVehiclePlusTrailer;
Standardized Vehicle Upgrades 3 (Core and Vanilla Addon);
monstersauce simple mod (carhood; opens car hood faster and carexp that shows if you will recieve exp from parts uninstall/install (+off road ratings);
Effortless Towing;
Working Seatbelt;
Dynamic Tarp covers;
Hide in Car;
Time Decreases Vehicle Condition;
Neutral Gear Towing;
Improved Trafficjams;
New Car Dashboard;
Authentic Regional Police;
Vehicle Repair Overhaul;
Autotsar Motor Club;
Refrigerated Ice Cream Trucks;
Better Car Physics.
Yeah, i know, it's a boat load of car mods.
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:624)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
zombie.gameStates.IngameState.enter(IngameState.java:865)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
zombie.GameWindow.logic(GameWindow.java:388)
zombie.GameWindow.frameStep(GameWindow.java:928)
zombie.GameWindow.run_ez(GameWindow.java:821)
zombie.GameWindow.mainThread(GameWindow.java:619)
java.base/java.lang.Thread.run(Unknown Source)
1.选项的模组部分没有出现该mod的内容
2.进游戏后发现模组名字变红,并带上了[ERROR]前缀
因为字数限制我先放一部分报错内容上来,剩下的在下一条评论里
[16-04-25 10:02:50.637] ERROR: General f:0, t:1744768970637> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: getInstance of non-table: null at KahluaThread.tableget(KahluaThread.java:1667).