Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Jul 05, 2012, 06:33 AM   #1
Chewie
Chieftain
 
Chewie's Avatar
 
Join Date: Jan 2002
Location: Brisbane, Australia
Posts: 80
Images: 1
Question Changing existing civ's UAs

Hi,

I'm trying to create a mod that removes all UBs and UUs from the game, and gives drastic abilities (with positives and negatives) to each civ instead. For example one civ:
- increased science rate
- can't generate any faith
- cities less likely to adopt religion
- more prone to espionage

Yes it is inspired from Alpha Centauri. There are about 14 civs I have ideas for atm. I want to completely keep all existing names/text/artwork - it's only UAs and leader flavours I want to set.

Questions: Are these kind of abilities possible just through XML? And, can I edit an existing civ (if so, how) - or would I have to create all brand new civs? If I use brand new civs, how can I use the existing text/artwork etc?

Thanks for any help - this is my first mod (I've got the Modbuilder and creating a basic mod working).

Moderator Action: Moved to C&C.

Last edited by The_J; Jul 05, 2012 at 07:10 AM.
Chewie is offline   Reply With Quote
Old Jul 05, 2012, 02:59 PM   #2
Spatzimaus
Mad Scientist
 
Spatzimaus's Avatar
 
Join Date: Sep 2005
Location: Los Angeles, CA
Posts: 3,063
Quote:
Originally Posted by Chewie View Post
Questions: Are these kind of abilities possible just through XML?
Generally, no.

If you don't see an explicit table/schema for something in the existing database, then you're out of luck. The Civ5 developers implemented almost nothing that wasn't being used for their existing civs/units/buildings/etc., so if your ideas are all the sorts of things that other civs already have, then you can make it work, but if there are no existing civs that are more prone to espionage, then you're not going to find XML to do that for your own civ.

A lot more things are possible through Lua, but that has many limitations of its own, most notably the inability of an AI to adapt to the alteration.
__________________
Once upon a time there was the Ages of Man mod set. Then Firaxis broke it. But thanks to the DLL efforts of the community, the mods shall rise again!
Spatzimaus is offline   Reply With Quote
Old Jul 05, 2012, 03:27 PM   #3
Chewie
Chieftain
 
Chewie's Avatar
 
Join Date: Jan 2002
Location: Brisbane, Australia
Posts: 80
Images: 1
Quote:
Originally Posted by Spatzimaus View Post
Generally, no.

If you don't see an explicit table/schema for something in the existing database, then you're out of luck. The Civ5 developers implemented almost nothing that wasn't being used for their existing civs/units/buildings/etc., so if your ideas are all the sorts of things that other civs already have, then you can make it work, but if there are no existing civs that are more prone to espionage, then you're not going to find XML to do that for your own civ.

A lot more things are possible through Lua, but that has many limitations of its own, most notably the inability of an AI to adapt to the alteration.
Nuts I thought that might be the case. I'm not too afraid of Lua though, being a .net developer by day. My thought was by adjusting the leader flavour settings that it would somewhat compensate for the above, i.e. in this case I would get them to focus more on science to make use of their strength, and more on espionage to increase their spy defense.
Chewie is offline   Reply With Quote
Old Jul 05, 2012, 03:30 PM   #4
Chewie
Chieftain
 
Chewie's Avatar
 
Join Date: Jan 2002
Location: Brisbane, Australia
Posts: 80
Images: 1
To add to the original post - where would I get the art files for expansion civs? i.e. for the science civ case I would like to use Sweden from G&K
Chewie is offline   Reply With Quote
Old Jul 05, 2012, 05:24 PM   #5
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,877
Quote:
Originally Posted by Spatzimaus View Post
A lot more things are possible through Lua, but that has many limitations of its own, most notably the inability of an AI to adapt to the alteration.
Does the AI even recognize it's trait to begin with? Or do they play the game normally with that as a bonus? Even if it did recognize the trait - it would change it's playstyle to compensate. Hence LUA coding for traits is safe.
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.
Putmalk is offline   Reply With Quote
Old Jul 05, 2012, 05:51 PM   #6
Spatzimaus
Mad Scientist
 
Spatzimaus's Avatar
 
Join Date: Sep 2005
Location: Los Angeles, CA
Posts: 3,063
Quote:
Originally Posted by Putmalk View Post
Even if it did recognize the trait - it would change it's playstyle to compensate. Hence LUA coding for traits is safe.
True, the Lua difficulty is more apparent when dealing with more "reactive" bits like units, since most core Traits are very simple, often global effects. But the point still holds with Traits, because you CAN make them very complex in Lua if you wanted to. For instance, take the suggested trait: he wants to add culture to your capital whenever you raze something. This wouldn't require any alteration to AI behavior, because you're already giving it a raze-happy behavior for its other bonus (handled through Flavor entries and stuff), although it should, in theory, change the preference for culture buildings in your capital to some extent. Likewise, simpler trait changes can be handled through alteration in Flavor values; as long as the suggested change is a universal effect, the AI won't need to think deeply about behaviors.

But you could use Lua to make a trait that gave a more complex effect, and my comment was dealing with a worst-case scenario. For instance, let's say you make the amount of culture given depend on whether it was a former capital, how many wonders the razed city holds, whether it follows a different religion than the rest of your empire, and so on. A human player would now know that certain cities are much better to raze than others, but there's no way to teach the AI to re-prioritize around that sort of rule change.

In general, the AI's behavior is a simple one-dimensional thing; if something is a good idea in one situation, the AI will think it's a good idea in all situations where the choice is possible. As long as your changes are structured along that line (and most Trait suggestions are), Flavor values can be used to alter the AI's actions in the right ways. But if you're taking full advantage of the added flexibility of Lua, then there are issues.
__________________
Once upon a time there was the Ages of Man mod set. Then Firaxis broke it. But thanks to the DLL efforts of the community, the mods shall rise again!
Spatzimaus is offline   Reply With Quote
Old Jul 05, 2012, 06:06 PM   #7
Putmalk
Emperor
 
Putmalk's Avatar
 
Join Date: Sep 2010
Location: New York
Posts: 1,877
Quote:
Originally Posted by Spatzimaus View Post
True, the Lua difficulty is more apparent when dealing with more "reactive" bits like units, since most core Traits are very simple, often global effects. But the point still holds with Traits, because you CAN make them very complex in Lua if you wanted to. For instance, take the suggested trait: he wants to add culture to your capital whenever you raze something. This wouldn't require any alteration to AI behavior, because you're already giving it a raze-happy behavior for its other bonus (handled through Flavor entries and stuff), although it should, in theory, change the preference for culture buildings in your capital to some extent. Likewise, simpler trait changes can be handled through alteration in Flavor values; as long as the suggested change is a universal effect, the AI won't need to think deeply about behaviors.

But you could use Lua to make a trait that gave a more complex effect, and my comment was dealing with a worst-case scenario. For instance, let's say you make the amount of culture given depend on whether it was a former capital, how many wonders the razed city holds, whether it follows a different religion than the rest of your empire, and so on. A human player would now know that certain cities are much better to raze than others, but there's no way to teach the AI to re-prioritize around that sort of rule change.

In general, the AI's behavior is a simple one-dimensional thing; if something is a good idea in one situation, the AI will think it's a good idea in all situations where the choice is possible. As long as your changes are structured along that line (and most Trait suggestions are), Flavor values can be used to alter the AI's actions in the right ways. But if you're taking full advantage of the added flexibility of Lua, then there are issues.
I meant to say "wouldn't" change it's playstyle, pardon the correction.

But yeah, I agree with you.
__________________
Mod Creator
Check out Civ IV Diplomacy Features in Civ V!

Check out my youtube channel here.
Putmalk is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > Changing existing civ's UAs

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 06:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR