Modders Guide to Civilization V

THANK YOU, MOUSEY POUNDS! You solved the problem! Now I just need to make it work. Thanks again.
 
Modding noob having noob problems.

When I first loaded Modbuddy, it prompted for the two paths. I loaded one in wrong. How do I correct it?

I've uninstalled from steam. Rebooted. Didn't work. Uninstalled, removed the modbuddy directory, rebooted, didn't work.

I can use mod buddy and build mods and they show up in the mods when I start the game. I can check the reload units, landmarks, and I get an additional delay when I start a game with the mod, but I can't seem to get anything in the mod to take affect.

I've checked the database.log and don't have any errors. Double checked the OnModActivated entry to make sure no errors there.

I'm down to copying existing mod code or examples and they don't seem to work, so I'm thinking something in my modbuddy setup seems to keep them from loading and I suspect the broken path. the mod builds fine, shows up in the mods section and can be selected, just nothing seems to take effect. Even a simple buff of a terrain yield to add one yield_food...


UGH, solved it. Stupid mistake TerrainType="TERRAIN_GRASS" not TerrainType="Terrain_Grass".

That's what I get for looking at another modders work.
 
ANDREBR -- In your BrazilAtlases.xml you have various instances of "CIV_COLOR_ATLAS_BRAZIL" and "CIV_COLOR_ATLAS_BRASIL". Are you having art issues ingame?
 
Anything which modifies the database (IE, XML and SQL files) need to be listed. New UI files are listed in a different section (EntryPoints, rather than Actions), but existing UI files (whether xml or lua) do not need to be listed in order to work.

I'm trying to merge Morlark's Smarter Tech Tree mod into a mod I'm working on. However, when I copy the TechTree.lua and TechTree.xml files from his mod into mine, they stop working. The only way I can get the Smarter Tech Tree mod to work is to have it as a seperate mod and load it individually from the mod I'm working on.

I made some small tweaks to his files to better suit my mod, which is why I'm trying to merge them in the first place.

What am I doing wrong?

Thanks in advance! :goodjob:
 
As of the last patch, when you have files which you wish to overwrite existing files (IE, any time you mess with preexisting lua files and their xml components), you need to set a new property, Import into VFS (Virtual File System). You can find this checkbox in the "Properties" window, which is typically in the bottom right.
 
As of the last patch, when you have files which you wish to overwrite existing files (IE, any time you mess with preexisting lua files and their xml components), you need to set a new property, Import into VFS (Virtual File System). You can find this checkbox in the "Properties" window, which is typically in the bottom right.

That did the trick! Such a simple thing... yet it's been driving me mad for weeks. Thanks! :goodjob:
 
A quick question, something I don't think needs a separate thread. Where is the code that deals with city resistance after conquest? It appears to just use one turn per population, but I was wondering where I could adjust that. I looked in the Global Defines XML file, but didn't see anything there governing it.
 
I saw this great guide and it made me want to take a stab at creating a mod idea I've had for awhile. I am trying to create a complete mod with entirely new civilizations. Since I am a complete beginner, I decided to start by adding one of the civs to the existing game. I followed the guide for creating a new civ except I changed the civ name and city names. I created the civilization and gametext xml files as shown in the guide and I still have Elisabeth set as the leader. I've set the two xml files to update the database in the actions tab and I built the mod.

