More Storage?

Where is it discussed?
  • e.g. in our modders community in Slack: issues, modders chats, ...
  • Some of them also here in the CivFanatics forum in old threads.
  • Some of it also e.g.in Discord in chats between modders and players.
  • Some of it aslo e.g. in private conversations (mostly here in CivForum) between modders
  • Some of it aslo e.g. in Zoom conferences between modders.
Wherever modders and players feel to share ideas. :dunno:
(Some stuff is so old that only few people still remember it was discussed.)

-------

Most importantly (for me) this old thread:
Major Overhaul to Cargo System (XML based)
(considering my personal long term plans I will implement something like that.)
 
Last edited:
But again there are many other concepts and ideas of other modders around as well.

So it is possible that another modder will implement something else. :dunno:
(e.g. purely weight and volume based systems that allow a single Cargo Slot to contain different Yields like e.g. in "Dawn of a new Era"...)


And which features scream for new system?
That new system itself would already be a new feature.
But yes, maybe other cool features may then build on such new stuff, who knows ...

Every modder shall implement whatever he likes and also cooperate with others that share his ideas.
Once he is done he can share it with the rest of the modders and we may discuss if it becomes default in WTP core mod or not.
 
Lumber and Stone does not count to the limits as well.

I had no idea that this was the case! I checked out the math on the screen and it checks out. (Food also does not count) Thing is, I don't see it in the Colopedia anywhere. I did find the reference to food, but not lumber/stone.

Did I overlook it? Please let me know. If not I'll see what I can do to get it added.
 
I did find the reference to food, but not lumber/stone.
The special rule for storage of Food is explained in Colopedia Game Concept "City Storage".
I had forgotten to explain my (hardcoded) special rule for Stone / Lumber there as well.

Please let me know. If not I'll see what I can do to get it added.
The best solution would be to make it XML configurable and read from there. :thumbsup:
(Both in DLL and Python.)


Since I am not sure how experienced you are, here is a mini-guide.
(Sorry. Probably you do not even need it. Otherwise it is a good learning exercise.)
---------

1. XML attribute (CvYieldInfos.xml): bIgnoredIForStorageCapacity
(Do not forget to adjust the Schema accordingly: CIV4TerrainSchema.xml)

2. DLL method: CvYieldInfo:: isIgnoredForStorageCapacity()

Use it in the internal logic that currently hardcodes Food, Lumber and Stone for Storage Capacity.
(Just search for "YIELD_STONE" to find it.)

3. Making it accessible for Python (CyInfoPythonInterface3)
.def("isIgnoredForStorageCapacity()", &CvYieldInfo::isIgnoredForStorageCapacity(), "bool ()")

4. Using that Logic in Pedia Screen of Yields
(Well of course you also need a TXT_KEY in XML to display the message.)

---------

Thanks in advance. :)
 
Last edited:
1. XML attribute (CvYieldInfos.xml): bIgnoredIForStorageCapacity
(Do not forget to adjust the Schema accordingly: CIV4TerrainSchema.xml)

2. DLL method: CvYieldInfo:: isIgnoredForStorageCapacity()

Use it in the internal logic that currently hardcodes Food, Lumber and Stone for Storage Capacity.
(Just search for "YIELD_STONE" to find it.)

3. Making it accessible for Python (CyInfoPythonInterface3)
.def("isIgnoredForStorageCapacity()", &CvYieldInfo::isIgnoredForStorageCapacity(), "bool ()")

4. Using that Logic in Pedia Screen of Yields
(Well of course you also need a TXT_KEY in XML to display the message.

In truth, This might be beyond my current capabilities, I can handle the XML, but I wouldn't' even know where to start for the DLL.

My plan was going to be adding it to the text in the colopedia! What you laid out is a much more robust and configurable solution though.
 
What you laid out is a much more robust and configurable solution though.
Ok, then I will take care of it myself. :thumbsup:
(Do not put any effort into it then because pure XML will not help us here.)

It is actually really a beginner's task for a new modder. :dunno:
(Really simple stuff in DLL and Python to learn a bit of programming.)
 
Well that is a bit of a mix of intimidating and encouraging.
It was supposed to be encouraging. :)
Basically you could have used this here as an exercise to learn basic Civ4Col programming.

It is a task an experienced modder most likely does in 30min.
(Most of the time is basically just typing and testing.)

As a beginner you will of course take longer - to learn and ask.
But every other task considering programming I could imagine would be more difficult.

----------

Summary:

If you want to learn programming it is really a good task to learn. Nothing to be afraid of.
Also evey experienced modder could easily answer all your questions and guide you through it from start to end.
 
Back
Top Bottom