PDA

View Full Version : Implementing new hidden_resources



Perky
01-05-2007, 00:36
Hi, I am trying to make naval units buildable directly from settlements (i.e. the next tier of ships becomes available after upgrading the settlement rather than after upgrading the port).

Of course, a port is needed for naval units to be recruited, since this is where they appear after being built. So I have given every coastal settlement a port.

I have transferred the recruitment_pool capabilities of ports to their respective settlements. But this made the option of building a ship open to every settlement, even if it is landlocked.

So I gave all the coastal settlements the hidden_resource 'coastal', and added this to the end of the hidden_resources section in export_descr_buildings.txt

I then added it as a requirement for all naval units, by adding 'and hidden_resource coastal' to the end of the relevant lines.

However, now ships cannot be built in any settlements.



Does anyone have any idea how to properly implement hidden_resources, or else do this another way?

Thanks!