Project Zomboid

Project Zomboid

Speedometer km/h (fix)
52 Comments
Shiinamei  [author] 10 Apr, 2023 @ 7:50am 
@Kafkatrap I have clean version included
USER404 8 Apr, 2023 @ 10:35am 
@kafkatrap no, but clean UI need another fix as it is broken atm.
Kafkatrap 8 Apr, 2023 @ 4:58am 
@Shiinamei does the same update need to be made to the Cleaner UI version?
Shiinamei  [author] 31 Mar, 2023 @ 2:59am 
@Bonk Mod conflicting with itself due to identical mod ids for 2 different versions, and useless code like functions being called but their response never used or hardcoded functions that are there for the sake of being there.
Bonk 31 Mar, 2023 @ 1:19am 
If you don't mind, it does fix what exactly?
Shiinamei  [author] 24 Mar, 2023 @ 1:21pm 
@USER404 just replace the texture, no code needed. The load order must be after this mod. media/ui/vehicles/speedometer.png
YeOl'Choppa 24 Mar, 2023 @ 12:05pm 
@Shiinamei
nice one, that was the last thing i'd have thought of with the severity of that conflict.
USER404 24 Mar, 2023 @ 8:25am 
Yeh I should update my clean version and ideally just replace the speedometer texture without using any code to prevent this kind of issues. I should investigate how to do it, however I don't have access to my computer right now. I will fix asap, thanks for the heads-up.
stey456 24 Mar, 2023 @ 3:40am 
At last, the terrible thing is gone. you do great job, man
Shiinamei  [author] 24 Mar, 2023 @ 2:08am 
The problem was identical mod id's for clean version and some useless leftover code from original author.
Shiinamei  [author] 24 Mar, 2023 @ 2:04am 
All issues should be fixed.
Simsimix 23 Mar, 2023 @ 4:43pm 
same here, this mod causes problems with the hotbar keys
BigFBaloo 20 Mar, 2023 @ 7:12am 
Same here. And car dashboard is not showing. Tested by disabling and enabling several times.
Anfortunate 17 Mar, 2023 @ 5:31pm 
tested by disabling and enbling it
Anfortunate 17 Mar, 2023 @ 5:30pm 
This mod makes me unable to open world map
Shiinamei  [author] 15 Mar, 2023 @ 1:44pm 
@Happy_Light_Dragon gimme the error code.
Happy_Light_Dragon 14 Mar, 2023 @ 11:00pm 
The mod is pretty good, but it only causes problems with constant error code errors, no matter what you do, be it remote play or single, the error remains, so I ask that you take care of the error, the error is only annoying for a long time.:steamthumbsdown:
YeOl'Choppa 14 Mar, 2023 @ 2:26pm 
@Shiinamei
definitely a conflict issue, errors like this are only showing up when the speedometer mod loads after all of my currently active mods.
Shiinamei  [author] 14 Mar, 2023 @ 10:11am 
Very strange behavior. Seems like something is conflicting. Thanks for the info, will look into this on weekend.
YeOl'Choppa 13 Mar, 2023 @ 4:07pm 
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)
YeOl'Choppa 13 Mar, 2023 @ 4:07pm 
ERROR: General , 1678748262999> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: __sub not defined for operands in onKeyKeepPressed
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.input.GameKeyboard.update(GameKeyboard.java:85)
at zombie.GameWindow.logic(GameWindow.java:249)
YeOl'Choppa 13 Mar, 2023 @ 4:06pm 
ERROR: General , 1678748262999> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __sub not defined for operands in onKeyKeepPressed at KahluaUtil.fail line:82.
YeOl'Choppa 13 Mar, 2023 @ 4:06pm 
the stack trace above has been copied from the console.txt output at Users --> Zomboid:
YeOl'Choppa 13 Mar, 2023 @ 4:01pm 
had to separate the stack trace because of steam's shitty character limit per comment
YeOl'Choppa 13 Mar, 2023 @ 4:01pm 
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)
`
YeOl'Choppa 13 Mar, 2023 @ 4:00pm 
`function: onKeyKeepPressed -- file: ISHotbar.lua line # 729 | Vanilla
java.lang.RuntimeException: __sub not defined for operands in onKeyKeepPressed
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.input.GameKeyboard.update(GameKeyboard.java:85)
at zombie.GameWindow.logic(GameWindow.java:249)
at
YeOl'Choppa 13 Mar, 2023 @ 4:00pm 
@Shiinamei
sure, im also gonna add that the reason it stopped throwing errors of that size was cause of the load order, toggling it off and on made it so the speedometer loads up last after all the other ones
Dima 13 Mar, 2023 @ 3:24pm 
Getting the same error, went true all of my mods and this one seems to cause it. no idea why and how.
Shiinamei  [author] 13 Mar, 2023 @ 12:08pm 
Could you share the error with me?
YeOl'Choppa 12 Mar, 2023 @ 5:24pm 
um, that's weird... toggling the speedometer on and off seemed to just fix everything again? it would appear my testing concluded so.

