Building Classes, Yield Types, Features, Icons....oh my!

rsc2a

Warlord
Joined
Jun 23, 2020
Messages
131
Does anyone have a spreadsheet or some other kind of file that contains lists of all these kinds of items with their database names?

I'm thinking stuff like:

Spoiler :

Buildings
Techs
Policies
Beliefs
Yield Types

Units
Specialists
Promotions

Resources
Improvements
Terrain
Features

Historic Event Types

Icons

Anything else folks can think of

 
Why? Just start the game and grab Civ5DebugDatabase2.db and open it in a SQLite database manager, and you'll see them all.
 
Appreciate it.

I basically learn any coding I know by finding something similar to what I want to do, figuring out the syntax/logic, and then modifying it. I have been able to power through VBA and build some macros in Excel, but it's not too efficient. :)

Thankfully, the events system is designed to be able to do this pretty easily, but I have always copied and then edited everything in a basic word processor, so I would spend half my time <ctrl-f> - ing my way through the files trying to find the items I was looking for. This helps a lot.
 
Now that I'm attempting to start writing lua files to add new functionality, I have another question or two. I have been sticking with my old tried-and-true <ctrl-f> but it takes forever, and I know I'm missing things.

How do I find the location for all the GameEvents. (e.g. CityFounded, UnitPromoted, etc.) triggers, GameInfoTypes and lua functions?

Thanks!
 
Now that I'm attempting to start writing lua files to add new functionality, I have another question or two. I have been sticking with my old tried-and-true <ctrl-f> but it takes forever, and I know I'm missing things.

How do I find the location for all the GameEvents. (e.g. CityFounded, UnitPromoted, etc.) triggers, GameInfoTypes and lua functions?

Thanks!
Look at the API reference for all Lua API calls from vanilla to G&K at this modiki here. For BNW and new CP stuff, the Wiki section on the Community Patch GitHub repo is a bit outdated, and most of the modders look at the cpp files to find all the working API calls.
 
what I do is make a modpack of latest/recent version -- there will then be separate files in Override folder afterwards for all the database stuff, and one for text (and many empty ones) -- these two files can serve as your list, of sorts. Its a little clunky if you're just using text editor to view, or try w/e xml viewer you prefer
 
Now that I'm attempting to start writing lua files to add new functionality, I have another question or two. I have been sticking with my old tried-and-true <ctrl-f> but it takes forever, and I know I'm missing things.

How do I find the location for all the GameEvents. (e.g. CityFounded, UnitPromoted, etc.) triggers, GameInfoTypes and lua functions?

Thanks!
have you tried using notepad++?
You can use a 'find in files' search to basically <ctrl-f> through all the files at once
 
Top Bottom