Skip to main content
Topic: [Bug] Excess space between city cars (R3302) (Read 2336 times) previous topic - next topic

[Bug] Excess space between city cars (R3302)

See the attached screenshot: city cars treat themselves as being far longer than they really are: this makes it difficult to manage congestion effectively. This does not apply to players' vehicles.

Tested with Standard R 3302 in Windows, 32-bit.

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.

Re: [Bug] Excess space between city cars (R3302)

Reply #1
Cars take at least one tile, iirc. This should happen with different player convois too. Afaik,  nothing has changed with the citycar code.
Parsley, sage, rosemary, and maggikraut.

Re: [Bug] Excess space between city cars (R3302)

Reply #2
Dwachs,

the player vehicles get much closer to each other than the cars do; and cars didn't used to stay this far apart.
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.


Re: [Bug] Excess space between city cars (R3302)

Reply #4
With player vehicles, the space that they leave is dependant on their actual length: with city cars, they all leave a very large amount of space whether they need to do so or not.
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.

Re: [Bug] Excess space between city cars (R3302)

Reply #5
James - you mean, as if the cars had all length of 16?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: [Bug] Excess space between city cars (R3302)

Reply #6
@James: your claim is not true. Just test it with the short road vehicles in pak128.Britain.

I would consider this as intended (or at least as implemented) behavior. This thread is then an extension request rather than a bug report ;)
Parsley, sage, rosemary, and maggikraut.

 

Re: [Bug] Excess space between city cars (R3302)

Reply #7
James, since you have the sourcecode your should at least look at the relevant part before posting. The routine in question are called ist_weg_frei() and will block further driving, if on the next tile is any vehicle regardless of its length. (Actually, since the check is somewhat expensive, it is only done when entering a new tiel, thus it is simply not possible at the moment to stop in the middle of a tile). This is true for both, citycars and convoys.