RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
990 stars 175 forks source link

Some cars can't start race #3121

Closed cryham closed 3 months ago

cryham commented 4 months ago

Recent build: 2024.01-dev. On: Debian 12, OpenGL, amdgpu. So I've experienced this on many tracks: Arizona, Auriga, Lone Peak, Outback, f1_testtrack etc.

I can start a race with e.g. any Gavril, Audi_a4, bmw E39, Daf Semi, Box5 Deuce, dodge magnum, Box5 Gravedigger (all), Rip Saw.. But can't start a race with e.g. UnlimitedTrophyTruckV2, any from MeanMachine-v1_2, class1buggy10, Box5 W900, Hoodrat..

Any idea what's wrong? IMO isn't a matter of any sizes or track. Is anything missing in truck files?

CuriousMike56 commented 4 months ago

Already reported: https://github.com/RigsOfRods/rigs-of-rods/issues/3097

cryham commented 4 months ago

Wow that was fast. Ok so no solution is known yet

cryham commented 4 months ago

Okay so I found that just by adding a cab section (I copied it even from other .truck) at end, to a .track file that didn't have it yet (and couldn't race), did indeed let me race now:

submesh
cab
286,287,283, u
283,287,284, u
287,288,284, u
288,285,284, u
283,284,280, u
284,281,280, u

But, this isn't really a solution, as this would require editing many .track files. So perhaps in code there should be a check for that aabb to not be infinte or empty IDK. Or simply if there aren't any cab nodes, picking a few just to have some for aabb.

Strangely I found an old WIP .truck (SDSArgo.zip) with cab section that still didn't start race. SDSargo multilift+.txt SDSargo sideloader-.txt So SDSargo.sideloader-.truck can't race, while SDSargo multilift+.truck can. Maybe some distance issue, or not important at all.

ohlidalp commented 4 months ago

Solution is known - I need to revert my bad decision of limiting eventbox collisions to cabs only: https://github.com/RigsOfRods/rigs-of-rods/commit/d4ec0a0a1db975574938b176d0f16b9b067ce4d7