Topic: Multiple Mining Mine
MarkMcWire Topic Opener |
Posted at: 2019-09-29, 21:23
I acutally develope my own tribe. I have created a new ware "ore" that replace iron_ore and gold_ore, because in future I want to implement several other metalls for economy. So my mine outputs only general ore and the smelting work creates from this general "ore" than iron, gold, silver, copper, tin, and other metalls for use. My problem is, that I have a mine, that can mine iron from map and gold from map. There is no difference, because the output is already "ore". How can I implement a AI hint, that the AI use this mine for mining iron from map AND gold from map.
.. mines = "gold iron", .. mines = "gold,iron", ? My widelands project: https://github.com/widelands/wl_addons_server/tree/master/addons/europeans_tribe.wad Top Quote |
GunChleoc |
Posted at: 2019-09-29, 21:54
We don't support this in the AI hints right now, it would have to be implemented. Busy indexing nil values Top Quote |
MarkMcWire Topic Opener |
Posted at: 2019-09-29, 21:58
How does the AI currently react, if I use both hints?
Edited: 2019-09-29, 21:58
My widelands project: https://github.com/widelands/wl_addons_server/tree/master/addons/europeans_tribe.wad Top Quote |
hessenfarmer |
Posted at: 2019-09-30, 08:17
As far as I know it will take the last one. as the first one will be overwritten. Top Quote |
MarkMcWire Topic Opener |
Posted at: 2019-10-01, 06:06
You're right. I've splittet it again in ironmine and goldmine, but both with same output of ore. My widelands project: https://github.com/widelands/wl_addons_server/tree/master/addons/europeans_tribe.wad Top Quote |
Tibor |
Posted at: 2019-10-01, 20:26
To avoid confusion - "mines" refer to resource (raw material in the ground), not output of mine or outputs of possible refinement of mine output. AI uses it for placing the mine. Simply "mines" must match a resource under the ground. EDIT: now I noticed that Gun already explained this Edited: 2019-10-01, 20:43
Top Quote |