Skip to main content
Topic: Can't upgrade tram track (Read 7807 times) previous topic - next topic

Can't upgrade tram track

I can't upgrade the 50 km/h tram tracks to the 80 km/h ones by building over the old ones. This is very annoying since to upgrade I have to destroy all tram tracks including stations and electrification, then build the new track and rebuild all stations and electrification.

However I noticed it is possible to upgrade the 65 km/h rail track to 80 km/h tram track by building over it.

Philipp

Re: Can't upgrade tram track

Reply #1
Still present with ST r1953 (can't test a newer revision).

The tram tracks cannot be upgraded if they are placed on a road. Both tracks can be built on a road. (This doesn't show up with Pak64, because it has only one type of tram track.)

I think this is rather a bug in ST (=> moved to bug reports), and it was reported much earlier in the previous forum, but thanks for the reminder.
Attached: the .dat file for Pak128 tram tracks.

Re: Can't upgrade tram track

Reply #2
@PkK:

Generally a bug report should contain information about the version of Simutrans (and the pak, in some cases also operating system) in which the bug appears. Please try to remember that. Thank you.
  
***** PAK128 Dev Team - semi-retired*****

 

Re: Can't upgrade tram track

Reply #3
I just wanted to remind that this bug is still existent. (Linux binary, 102 Nightly Mar 2 2009, PAK128 1.4.5)



Re: Can't upgrade tram track

Reply #6
yes, now i tested with roads, and everything works fine even with public owned road ???
Parsley, sage, rosemary, and maggikraut.

Re: Can't upgrade tram track

Reply #7
Strange enough. Why it doesn't work for me.

Re: Can't upgrade tram track

Reply #8
it happens only if there is a road and a tram track

here is a patch:
Code: [Select]
Index: wegbauer.cc
===================================================================
--- wegbauer.cc (revision 2466)
+++ wegbauer.cc (working copy)
@@ -1890,7 +1890,7 @@
  weg_t * weg = gr->get_weg((waytype_t)besch->get_wtyp());
 
  // keep faster ways or if it is the same way ... (@author prissi)
- if(weg->get_besch()==besch  ||  (weg->get_besch()->get_styp()==7  &&  gr->get_weg_nr(0)!=weg)  ||  keep_existing_ways  ||  (keep_existing_faster_ways  &&  weg->get_besch()->get_topspeed()>besch->get_topspeed()) || (gr->get_typ()==grund_t::monorailboden && (bautyp&elevated_flag)==0) ) {
+ if(weg->get_besch()==besch  ||  keep_existing_ways  ||  (keep_existing_faster_ways  &&  weg->get_besch()->get_topspeed()>besch->get_topspeed()) || (gr->get_typ()==grund_t::monorailboden && (bautyp&elevated_flag)==0) ) {
  //nothing to be done
  cost = 0;
  }

As it is implemented this bug must be intended behavior. Maybe prissi can tell more?
Parsley, sage, rosemary, and maggikraut.


Re: Can't upgrade tram track

Reply #10
I think this was needed at some point, because otherwise tramway were built on tracks. But I think this can now savely go.

Re: Can't upgrade tram track

Reply #11
gone in rev 2469 :)

@z9999: thank you for testing and your precise bug reports!
Parsley, sage, rosemary, and maggikraut.