When i place a modded cargo_wagon with a joint_distance > ~9.5 on a diagonal track the game crashes with the error "85.483 Error RollingStock.cpp:974: Couldn't find the back joint rail".
This does not happen when placing the same wagon on straight (south-north, west-east) tracks.
I'm using a Linux the system and the modded cargo_wagon corresponds to the "cargo_ship" of the Cargo Ships mods (https://mods.factorio.com/mod/cargo-ships)
[Rseding91] [0.16.39] Crash on placing rolling_stock w. large joint_dist
-
- Inserter
- Posts: 20
- Joined: Tue May 01, 2018 3:29 pm
- Contact:
[Rseding91] [0.16.39] Crash on placing rolling_stock w. large joint_dist
- Attachments
-
- factorio-current.log
- (8.29 KiB) Downloaded 129 times
Re: [16.39] Crash on placing rolling_stock w. large joint_dist
I checked the code, and yes, the limit for the search is 5 rails, if it isn't found in 5 rails radius, it is expected to be an internal bug. We kind of didn't expect this kind of setup.
The question is, what to do with that?
We might just increase the radius a bit, which would help in this case, but it would be just a matter of time until someone made it even larger.
I would say that we could increase the radius and also limit the joint distance to prevent crashes with too crazy values.
The question is, what to do with that?
We might just increase the radius a bit, which would help in this case, but it would be just a matter of time until someone made it even larger.
I would say that we could increase the radius and also limit the joint distance to prevent crashes with too crazy values.
-
- Inserter
- Posts: 20
- Joined: Tue May 01, 2018 3:29 pm
- Contact:
Re: [0.16.39] Crash on placing rolling_stock w. large joint_dist
Thanks so much for taking the time to solve unexpected mod related issues like this one!
Re: [16.39] Crash on placing rolling_stock w. large joint_dist
I agree. We can limit it to some upper value then make the search dynamic based off the largest joint distance defined in a rolling stock prototype.kovarex wrote:I would say that we could increase the radius and also limit the joint distance to prevent crashes with too crazy values.
If you want to get ahold of me I'm almost always on Discord.