Suggestion: Disable closure and opening of Industries

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

What do you think about my suggestion?

Good idea, i'd love to see it in trunk!
48
71%
Good idea, but a NewGRF would be enough for me.
11
16%
I don't need an option like this, but I wouldn't mind if it would exist.
5
7%
I don't need this option and I am against it being included to trunk.
3
4%
None of the above (maybe leave a comment?).
1
1%
 
Total votes: 68

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Suggestion: Disable closure and opening of Industries

Post by planetmaker »

fafler wrote:Sorry for digging up such a old thread, but why did this patch not make it into the sources?
The reason is simple: it's possible. Just use a NewGRF which supports that. So no need to implement the same thing twice.
User avatar
JacobD88
Chief Executive
Chief Executive
Posts: 708
Joined: 16 Aug 2008 17:51
Location: Long Eaton, Nottinghamshire. UK
Contact:

Re: Suggestion: Disable closure and opening of Industries

Post by JacobD88 »

planetmaker wrote:...it's possible. Just use a NewGRF which supports that. So no need to implement the same thing twice.
Sorry, planetmaker, on this i must disagree, whilst i respect that the Devs have other priorities, the fact that this remains NewGRF dependant and not added as a standard functionality to trunk leaves all the power and responsibility with GRF makers.

Now for the most part, i recognise this is not a problem, as many NewGRF creators out there have either already begun to introduce the appropriate actions into their GRFs, or allow their GRFs to be altered by an individual so this control over closure and opening of industries can be added. But this means that the minority of GRF authors who disallow modifying their work, or those people who are not GRF savvy (which will increase in numbers as OTTD continues to get more attention from new gamers) means that there will always be issues with people not being able to turn off industry closure, and more thread creation and/or digging in the forums regarding this issue...

In short, requests will never cease whilst there is some need for the function, as a standard, in OTTD... Simply leaving it to NewGRF authors, or people with enough knowledge (and permission) to modify existing GRFs is not enough to stop the requests, giving players the option from the outset will allow for any issues with closure/opening behaviour to be stamped out and fits more in with the great thing about TTO/TTD(P)/OTTD which is that players are given CHOICE everywhere to tailor the game to run in a manner that pleases them industries are a major part of the game, so players would ideally be given choice over their creation and closure without the need to add, write or modify NewGRFs. We already can control their production with a cheat after-all :wink:

Now as Lord Arro pointed out, with regards to this specific patch, it's by no means clean enough (irrespective of Devs liking it) to make it as a trunk candidate, but i cannot see someone taking the time to make a clean patch without some form of reassurance from the Devs that they would consider the option if appropriately presented, and therein i believe lies the problem with noone seriously looking at this issue and simple referring back to the "NewGRF's can do it" stance

+ends ramblings+ :D
Last edited by JacobD88 on 30 Sep 2010 18:44, edited 1 time in total.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Suggestion: Disable closure and opening of Industries

Post by Yexo »

The best reason not to consider such a patch is that it can't be failsafe: The patch could disable the closing of the industry, but that doesn't help if it stops producing anything at all because the newgrf says it should close. You can't fix that problem without taking over the "how much is produced" code from the newgrf in openttd and that means that you disable a large part of the industry newgrf spec.
User avatar
JacobD88
Chief Executive
Chief Executive
Posts: 708
Joined: 16 Aug 2008 17:51
Location: Long Eaton, Nottinghamshire. UK
Contact:

Re: Suggestion: Disable closure and opening of Industries

Post by JacobD88 »

Thanks for the prompt reply :)

Surely that could be worked around by a further option, ideally added by the same patch, to allow the user to select NewGRF spec behaviour as priority over OTTD behaviour or vice-versa?

As mentioned in my post, NewGRF authors tend to give you the option of controlling industries in their work anyway. But, particularly with default industries, where that control is lacking without GRF mods, and where default industries are present, the functionalities of additional GRF industries would (i imagine) be secondary anyway due to most industry sets being blanket replacements rather than additions to a default industry game.

