The International Simutrans Forum

Development => Extension Requests => Topic started by: wlindley on August 19, 2013, 12:55:49 PM

Title: Improving the building and factory creation tool
Post by: wlindley on August 19, 2013, 12:55:49 PM
Is it true that these should require no new "core" algorithms, just some new UI bits?
Title: Re: Improving the building and factory creation tool
Post by: Ters on August 19, 2013, 02:28:56 PM
What if there are streets on many sides? What if many of the factory's sides should face a street?
Title: Re: Improving the building and factory creation tool
Post by: wlindley on August 19, 2013, 03:04:26 PM
The same thing would happen, as already does with the existing algorithm.  The "auto" button would be wonderful when building several shops and especially useful when testing pakset modifications to be sure everything works as you intend.  It merely exposes what the game already does when building things automatically. Yes?
Title: Re: Improving the building and factory creation tool
Post by: Ters on August 19, 2013, 03:52:23 PM
I apparently read your post too fast and didn't notice that you mentioned that the algorithm already exists. I assume for auto-spawned factories?
Title: Re: Improving the building and factory creation tool
Post by: kierongreen on August 19, 2013, 05:39:09 PM
Auto direction sounds reasonable will probably add that later. Creating an industry chain for a particular factory sounds interesting. Having check boxes for producers and consumers, well the principle sounds alright but think we need to look at the GUI for this, don't want windows turning into masses of boxes and options really.
Title: Re: Improving the building and factory creation tool
Post by: kierongreen on August 21, 2013, 07:36:46 AM
Just a quick update on this, attached patch allows for city buildings to have auto rotation when placing. Not tried for other buildings yet. I'm not committing this to trunk yet as the code for auto rotation code is duplicated several times already so I'm thinking how to best tidy this code together to avoid adding more duplication.
Title: Re: Improving the building and factory creation tool
Post by: prissi on August 28, 2013, 07:48:35 PM
About building factory chains: That is possible using the existing dialoge. If you place and end consumer, and select the chain option, then a chain is built with all intermediate factories. However, obviously without control on their placement but the end consumer. So how would first building the end consumer and then the chain be any different?
Title: Re: Improving the building and factory creation tool
Post by: wlindley on August 29, 2013, 09:12:23 AM
Quote from: prissi on August 28, 2013, 07:48:35 PM
If you place and end consumer, and select the chain option...

Chain option? Ohhhh... at least on Experimental that has been labeled "Only city chains" which is pretty meaningless. I never thought it would mean "Build a city chain" -- although I see now on the latest Standard that's what the label reads. 

Having tried it, the "chain" check-box on one hand builds several industries automatically, but my unfulfilled expectation is that the consumer industry would be placed where I click -- it isn't; although it seems often nearby... a bit confusing how that actually works?

Thanks prissi for enlightening us on that function!
Title: Re: Improving the building and factory creation tool
Post by: prissi on August 29, 2013, 09:49:30 PM
It searched the next suitable place close to your click; it may be as well the next city.
Title: Re: Improving the building and factory creation tool
Post by: kierongreen on October 25, 2013, 10:51:49 PM
Couldn't think of a reasonable tidier way of rotations so have just committed auto rotations for city building tool as above.