Open TheUnknownGuyFromRoR opened 9 years ago
It would be great if you gave us a link to the car.
Oops, my bad. Will fix soon.
This car is tricky. It combines buoyancy properties with truck properties, which is a dangerous mixture. I spent quite a while trying to fix it, but it's still not working.
Nonetheless, my debug tools keep improving. Eventually I'll figure this out.
Link for testing: http://www.mediafire.com/file/ka4uruepf2ko4uo/LotusEsprit_JB.zip
This vehicle crashes on Windows due to #1058:
18:28:41: FLEXBODY ERROR on mesh LotusEsprit_rudderL.mesh: VY node not found
It seems to be a parser issue. The new parser handles flexbody forsets differently.
The old code looked like this: https://github.com/only-a-ptr/ror-legacy-svn-trunk/blob/master/source/main/physics/flex/FlexBody.cpp#L52-L76
This affects all trucks which use nodes2
and flexbody forset.
Solution found, see this post: https://forum.rigsofrods.org/thread-1602-post-12866.html#pid12866 I'm going to leave this open though since there might be a way to change how the parser handles this.
still valid
http://www.austingratzer.com/rigs/downloads.php?do=file&id=303
not anymore
But it seems to break a bit and resets itself under water (its supposed to be a submarine also)
@only-a-ptr is there anything that can be done in the new parser to fix this? (it worked in the old one)
it happens because of set_beam_defaults
values, @CuriousMike56 knows more
NOTE: Unfortunately, even though it's supposed to be a submarine, the car becomes very unstable and explodes in deep water. This seems to be a game issue, so there really isn't much I can do about this.
if not just close the issue i guess and someone will be lucky enough to find some better values
Sooner or later I'll fix this car, and until then, this must stay open.
My current approach is to create a 'retro branch' where I port RoR 0.4.0.7 (the last one without my damage) to modern build system and dependencies, and use it as a test reference.
I sucessfully ported RoR 0.4.0.7 to recent OGRE + dependencies: https://github.com/only-a-ptr/rigs-of-rods/tree/retro There's some visual glitches but the N/B spawns fine. With this reference I can analyze the spawn process to the detail and finally make it work in master
Revisiting this car again. I've successfully converted it from nodes2 to regular numbered nodes and created a "street" version without the submarine features, this will be released on the Repository. Edit: https://forum.rigsofrods.org/resources/lotus-esprit-s1.1189/
As for the original submarine version: LotusEsprit_JB.zip
The resetting in water problem is caused by the buoyant submeshes ( b
and D
flags). The other submarines in RoR also face similar issues, will detail in a separate issue.
This is what I saw when spawning Lotus Esprit S1 (car was falling appart and meshes were slowly exploding)