Vacuum-Tube / OSM-TPF2-Importer

This is a tool for the simulation game Transport Fever 2 for the automated reconstruction of real world places using OpenStreetMap data.
GNU General Public License v3.0
26 stars 0 forks source link

SCript freeze #5

Open aksgrs01 opened 3 months ago

aksgrs01 commented 3 months ago

Hey congrats for your great work. I just want to inform you that I succesfuly making the osmdata.lua and, I also succeed on step 1 and 2 of osm_importer. But in step 3 in 2% the game freezes. In stdout.txt there is this: urban_games/train_fever/src/Lib/Geometry/Streets/track/Crossing.cpp:235: __cdecl StreetGeometry::track::Crossing::Crossing(const struct StreetGeometry::TransitionContext &,class std::vector<struct StreetGeometry::ConnectorContext,class std::allocator >): Assertion `Angle(m_ctxs[0].curve[2], m_ctxs[1].curve[2]) >= ANGLE_MIN' failed. Any solutions for that?

Vacuum-Tube commented 3 months ago

I think I saw that error sometimes, but the script could continue. The error handling from the game might be not so reliable. So it could be that you are lucky if you just try again.

If it always crashes at the same edge, you can send me the osmdata.lua

aksgrs01 commented 3 months ago

Thanks for your answer/ yeah it crashes all times. Now I just edit the osmdata.lua "tram = true" to skip this, because I don't remember if the other crashes was at the same edge. My proble is that I work in megalomaniac map and takes some hours to go at that point

Vacuum-Tube commented 3 months ago

You should identify the problematic edge in the stdout and then find out the location by entering https://www.openstreetmap.org/node/NODEID Then you can export a small area covering this edge. This makes debugging easier.

aksgrs01 commented 3 months ago

Thank you very much ffor your reply, keep up the good work