Searching about this has not actually produced a real answer as to how and, most importantly, why the r-wheel definitions need to be set a certain way. I've only seen a couple threads on here only mentioning "just look at how a vanilla truck has it" or "you need to add rnuts2, etc.", but that doesn't actually provide the answer on how the r-wheel definitions work.
My mod has three variations, two of which are tandem axles and one which is a tridem axle. Trying to access the tridem axle variation in the dealership results in a crash with the infamous "<ERROR> Incorrect r-wheel definition for truck.pmd".
Code: Select all
<ERROR> Incorrect r-wheel definition for /vehicle/truck/389cruiser/truck.pmd
<ERROR> d:\buildbot\slaves\win_slave\final_build_ats_145_windows_bin_steam_x64\build\prism\src\p3core\collections\arrays\arrays_base_impl.h(491): ??A?$array_t@_N@prism@@QEAAAEA_N_K@Z: Index outside array boundaries.
My dealership def file is set up just like how the vanilla truck (Peterbilt 359) has it.
Code: Select all
accessories[]: .ftire
accessories[]: .fdisc
accessories[]: .fhub
accessories[]: .fnuts
accessories[]: .rtire1
accessories[]: .rdisc1
accessories[]: .rhub1
accessories[]: .rnuts1
accessories[]: .rtire2
accessories[]: .disc2
accessories[]: .rhub2
accessories[]: .rnuts2
If you would like to look over my .def files to see if I'm overlooking something, here you go: https://easyupload.io/6aysdl
Also, the vanilla truck uses the same .pmd file for all its chassis def files and has variants to allow different axle setups. The same goes for mine. The only thing that I've noticed in the vanilla truck's .pmd is how it does its wheel_r locator names as compared to mine.
First, here is my wheel_r setup:
[ external image ]
And, here is the vanilla truck's:
[ external image ]
This is where I want to understand how it should be set up. I've seen other multi-axle truck mods work without a problem but, again, their wheel_r locators work but when I try to even replicate that, I would still get the errors. Is there a limit to how many wheel_r locator names there should be (i.e., go no higher than r_wheel_3) ? Is there a particular naming convention (i.e., r_wheel_0_0, r_wheel_0, r_wheel_0.001, etc) to follow?
So, this is where I genuinely want to know HOW the r-wheel definitions are supposed to work and for what reason. I haven't found an actual document or anything that says something along the lines of, "The wheel definitions needs to be set as this for the front axles and the rear axles. This is why it needs to be done this way. Here is an example to show correct and incorrect way." The Wiki documentation is severely lacking on this, also.
If someone who is very knowledgeable on this would explain it to me, I would greatly appreciate it. For me, when something doesn't work I want to know the "Why?" behind it so that I can get a better understanding of how it all works which helps me be able to fix it.