[GS] Any way to increase limit on resource stockpiles past 50?

otakucore

Chieftain
Joined
Oct 12, 2010
Messages
21
I couldn't find anything in the XML. Is it in one of the LUA files? I'm hoping there's some simple reference I can just change from 50 to 100.
 
What file is that? 01_GameplaySchema.sql?

I haven't messed with SQL files yet, so I'm not familiar with what they all do.
 
Look in Expansion2_Resources.xml and you'll find the Resource_Consumption table and StockpileCap.
A simple mod update would be:
Code:
UPDATE Resource_Consumption
SET    StockpileCap = 100
WHERE  StockpileCap LIKE '%50';
That would change all the stockpile caps to 100, but you can also have individual caps per resource if you wanted.
 
Last edited:
To do it for an individual civ you would do it like this in SQL:

INSERT INTO Modifiers
(ModifierId, ModifierType, RunOnce, Permanent, OwnerRequirementSetId, SubjectRequirementSetId)
VALUES ('QUO_BIOME_ARABESQUE_GIANT_STOCKPILE', 'MODIFIER_PLAYER_ADJUST_RESOURCE_STOCKPILE_CAP', 0, 0, NULL, NULL) ;

INSERT INTO ModifierArguments
(ModifierId, Name, Type, Value, Extra, SecondExtra)
VALUES ('QUO_BIOME_ARABESQUE_GIANT_STOCKPILE', 'Amount', 'ARGTYPE_IDENTITY', '150', NULL, NULL) ;


INSERT INTO TraitModifiers
(TraitType, ModifierID)
VALUES ('QUO_TRAIT_BIOME_ARABESQUE', 'QUO_BIOME_ARABESQUE_GIANT_STOCKPILE' ) ;


TraitType in the final piece of SQL would need to be a traittype of a Civilization or Leader.
 
Back
Top Bottom