The priority workaround would cater for the player to have control over any instances where both are present as to how their game ran (and as a by-product, where they would have to "cheat" to demolish 0 production industries, otherwise leaving them on the map as abandoned or derelict)... Another alternative would be to make OTTD recognise when the 0 production situation may occur due to conflict and give an xx% chance of boosting (or reopening) that industries production to compensate, or forcibly removing the industry as would be expected, and as an exception to the "no closure" option, if the NewGRF would allow that normally

Either-way this i recognise this is all a lot of work, I'm just trying to get a feel of what a blanket function to control industry behaviour would bring to OTTD and in what form implementation would have to take
fafler
Engineer
Engineer
Posts: 5
Joined: 10 Feb 2007 14:39

Re: Suggestion: Disable closure and opening of Industries

Post by fafler »

So, here's a store about a boy who liked to play with trains.

I have played with model trains as long as i can remember. Got my first H0 scale trainset when i was 3 or 4 and way to young to appreciate it. My dad had a thing for N scale German steam engines, and at age ten, I got all his tracks because he wanted to use tracks with real gravel instead of plastic. We even went on a trip, to collect samples of German railroad gravel and compare colors. Anyway, the main problem with "real" model trains is that their world isn't very living and I was kinda losing interest when i found Railroad Tycoon. It was great! The game world evolved around me. And the size of my railroad empire wasn't limited by my allowance. Transport Tycoon came and offered a much better gaming experience, but was still somewhat limited. The deluxe edition was a big step in the right direction and I made great transport empires, constantly challenging myself to make a better layout.

Now time went on and for a couple of years i actually forgot my passion. Until one day, i was browsing the debian repositories looking for a better civilization clone and i found OpenTTD. Man, you could build anything in that game! Proper signal behaviour and what seemed like and unlimited amount of trains. Wast amounts of space to build on. I keep my laptop with me for school and a game of OpenTTD is often paused on it. Waited to be resumed whenever I have some time to kill. Always improving, finding ways to avoid congestion, building bigger and bigger.

The latest craze is heightmaps. It's a much better experience than the autogenerated maps. And again i spend hour after hour building railroads. Recently i found a heightmap of my homeland, Denmark, and I've been making a scenario with it, with the larger town represented etc. and i want the industry to fit in as well. Which leads me to my conclusion:

Who will help the little boy inside this grown man, who really like to play with trains? Pleease write a patch :wink:

Also, I'm looking for a NewGRF set with European trains and industries that make more realistic impression. Any recommendations?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Suggestion: Disable closure and opening of Industries

Post by planetmaker »

JacobD88 wrote:
planetmaker wrote:...it's possible. Just use a NewGRF which supports that. So no need to implement the same thing twice.
Sorry, planetmaker, on this i must disagree, whilst i respect that the Devs have other priorities, the fact that this remains NewGRF dependant and not added as a standard functionality to trunk leaves all the power and responsibility with GRF makers.

Now for the most part, i recognise this is not a problem, as many NewGRF creators out there have either already begun to introduce the appropriate actions into their GRFs, or allow their GRFs to be altered by an individual so this control over closure and opening of industries can be added. But this means that the minority of GRF authors who disallow modifying their work, or those people who are not GRF savvy (which will increase in numbers as OTTD continues to get more attention from new gamers) means that there will always be issues with people not being able to turn off industry closure, and more thread creation and/or digging in the forums regarding this issue...
Besides the technical aspect which cannot be explained better than Yexo didl, to my knowledge the possibility to control industry behaviour exists for all industries sets (including default ones, search for "manual industries" - not sure whether frosch uploaded it to bananas). The only problem I really see is that for default industries this is not obvious as you'll have to add an _additional_ newgrf; it's no problem IMHO, if you use an industry newgrf anyway - there at least in the upcoming stable version next year the possibility to present parameters in a human-friendly way will expose the parameter options much more prominently w/o the need to refer users to manuals which are not read anyway.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Suggestion: Disable closure and opening of Industries

Post by Lord Aro »

How about we have something like the newgrf included in OTTD, just that it is only activated when only the default industries are active?
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Suggestion: Disable closure and opening of Industries

Post by Rubidium »