Should my civ show up at this point when I load the mod in the game? I don't see the civ in the game setup screen, even under advanced setup. I've skimmed through most of this thread, double and triple checked my spelling and file paths (It's still possible I could have missed something) but still no evidence of my civ when I load the mod. Is there something obvious I'm missing? Do I need to follow the guide further before my civ even shows up?

Thanks.
 
I saw this great guide and it made me want to take a stab at creating a mod idea I've had for awhile. I am trying to create a complete mod with entirely new civilizations. Since I am a complete beginner, I decided to start by adding one of the civs to the existing game. I followed the guide for creating a new civ except I changed the civ name and city names. I created the civilization and gametext xml files as shown in the guide and I still have Elisabeth set as the leader. I've set the two xml files to update the database in the actions tab and I built the mod.

Should my civ show up at this point when I load the mod in the game? I don't see the civ in the game setup screen, even under advanced setup. I've skimmed through most of this thread, double and triple checked my spelling and file paths (It's still possible I could have missed something) but still no evidence of my civ when I load the mod. Is there something obvious I'm missing? Do I need to follow the guide further before my civ even shows up?

Thanks.

The guide is out of date as far as the structure of the files many things have been added and some removed, not having the right changes will make your civ not work. So if you copied the guide, it will not work. Use the guide to get an idea of what to change and how to change it, then pull the actual coding from the current game files to get a base with the proper entries to build your mod from.
 
Thank you. I was going crazy trying to find a difference between my files and the guide all this time.
 
I still can't get my civ to show up in the game. I've created these two XML files, (changed to txt files so I could upload) and set them to update the database. Is there something I'm missing?

Thanks
 

Attachments

I'm having problems with other mods and txt_key showing in game.

So tried to make my own, and I'm having the same problems.

Followed the 'create a civ' process letter by letter as per your extensive manual and I'm stuck. My XML matches your example exact except for civ name and city names.

Any suggestions?
 
I'm having problems with other mods and txt_key showing in game.

So tried to make my own, and I'm having the same problems.

Followed the 'create a civ' process letter by letter as per your extensive manual and I'm stuck. My XML matches your example exact except for civ name and city names.

Any suggestions?

Posted by EasyKill "The guide is out of date as far as the structure of the files many things have been added and some removed, not having the right changes will make your civ not work. So if you copied the guide, it will not work. Use the guide to get an idea of what to change and how to change it, then pull the actual coding from the current game files to get a base with the proper entries to build your mod from."
 
I still can't get my civ to show up in the game. I've created these two XML files, (changed to txt files so I could upload) and set them to update the database. Is there something I'm missing?

Thanks

The only thing I see at first glance is in your text file, you are opening and closing the Lang en US tags multiple times. Try removing the extras and having just one opening at the top and one closing at the end.
 
I have uploaded my files from my Civ Mod. They are working under the current patch.

If you are doing a mod you can use them for comparison or as a starting point.
 

Attachments

The only thing I see at first glance is in your text file, you are opening and closing the Lang en US tags multiple times. Try removing the extras and having just one opening at the top and one closing at the end.

I removed the extra tags but still nothing. At least I cleaned up the file a bit.

I have uploaded my files from my Civ Mod. They are working under the current patch.

If you are doing a mod you can use them for comparison or as a starting point.

Thanks. I see you have more xml files than I do at this point since you have already added some units and leaders. I have only the two files I posted so far. Is that enough to just get my civ to show up in the game, if I created them properly? I skipped the unique unit and unique building parts for now. Could that be a problem?

As it is now I expected to see my civ name and city names with washington as a leader, an original dawn of man quote (Is that the text you see when you start a game?) that I provided, no unique units or buildings and a preferred start in the desert. All the artwork should still be from the American civ.




Does anyone know what the minimum requirement is to just get a new civ to show up in the game? I just want to start off by copying an existing civ and changing only the civ name and city names. I want to get something to actually show up in the game properly before continuing with other changes/additions/removals.

If I could only get over this frustrating learning hump, maybe I can make something worthwhile. I wish I could just get my ideas in the game without all the annoying xml and lua editing etc...
 
Since you are using Washington as your leader, it will show up as a second Washington, so just glancing could fool you. You might be better creating a new leader too, but using everything stock aside from the name.

I don't really see much in your file, at least nothing that stands out, but there are other areas that could be causing the issue. In mod buddy with the update commands, how you are loading the mod, are you activating it in game, etc. Lots of places that could cause that outside of the files.
 
Posted by EasyKill "The guide is out of date as far as the structure of the files many things have been added and some removed, not having the right changes will make your civ not work. So if you copied the guide, it will not work. Use the guide to get an idea of what to change and how to change it, then pull the actual coding from the current game files to get a base with the proper entries to build your mod from."

Ah right. Explains that.

I knew something like that'd happen, sorry thread way too long for me to read it all.

I'm trying to simply add a civ without description error, and go from there. I'm new to code, and copying the examples was a good way to learn! I'll try to see what I can find..

Thanks for letting me know.
 
Back
Top Bottom