The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Rollmaterial on November 13, 2015, 02:59:34 PM

Title: Signal boxes have negative "jobs available" values
Post by: Rollmaterial on November 13, 2015, 02:59:34 PM
Is this supposed to be possible?
Title: Re: Signal boxes have negative "jobs available" values
Post by: jamespetts on November 14, 2015, 12:38:34 PM
Yes, all buildings can have a negative "jobs available" figure: passengers are generated in packets of several passengers at a time, and all of them will go to a destination if there are jobs available there if their trip is a commuting trip. The number of available jobs will be diminished by the number of passengers arriving. Because of the time between passengers departing and arriving and the fact that multiple passengers can be treated as the same packet, more passengers may arrive than there are jobs available, which will send the number negative. Because the number may go negative, however, more passengers arriving than the building has jobs does not affect the balance, as the counter will take longer to get to a number greater than zero at which point further passengers can again start their journeys.

I had planned to change the UI so that it shows 0 when the number is negative before I produce a release version, but showing the negative numbers is useful for testing the passenger generation system.
Title: Re: Signal boxes have negative "jobs available" values
Post by: Rollmaterial on November 14, 2015, 12:41:42 PM
Ok, thanks!