Lord Aro wrote:How about we have something like the newgrf included in OTTD, just that it is only activated when only the default industries are active?
Then I consider the NewGRF that does that and is on Bananas as being included (by proxy). As it's a "setting" it should therefor be enabled only when the user wants it, otherwise you'd for example never get oil rigs if you start too early. As it's a NewGRF it would therefor need to be enabled via the NewGRF settings window. So... in my opinion it's already included for a quite long time now.
chirag
Engineer
Engineer
Posts: 2
Joined: 26 Dec 2010 06:25

Re: Suggestion: Disable closure and opening of Industries

Post by chirag »

Hi All,

really new to OpenTTD (less than a week infact). I have played something similar with railroad tycoon. Closure of industries was something rather irksome. In some cases by the time I got my line working. the industry was closed. in another case. the industry was being serviced, yet it closed down. Is there a final word on this feature being adopted?

I understand that grf's are modifers. Is there a grf that stops closure of industries? How does one install a grf (I use both the Linux and windows versions on the same machine). Linux does not allow me to copy the grf into the data folder.

Any help is appreciated.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Suggestion: Disable closure and opening of Industries

Post by planetmaker »

Search for "manual industries" in the online content. Works from ingame, quite the same, independent of OS.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: Suggestion: Disable closure and opening of Industries

Post by Alberth »

chirag wrote:How does one install a grf (I use both the Linux and windows versions on the same machine). Linux does not allow me to copy the grf into the data folder.
Actually, it does, you just have to get higher powers :p

A better solution however is to create a openttd corner in your home directory where you a) can read & write files, and b) share the data between several openttds.
Please consult the readme file that comes with the program for details on where, how, and what.
chirag
Engineer
Engineer
Posts: 2
Joined: 26 Dec 2010 06:25

Re: Suggestion: Disable closure and opening of Industries

Post by chirag »

planetmaker wrote:Search for "manual industries" in the online content. Works from ingame, quite the same, independent of OS.
tried this. No search results. I can see base graphics. tons of grf's and heighmaps.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: Suggestion: Disable closure and opening of Industries

Post by Alberth »

The online content version needs a 1.1.x openttd version or a nightly, do you have that?
In the gameplay FAQ at the wiki is a link to the previous version that also works with older openttds.
Krizalys
Engineer
Engineer
Posts: 2
Joined: 11 Feb 2013 04:09
Location: France
Contact:

Re: Suggestion: Disable closure and opening of Industries

Post by Krizalys »

I'm bumping this thread for those of you who are still interested in a way to disable opening and closure of industries in the game core. This can be achieved applying a patch on the official source code package and recompiling the game. While the patch does not yet offer configuration from the user interface, one might still alter the file src/industrytype.h to decide which industry type can open or close at random. The patch is released under the GPLv3 and is known to work for OpenTTD version 1.2.3. Enjoy.
Krizalys, professional expertise at your service
This is me | Krizalys
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Re: Suggestion: Disable closure and opening of Industries

Post by SirkoZ »

I checked out your patch and to me it looks very elegantly done - through industry behaviour routine - nice and simple.
This should be elegant enough for trunk inclusion - I hope the developers see it worthy... :]
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Suggestion: Disable closure and opening of Industries

Post by PikkaBird »

SirkoZ wrote:This should be elegant enough for trunk inclusion - I hope the developers see it worthy... :]
It won't be, for the reasons explained above - it conflicts with the newgrf spec.
Krizalys
Engineer
Engineer
Posts: 2
Joined: 11 Feb 2013 04:09
Location: France
Contact:

Re: Suggestion: Disable closure and opening of Industries

Post by Krizalys »

SirkoZ wrote:This should be elegant enough for trunk inclusion - I hope the developers see it worthy... :]
Thank you SirkoZ. Although I would also love to see such a feature included in the trunk one day, for now I have to agree with PikkaBird that the patch is not ready to be merged, mainly because of its current limitations. However, it might be improved from time to time and maybe its inclusion in the trunk could be reconsidered by then.
Krizalys, professional expertise at your service
This is me | Krizalys
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Re: Suggestion: Disable closure and opening of Industries

Post by SirkoZ »

Well it's either patch or newGRF system limitations. It can't be only one-way.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 4 guests