News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

[r9410+] Fatal error when loading old (pre-v110) crossings

Started by ceeac, November 22, 2020, 09:33:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ceeac

To reproduce the error, load any save from version 110.0 or earlier.


#0 __GI_raise() at /build/glibc-ZN95T4/glibc-2.31/sysdeps/unix/sysv/linux/raise.c:50
#1 __GI_abort() at /build/glibc-ZN95T4/glibc-2.31/stdlib/abort.c:79
#2 log_t::fatal() at /media/ceeac/Projects/code/simutrans/utils/log.cc:325
#3 crossing_t::rdwr() at /media/ceeac/Projects/code/simutrans/obj/crossing.cc:157
#4 crossing_t::crossing_t() at /media/ceeac/Projects/code/simutrans/obj/crossing.cc:39
#5 objlist_t::rdwr() at /media/ceeac/Projects/code/simutrans/dataobj/objlist.cc:823
...


Initializing speedlimit0 and speedlimit1 in crossing_t::rdwr to 0 instead of 999 fixes the error, but this means that the slowest available crossing is selected when importing old saves; I do not know if this is a good solution.

prissi

Indeed, aparently the old testgames were without crossing. I veryfied with a 99.07 game that things do work in r9429. Thanks