this game's coding is cursed
YeOl'Choppa 12 Mar, 2023 @ 4:58pm 
alright, from my testing so far (not quite done yet) the errors should be originating from a mod incompatibility within my mod list, im currently narrowing down which one of them is causing problems.
YeOl'Choppa 12 Mar, 2023 @ 4:49pm 
@violentknight @Shiinamei
it seems like im experiencing the same issues as violentknight, pressing f or the hotbar numbers throws continuous errors for the duration of the key press.

im testing out each one of my mods to see if the issue involves incompatibilities between them or if its really related to this mod, will report soon.
violentknight 12 Mar, 2023 @ 1:30pm 
k thanks ill try that, also weird i have that has been read add on, it never worked before , but now with your add-on with the error it works, yet only while your add on is enabled , if i disable your add on , the has been read add on doesn't work,
Shiinamei  [author] 12 Mar, 2023 @ 5:21am 
There were no changes apart from code removal and additional texture variant. Try unsubscribe and subscribe again @violentknight
violentknight 11 Mar, 2023 @ 5:42pm 
seems like the recent update has caused me error codes when trying to switch weapons with 1,2,3 keys. any idea s
YeOl'Choppa 11 Mar, 2023 @ 10:44am 
@Shiinamei
you're welcome, glad to have helped
Shiinamei  [author] 11 Mar, 2023 @ 10:27am 
Thanks, I removed mod options support altogether since it's not very useful anyway
YeOl'Choppa 10 Mar, 2023 @ 2:46pm 
@Shiinamei
uhh, i might have fixed that error from before, with my somewhat shallow experience in coding , what was happening was that the function SetModOptions with the OPTIONS argument was returning nil and throwing an execution error in the console.

what i did was literally remove the function call in line 21 since it probably wasn't even being used properly, something like that.

the options in mod options for the mod show up fine and probably work fine, but without the error in the console... so i guess that constitutes as i win?
Shiinamei  [author] 27 Feb, 2023 @ 2:04am 
@Lucifer, not sure. Certain texture mods apply when loaded, but when reloading lua (swapping mods, joining server, etc.) still remain, This texture is loaded a bit differently but I don't think there is no way to implement it the same way. I'll probably see what I can do today
Lucifer 26 Feb, 2023 @ 7:42am 
So small question, since this is an UI mod, does the server need to install it too? Because i'm the only Km/h user there and that would be a problem.
Shiinamei  [author] 19 Feb, 2023 @ 11:46pm 
@uhm when hszuuuhhh shm

Will look into that once I have some time.
maarbåar 19 Feb, 2023 @ 11:42am 
Now my Belgian ass can cruise in peace and flex on zeds
YeOl'Choppa 11 Feb, 2023 @ 6:11pm 
activating this alongside Mod Options causes a lua error:

STACK TRACE
-------------------------------
function: SpeedCoding.lua -- file: SpeedCoding.lua line # 21 | MOD: Speedometer km/h

java.lang.RuntimeException: Object tried to call nil in SpeedCoding.lua
Boris-XP 9 Feb, 2023 @ 6:52am 
chernya
iDoss 24 Jan, 2023 @ 11:31am 
Now my Mexican ass can understand how fast It goes, now I'm going to grab some tacos and flex on zeds.
Bodomy 20 Jan, 2023 @ 1:23am 
Thank you for making this!
Moonraker 16 Jan, 2023 @ 2:16am 
Now my South African ass can cruise in peace and flex on zeds.
Daranik Lothrodin 11 Jan, 2023 @ 7:15pm 
Now my Australian ass can understand what speed I'm going in peace and flex on zeds.
am'z 3 Jan, 2023 @ 9:06am 
Now my European ass can cruise in peace and flex on zeds.
Jajashi 2 Jan, 2023 @ 12:01pm 
nice