News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Tunnel SEGV

Started by Phystam, March 23, 2019, 06:20:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Phystam

Hello,

When using tunnel slope tool, immediately simutrans crashes. This error seems to be caused when calling calc_image().

back trace:

The dat file is as follows:

obj=tunnel
name=tunnel_track_concrete
waytype=track
copyright=Gobanboshi
intro_year=1945
intro_month=1
cost=28070200
maintenance=7020
topspeed=100
max_weight=14
icon=> ../images/track-concrete-tunnel.0.0
cursor=../images/track-concrete-tunnel.0.1
backimage[N]=../images/track-concrete-tunnel.1.0
backimage[S]=../images/track-concrete-tunnel.1.2
backimage[E]=../images/track-concrete-tunnel.1.3
backimage[W]=../images/track-concrete-tunnel.1.1
frontimage[N]=../images/track-concrete-tunnel.2.0
frontimage[S]=../images/track-concrete-tunnel.2.2
frontimage[E]=../images/track-concrete-tunnel.2.3
frontimage[W]=../images/track-concrete-tunnel.2.1

jamespetts

Thank you for the report. The problem was that no slope graphics were defined. However, the game should not crash in this instance: I have fixed the tendency to crash (now, no tunnel specific image will be shown when there is no slope graphic), but I suggest that you might want to add slope graphics.

Incidentally, these tunnel images are intended to be used for tunnel interiors, not track: the track image is the normal track image.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Phystam

Thank you so much, I confirmed that the problem is now fixed.