Project Zomboid

Project Zomboid

'89 Volvo 200 Series
This topic has been locked
Volvo 245 Wagon overall condition maxes out at 98.28%
While messing around in debug mode, I noticed that a fully repaired 89 Volvo 245 Wagon vehicle could only reach a maximum 98.28% overall condition if you force complete repair. Engine quality was 100, and all parts listed were 100% condition; yet the overall condition was consistently 98.28% for every spawn of the Wagon. Wondered why can’t this reach 100% (like with vanilla cars)?

Then I saw that the visual overlay in the Vehicle Mechanic screen had Trunk part (not Trunk Storage), and only Trunk Storage is listed in the Mechanics list (not Trunk as well). Also noticed, (using debug mode) changing Trunk conditions from the coloured UI overlay had no impact on overall condition, whereas Trunk Storage does from the list, but doesn’t change the color of the ‘Trunk’.

Closer inspection of template_VL200_trunk.txt shows that both parts Trunk Storage (labelled as VL200TrunkW) and Trunk (TruckBed) are included in VL245TrunkCompartmentWagon (which is then linked to the main 89volvo245wagon.txt, line 330). If you change the display to bodywork instead of nodisplay for TruckBed (line 65 in template_VL200_trunk.txt), both Trunk Storage and Trunk now show in the Mechanic list, and the vehicle can reach 100% overall condition. So, the game seems to include both these parts in the Wagon, but since Trunk part is missing from the list, and the 1.72% from the part is never added to the overall condition calculation - and you end up with 98.28%.

HOWEVER, with both parts present, the car now has 2 trunks in the game - not what is intended (or needed).


SOLUTION: Remove the Trunk/TruckBed part from template_VL200_trunk.txt and re-route the Mechanic Overlay to Trunk Lid as visible part.

1. Delete (or comment out) lines 62-79 in template_VL200_trunk.txt.
(removes Trunk part from vehicle)
2. Replace TruckBed with TrunkDoor (line 142, 89volvo200CarMechanicsOverlay.lua)
3. Add the following line to top of 89volvo200CarMechanicsOverlay.lua

ISCarMechanicsOverlay.PartList["TrunkDoor"] = {img="trunk", vehicles = {}};
(will load the custom image reference in #2 above)

NOTE: New install of Project Zomboid, with only KI5 cars and Easy Engine Rebuild mods enabled.


Greatly appreciate all your vehicle mods and the attention to detail - hopefully my explanation makes sense :steamhappy:. If you have any questions let me know, and willing to help in the testing!
Last edited by Biotwister; 4 Jan @ 8:49pm
< >
Showing 1-2 of 2 comments
Also noticed this bug in other KI5 vehicles not reaching 100% overall condition:
93 Chevy Silverado Fossil - 97.78%
93 Chevy Silverado Extended Cab - 98.18%
68 Pontiac Firebird 400 - 98%
82 Porsche 911 - 98.04%
86 Econline Van E-150 - 97.56%
85 ClubCar - 94.44%

Could this be due to the same Trunk and Trunk Storage parts?
Last edited by Biotwister; 4 Jan @ 4:54pm
KI5  [developer] 10 Apr @ 11:03am 
Truckbed is a part that every mod i make has, it needs to be there for trunk to function properly.
< >
Showing 1-2 of 2 comments
Per page: 1530 50