Re: Increasing maximum rail length
Reply #3 –
I've tried to increase the max. number of wagons per convoy, modifying simudepot.h - line 245 , but seems it does not work. I mean, the game allows you to buy that amount of wagons, let's say 26, but the depot window shows 24 as maximun.
I've changed this (line 245):
unsigned get_max_convoi_length() const { return convoi_t::max_rail_vehicle;]
by this:
unsigned get_max_convoi_length() const { return 26;}
Indeed, when the convoy starts running, it has got not more than 24 wagons (1+23). The strange thing is that If put a lower limit, let's say 10, there's no problem. I can't buy a convoy with more than 10 wagons and when the convoy is out of the depot, it has 10 wagons max. I guess there's some kind of constraint somewhere in the code that do not allow to show such an amount of wagons. Any idea?
P.S: you can read the blog's article about it here