The International Simutrans Forum

PakSets and Customization => Pak128 Bug Reports => Pak128 => Pak128 Solved Bug Reports => Topic started by: Train-catcher on December 30, 2011, 04:54:25 PM

Title: r5065 Factories demands neither pax nor mail.
Post by: Train-catcher on December 30, 2011, 04:54:25 PM
Here there is. Factories stopped demand any pax/mail in either savegames or new maps.
I,ve enabled a "factory_enforce_demand" and set "factory_arrival_periods" to 4 and started a new game. The result of these steps is on the screenshot.

(http://i1187.photobucket.com/albums/z383/ak47_cccp/30-12-201120-39-06.png)


P.S. I usually use a cyrillic charset (cyrillic names) and a Russian translation. And when I've switched a language to English, cyrillic name becomes unreadable (see the screenshot). Is this a bug too?
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: Václav on December 30, 2011, 07:32:23 PM
To no passengers and post demand: it is strange but not bug-like. Mostly if any town is very small, no passengers and post may be needed. But that no one of those three towns give passengers and post is very strange.

So for this case I have to have one minor addictional question: is this similar for all factories you have in that game?

To conflict between English and Russian alphabets: it is right because game does not use UTF-8 fonts - but fonts special for each alphabet - and so font for English language does not know letters of Russian language.
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: prissi on December 30, 2011, 09:16:35 PM
If the factory does not demand workers in the beginning, it might be correct. What pak exactly?
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: VS on December 31, 2011, 07:50:15 AM
Ahhh... looks like the parameters did have different meaning, then. I added the following:

*_demand = 0
*_boost = <number>

So, demand is what causes boost? I thought it was needed for actually producing...
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: Václav on December 31, 2011, 11:51:45 AM
... I have this situation in current game too (and I play with 5052) - with few factories. Some ones (mostly source factories) show zero ?demand - and some show any number. So, I think that it may not be bug - but case of wrong translation or so.

-->
But it is quite strange - because at first one factory showed demand of people and post ... and few whiles ago this demand ended.
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: TurfIt on December 31, 2011, 05:44:38 PM
Quote from: Train-catcher on December 30, 2011, 04:54:25 PM
P.S. I usually use a cyrillic charset (cyrillic names) and a Russian translation. And when I've switched a language to English, cyrillic name becomes unreadable (see the screenshot). Is this a bug too?
Some strings are only passed through the translator upon opening of the dialog. Changing the language with dialog open results in what you got. Close/Reopen the dialog should fix it.
Edit: didn't read close enough. names.. First reply is correct, english (latin) font can't display those characters.

Quote from: VS on December 31, 2011, 07:50:15 AM
Ahhh... looks like the parameters did have different meaning, then. I added the following:

*_demand = 0
*_boost = <number>

So, demand is what causes boost? I thought it was needed for actually producing...
Current pak128 svn source does indeed have all *_demand=0. Which does exactly as stated, 0 demand.
See Topic: Relation of factories and passengers/mail reworked (http://forum.simutrans.com/index.php?topic=7132.0)
The _demand settings replace the pax_level setting for proportioning the distribution of the generated passengers. i.e. Leave out the _demand settings (or set = 65535) and it falls back to the old pax_level routine for compatability with old paks. If _demand is specified, then pax_level is ignored in the new algorithm.

Value is the total number of passengers per 18bit month that will be sent to the factory from all attached cities. (Not strictly true as there is some oversupply, but a good enough explanation for pak creation purposes...). Delivering enough passengers to meet the demand is what causes full boost. If a player only delivers 1/2 the demand, then only 1/2 the boost is in effect. Even with 0 passenger supply, the factory will still produce at its base production rate. Boost is always an increase to that.

---
This is more a pak issue than code... although the code could check for 0 demands and not display the linked cities. But that would probably spawn even more bug reports...
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: Train-catcher on January 01, 2012, 12:36:32 PM
Ok, thanks for all explanations!
Now, we are waiting for pak developers adding new modifiers to industries)
Happy new year all)
Title: Re: r5065 Factories demands neither pax nor mail.
Post by: VS on January 01, 2012, 04:52:50 PM
This is my bug, then :)