[BIG IDEA] UnitStack in Cities via Buildings

Aha, I guess they were clever about this after all :)

Still need to find a way to tell the DLL when a unit can and cannot enter a tile though.
 
great find CyberChrist!

You really should start an own thread about this discoveries, so others could also learn about the hidden possibilities of adding stuff!
 
Have something like
Armory +1 unit classic
Castle +1 unit medieval
Garrison +1 unit Renaissance
Trenches +1 unit Industrial
National Guard +1 unit Modern

It would definitely make later wars more static and rely on combined tactics more (arty, ships, planes, missiles) but you might need to work some kind of collateral damage in too. Im just thinking like 5 arty in a city would be impossible to take without air support.
 
the idea is a good one, and should have a limit

I'd say there should be a limit of two ranged and two melee units that could stack a city. As it is currently you can only surround a city with 6 melee, so if you do more than say 4 units a city then you run into balance issues.
 
My impression in CivIV (and I admittedly didn't get deeply into it) was that didn't use a direct XML-to-SQL mapping, so the DLL had to mediate between the XML and whatever the runtime data format was (SQL for all I know, or anything else). The new format is XML-as-proxy-for-SQL, so it is dealing with pure SQL the whole time. It's easier to make the Lua directly access the SQL than it is to restrict it.

Of course, if someone with more time than me wants to test this, it shouldn't be too hard.


JeBuS27 said:
I cannot speak about a DLL none of us has access to, but I've already been creating new tables and using them via Lua. Apparently, Firaxis was smart enough about that to hook up the plumbing. They provide a 'generic' API to get into the SQL tables via GameInfo. Any table you add can be accessed via "GameInfo.MyNewTable"

I haven't tested adding new elements to an existing table, so I won't speculate on that more than to say, you won't know until you try.


So, any progress on this?
 
Back
Top Bottom