The International Simutrans Forum

 

Author Topic: Tunnel SEGV  (Read 555 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam jp

  • *
  • Posts: 248
  • Pak256.Ex developer
  • Languages: JP, EN, EO
Tunnel SEGV
« on: March 23, 2019, 06:20:08 PM »
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:
Code: [Select]
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

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Tunnel SEGV
« Reply #1 on: March 25, 2019, 09:48:22 PM »
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.

Offline Phystam jp

  • *
  • Posts: 248
  • Pak256.Ex developer
  • Languages: JP, EN, EO
Re: Tunnel SEGV
« Reply #2 on: March 26, 2019, 12:04:57 PM »
Thank you so much, I confirmed that the problem is now fixed.