The International Simutrans Forum

 

Author Topic: r5065 Factories demands neither pax nor mail.  (Read 3363 times)

0 Members and 1 Guest are viewing this topic.

Offline Train-catcher

  • *
  • Posts: 39
r5065 Factories demands neither pax nor mail.
« 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.




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?

Offline Václav

  • Devotee
  • *
  • Posts: 3230
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: r5065 Factories demands neither pax nor mail.
« Reply #1 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9460
  • Languages: De,EN,JP
Re: r5065 Factories demands neither pax nor mail.
« Reply #2 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?

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: r5065 Factories demands neither pax nor mail.
« Reply #3 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...

Offline Václav

  • Devotee
  • *
  • Posts: 3230
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: r5065 Factories demands neither pax nor mail.
« Reply #4 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.
« Last Edit: December 31, 2011, 12:36:55 PM by VaclavMacurek »

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1323
Re: r5065 Factories demands neither pax nor mail.
« Reply #5 on: December 31, 2011, 05:44:38 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.

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
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...
« Last Edit: December 31, 2011, 05:54:43 PM by TurfIt »

Offline Train-catcher

  • *
  • Posts: 39
Re: r5065 Factories demands neither pax nor mail.
« Reply #6 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)

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: r5065 Factories demands neither pax nor mail.
« Reply #7 on: January 01, 2012, 04:52:50 PM »
This is my bug, then :)