Project Zomboid

Project Zomboid

Mileage Expansion
59 Comments
CryneX 6 Oct, 2024 @ 2:13pm 
The kilometer text in the speedometer is not in the box, the text goes beyond the box : (
Purple Nebula 1 Oct, 2024 @ 12:08pm 
@Rukio is that a one time thing or every single time someone enters a car? Because I don't use this mod (yet) in my current playthrough and MP, both heavily modded, and that also happens first time I or someone in the server enters a vehicle for the first time since the session's launch.
tkonrye 23 Sep, 2024 @ 11:05am 
@konijima I have found a problem in multiplayer where vehicle:getCurrentSpeedKmHour() (seems to be in vanilla and with mods). If you change line 30 in the lua file from:

if vehicle:isEngineRunning() and vehicle:getCurrentSpeedKmHour() ~= 0 then

to: (adds a line, so the first is now 30 and the second is now 31, place under comment

local vehicleSpeed = (vehicle:getSpeed2D())*3.81
if vehicle:isEngineRunning() and vehicleSpeed ~= 0 then

the mod will work correctly in both single and multiplayer games (with mods 100% sure, vanilla pretty sure) Either way it wont effect the function negatively at all.
Rukio 14 Apr, 2024 @ 7:14pm 
The mod unfortunately causes a pretty bad hitch. Especially in MP, when 1 person jumps in the car. It lags for everyone nearby.

Would advise against it.
Tnaz.v 30 Mar, 2024 @ 10:13pm 
How long do I have to walk for one km to count with the standard configuration? I walked for 30m and did not increase
Tnaz.v 28 Mar, 2024 @ 3:01am 
I move with the car and the number doesn't increase, I hit reset and it doesn't stay fixed at the same value either.
Tnaz.v 26 Mar, 2024 @ 3:07am 
Why does it say miles on the car?
Tnaz.v 26 Mar, 2024 @ 3:06am 
トミー (Tommy) 24 Jan, 2024 @ 8:15pm 
Just wondering, but can you maybe consider adding your onTick function to an onEnterVehicle event so it only runs when a player is actually in a vehicle? Such as registering the function on enter event, then remove the function on leaving the vehicle.
OoNSHPAMoO 5 Dec, 2023 @ 3:15am 
Hi, I improved the Thai Translation and PR to your repository on Github. It's would be great if you merge it to the mod!
Aang741 26 Nov, 2023 @ 9:05am 
Rhasmoth 3 Sep, 2023 @ 10:22pm 
Also, the Discord link you posted in the description is invalid. If you didn't delete your Discord server, you may have copied a time-limited link.
Rhasmoth 3 Sep, 2023 @ 10:21pm 
After several hours of going through my mod list, I've found that enabling this mod causes errors when entering the interior of an RV (using said mod). It's odd though, because some of the errors mentioned in the console log reference Smoking Joe's Rucksacks... I made a copy of the log immediately after the errors popped, if you'd like me to send them to you.
LarryEnticer75 24 Jul, 2023 @ 6:55pm 
Definitely a bummer because I was really hyped about the concept behind this mod, I wish I understood Lua enough to pick through why it is not working.
LarryEnticer75 24 Jul, 2023 @ 6:55pm 
Still definitely not working correctly in MP, the value constantly resets
Hyolffe 18 Jul, 2023 @ 11:44pm 
there does seem to be something being weird going on with this mod in multiplayer, i had a car that started off with 20k miles, after awhile it somehow changed to like 200k something.
even the trip odometer weirded out, going from 5 miles to 6k or 60k (i forget which)
LarryEnticer75 9 Jul, 2023 @ 11:30am 
@Konijima - it appears that the mileage is not updating at all on my dedicated MP server, and whenever I change the odo reading manually as admin the value either resets or randomly generates a new value when it would update. Played around with the sandbox settings a bit but consistently did not see the odo value tick up at all.
TheDawg 8 Jul, 2023 @ 3:30am 
is there any way to adjust the position of the mileage? i dont know if it's due to my resolution or what, but the mileage is never centered correctly on the dash. maybe due to my text size?
Scarecrow the Spud King 16 Jun, 2023 @ 11:37pm 
Great mod and all works except for mileage updating on dedicated server. Mod was added mid save.
KONIJIMA  [author] 5 Jun, 2023 @ 7:14pm 
@Lars03 It works well yes
Lars03 2 Jun, 2023 @ 9:55am 
Does this work with colored engine and battery status?
Ekron 2 Jun, 2023 @ 6:04am 
YES! I HAVE BEEN WAITING!

Thank you
KONIJIMA  [author] 1 Jun, 2023 @ 7:19pm 
@Cnwamw I'm testing on my server and it does work how it's supposed to. Try to set Meter per Kilometer sandbox setting to a lower value (ex: 100) and see if it changes when you drive 100 tiles.
KONIJIMA  [author] 1 Jun, 2023 @ 6:41pm 
@Cnwamw singleplayer or multiplayer?
E6S5 1 Jun, 2023 @ 6:43am 
@FunkBaconDeluxe Thanks, dude. I didn't know.
ElRealOyara_oficial 31 May, 2023 @ 4:19pm 
xd
Void 31 May, 2023 @ 1:40pm 
@Шойгу, Герасимов! That would be about 1000 metres, or 0.6 of a mile.
Hack Squad 31 May, 2023 @ 11:48am 
something we all ned, thanks for mading it
Bodomy 31 May, 2023 @ 12:51am 
The mod I didn't know I needed, thank you!!
Redeye 30 May, 2023 @ 10:42pm 
ty
KONIJIMA  [author] 30 May, 2023 @ 7:21pm 
This mod on itself does not effect the vehicle engine in any way, for now.

If a car engine has 100% then the starting mileage will be very low, about 10% of of the Minimum Starting Odometer sandbox setting.

1 mile = 1.6km
1km = 1000 in-game tiles, by default
E6S5 30 May, 2023 @ 10:33am 
WHAT THE FUCK IS A KILOMETER!?
Redeye 30 May, 2023 @ 8:12am 
ok but if its high mileage then what? does this impact the state of the engine? ie if an engine is 100%, there is 0 milage? or they work separately and have no actual impact, just nice to count mileage?
Moonsnow 30 May, 2023 @ 6:37am 
An interesting mod.
BiggieCheese 28 May, 2023 @ 9:13pm 
i am him :steamthumbsup:
Duster 28 May, 2023 @ 8:14pm 
what the helllllllllll no wayieyatyyyyaaaaa
TestMonkey7142 28 May, 2023 @ 5:54pm 
@Blubbazz Good to know, thanks
Blubbazz 27 May, 2023 @ 2:39pm 
@TestMonkey7142 Yes it is in SP and MP.
TestMonkey7142 27 May, 2023 @ 12:40pm 
Is this safe to add mid-save?
Truffles 27 May, 2023 @ 7:35am 
Love
KONIJIMA  [author] 26 May, 2023 @ 7:23pm 
Update: 26 May @ 10:21pm :cherrypie:
- Added bunch of sandbox options check mod description for details.
HAETPASSING 26 May, 2023 @ 4:41pm 
@Hunter_LINKUP Oh thnx! I found it
Hunter-Killer 26 May, 2023 @ 1:26pm 
@HAETPASSING There's already one named Better Car Physics.
HAETPASSING 26 May, 2023 @ 12:09pm 
Can you guys make a manual transmission mod?
Braven 26 May, 2023 @ 10:21am 
Groovy! :spiffo:
Pashkevi4 26 May, 2023 @ 10:06am 
Hi, love your mod, good job!
Have a one request, can you make sandbox setting for the speed at which the car is gaining mileage,it will be an amazing addition to your wonderful mod!
Thanks for reading.
KONIJIMA  [author] 25 May, 2023 @ 9:22pm 
@Островський it does hooks into ISVehicleDashboard but it doesn't overwrite it.
KONIJIMA  [author] 25 May, 2023 @ 9:21pm 
Updated networking, the mod should work as intended, help me test by reporting weird issues.
Островський 25 May, 2023 @ 7:42pm 
Hey, was just wondering if this mod replaces ISVehicleDashboard:prerender() because if it does, it will break other mods such as the fuel side indicator and colored indicators for the battery and engine. There are sources that say there is a way to add dashboard functions with a patch that doesn't remove compatibility with other mods.
llanzo 25 May, 2023 @ 4:13pm 
woahhoo man! great idea, should be QOL mod