News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

incomplete industry chains

Started by Fabio, September 17, 2009, 10:35:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fabio

Quote from: whoami on September 16, 2009, 07:12:49 PM
The factory builder [...] has problems finding proper locations for all the factories in a chain, leading to incomplete (and therefore dysfunctional) chains, a problem still waiting for a solution.

For this problem I see two alternative solutions:

1) OPEN ECONOMY (already proposed here)
we could import goods when no suitable place for a producer is found

2) IMPORT/EXPORT COMPANY
when no producer is built, this kind of factory could be built: there could be one for every good type or one which changes its output according to the needed goods. They only need to be resudual: built only when the "normal" producers cannot be built.

Spike

I think the factory builder should ignore all constraints in a final pass, and place the missing factories anywhere - there ought to be space for them somewhere on the map.

If there is no space for a factory, very likely an import/export shop has no space, too. We'd need to feed the factories directly with imported goods.

wlindley

Under what conditions does the factory builder fail?  I am trying to make sense of the half-German/half-English factory builder code in conjunction with the Ports and Rivers suggestion; this would be easier if I knew what I was looking for.

Spike

A known reason is no suitable place in the climate required for the factory. In this case I'd advice to lift the climate constraint and build the factory even in a wrong climate to complete the chain.

Other constraints are distances between the factories, but those look lenient enough to allow building in almost all cases. But if they would cause a failure in building location lookup, I'd suggest to drop those, too, in a final searching pass.


whoami

#4
Another reason is that factories (in the sense of ST) require a large area of rather flat space. Especially the farms with fields are limited in location choice because (IIRC) the fields have to be at the same level as the central building(s). Some time ago, the factory builder was equipped with the ability to put normal factories on artificial foundations, which helps a lot.

EDIT: required building space and chain complexity depend on the pak-set, of course.

Quote from: Hajo on September 17, 2009, 12:25:15 PM
I think the factory builder should ignore all constraints in a final pass, and place the missing factories anywhere - there ought to be space for them somewhere on the map.
Support for this. It may be useful to also check if a failed branch is vital for the whole chain (e.g. for shops that order several different goods, and sell them independently), and if it isn't, don't build this branch at all (EDIT:), that is, remove its parts again. As those can be used (cross-linked) to existing chains, this will need to be checked, too

prissi

The main problem with the factory builder giving up is, that is takes a very long time to find a random place, which brings the game near a complete halt. This is also to be taken into account.

Spike

Wouldn't a linear scan of the map from top left do the job to find empty spots of sufficient size? In this case I'd not insist on the locations being very random. It's an emergency case.

colonyan

From one of end user point of view.
As mentioned, even if requirements are not met, chain should be completed no matter what.
Climate should be complementary element and should not interfere with game core mechanics.

z9999

Additionally, the things people often complain and request are...

1. People want to determine the distance from supplier and consumer by user settings.
2. People want to determine the area of worker by user settings.

Current system doesn't match with large maps.

neroden

Quote from: z9999 on September 19, 2009, 04:57:20 AM

Current system doesn't match with large maps.


Quite true.  In simutrans-experimental, playing with huge 1536x1536 tile maps, I end up with horribly clustered factories.

prissi

INcomplete chains should no longer happen as long as there is any place at all, because climates will be ignored in a last attempt. Searching the whole map is not very good, because on a 4000x4000 map it takes ages (or nearly a month). So random has to be used. The details can be find in fabrikbauer_t near the bottom. ANy person can happily try there to improve the locations. I personally never play larger maps, so I do not care.