[Patch] Supply and demand display on station building v0.02a

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

[Patch] Supply and demand display on station building v0.02a

Post by handrake » 27 Mar 2012 18:09

It shows the volume of supply and demand of passengers and mails when building stations, (railroad, road, doesn't matter) so you don't have to look into each house in the catchment area for demand forecasting.

I hope someone finds this useful.

-handrake

Changelog
  • Version 0.02a released
    • Fixed an error in expected value calculation.
  • Version 0.02 released
    • Added a setting under Interface/Display Options
  • Version 0.01 released
Known bugs
  • Currently, it shows just a number of houses for supplies and not the actual production rate. Fixed
Technical Details
Because houses do not save a number of passengers they produce each month and the number is determined by an equation with a random factor in it, I use expected value to predict passenger/mail production.

Download link for diff and binary files.

Image
Last edited by handrake on 07 Apr 2012 09:50, edited 10 times in total.

ZxBiohazardZx
Tycoon
Tycoon
Posts: 1534
Joined: 14 Mar 2006 12:46
Location: Netherlands
Contact:

Re: Patch : Supply and demand display when building stations

Post by ZxBiohazardZx » 27 Mar 2012 20:17

simple yet amazing feature
:D

handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: Patch : Supply and demand display on building stations v

Post by handrake » 07 Apr 2012 05:42

Updated to r24093. See the first post.

Patagonicus
Engineer
Engineer
Posts: 25
Joined: 24 Oct 2011 20:42

Re: [Patch] Supply and demand display on station building v0

Post by Patagonicus » 08 Apr 2015 20:46

Updated to r27221, setting is now found under interface -> construction (this an okay place for it?)
Attachments
forecast_display-r27221.diff
(10.5 KiB) Downloaded 53 times

User avatar
JacobD88
Chief Executive
Chief Executive
Posts: 675
Joined: 16 Aug 2008 17:51
Location: Long Eaton, Nottinghamshire. UK
Contact:

Re: [Patch] Supply and demand display on station building v0

Post by JacobD88 » 13 Apr 2015 10:31

Thank-you for the update to the patch, it is greatly appreciated; I'll get testing.
Interface -> Construction appears to be a reasonable place for the setting

Kind Regards
JCB

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests