News:

SimuTranslator
Make Simutrans speak your language.

Bug - Diagonal tracks disappearing

Started by jimw546, September 23, 2012, 02:15:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jimw546

I'm playing on the latest stable release (111.0 and pak 0.8.3), just set up a new game and started placing railways, but when winter rolls in all diagonal tracks above the snowline disappear.  They are still there as trains still use the routes, but they stay invisible even when the season changes to spring.
Edit: Wrong board, sorry.

jamespetts

Hmm - you refer to a Standard main release but an Experimental pakset release, which are mutually incompatible. Is it Standard or Experimental that you are using?

(Welcome to the forums, incidentally!)
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.

jimw546

Definitely Experimental.  Downloaded the "Simutrans Experimental Complete" pack again a couple of days ago.

jamespetts

Thank you for letting me know. This was a bug inherited from Standard, so merging with a more recent Standard version ought to fix it. The next version may well have the fix incorporated, but I must confess I do not recall immediately whether this is so. Thank you for the report, however!
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.

Lefthand

Hello,

I have this bug too. My diagonal railway pieces keep disappearing. Seemingly only where snowy ground appear at winter (above snow limit, I think).
EDIT: I can rebuild the railway for 0 cost, but at season change(?) they are disappear again.

I'm playing with 10.15 & Pak128.Britain-Ex 0.8.3.

By the way,
GREAT GAME, thank you :).

Lh.

jamespetts

Firstly, this is a graphical bug only - the tracks do not actually disappear. Secondly, can you reproduce the problem in the Release Candidate?
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.

Lefthand

#6
I tried it with RC tonight, with pakset 0.8.3 & 0.8.4.

The diagonal tracks keeps "Disappearing" (ok, just invisible :)). All type of railway, maglev and narrow gauge affected. Roads are not...
I see this happening when a snowy tile goes to green, or a green tile goes to snowy.

EDIT: With Simutrans normal & pak128 this bug is not reproducible.

Lh.

jamespetts

Hmm, this is extremely odd, as Experimental has not changed any of the way drawing parts of the code from Standard, and this is a bug that was fixed in Standard some time ago (which fix ought to be incorporated in the Release Candidate at the very least).

Might any of the Standard developers have a clue what might be happening here, I wonder...?
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.

Lefthand

Hello again,

I tested this bug with pak64ex and can not reproduce.

After it I made a little debugging, and found this:
in weg.cc (when changing seasons)
at function void weg_t::set_images
in this part:
case image_diagonal:
         set_bild( besch->get_diagonal_bild_nr(ribi, snow) );

The besch->get_diagonal_bild_nr returns with 65535 like it can not find the image.
(But the besch->get_bild_nr (not diagonal) returns with 19753.)

I think the problem is lying somewhere here.

Sincerely:
Lh.

Lefthand

#9
I think i found a possible fix for this:

In weg.cc the besch->has_diagonal_bild returns false in case of railway pieces.

I modified the 460th line in  weg.cc  weg_t::check_season to this:
if(  is_diagonal()  && besch->has_diagonal_bild()  ) {

Now the railway pieces are not disappearing when season changes.

James Petts, please try this and do some test, if this is working. (I tried with one save file, and with a test scenario, but surely not covered all the possible cases.)

Sincerely:
Lh.

Excuse me for my english...

jamespetts

That seems to work - that's very helpful! Thank you very much.
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.

jamespetts

This issue has now been fixed in the latest release (10.18) of Simutrans-Experimental.
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.