Quick Modding Questions Thread

Code:
[29978.228] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
[29978.244] info type NONE not found, Current XML file is: xml\Units/CIV4UnitInfos.xml
In my XML logs, I am finding 1,000's of these similiar lines occurring in differing *.xml files.

Can I replace the code below
Code:
			<HolyCity>NONE</HolyCity>
			<ReligionType>NONE</ReligionType>
			<StateReligion>NONE</StateReligion>
			<PrereqReligion>NONE</PrereqReligion>
			<PrereqCorporation>NONE</PrereqCorporation>
with
this code ?
Code:
			<HolyCity/>
			<ReligionType/>
			<StateReligion/>
			<PrereqReligion/>
			<PrereqCorporation/>

If you are doing an SDK mod, it's easier to comment out the part of the SDK that logs that info. See, what happens is that it searches in the info-table for NONE, and since it is not found, it returns a -1. A -1 is what you want, so nothing bad happens.

But yes, you can change those lines.
 
Thanks I get rid of the "NONE". RE: SDK Mod learning I wait for Civ 5.
 
Liberating cities. I need a couple of my mod's cities to have the choice to be liberated and returned to a specific civilization from the start of the mod. I've messed around with culture and territory, but can't edit it with worldbuilder. Any thoughts?
 
I have received a question from a potential user of my Mod, whether it will be compatible with a MAC.

My mod uses the "Vanilla" DLL, that came with "Beyond the Sword". It uses new units from the units database and the rest of the changes are Worldbuilder edits and XML additions and changes.
 
3 things for Mac:
- Can't use any custom dlls. If it's requiered, it will just not work.
- Can't use .exe files, so you have to provide a .zip, .rar, whatever
- XML reading is a bit different. Some characters (special ones, like ö,ä,ü,á, and so on) can cause problems. There are also potentially some more XML problems, but these can be fixed with a helping hand of a Mac user.
 
So I created a nif file for a building, but lthe top of one part of the building shows up as black, but the .dds shows it should be colored grey. Can't figure it out. The only thing I can think of is that this section has not building bottom. Is that it? any suggestions?
 
Hi.

I've tried to find this but with no luck. What file do I use to modify units and where is it?
 
All Right. This leads to my next question: what do I do with an xml document? How do I modify it and save it to use for a mod? I suspect that this question has been answered before but I could not find it, so I would be happy if someone just directed me to prior posts that have the information I seek. I should add that I am not a programmer or the like so start out with little knowledge, but I have always been able to learn whatever I need in order to do what I want to do. As I said before, I have made my own civ mods before on the earlier versions but I am not familiar with the current methods.
 
For modifying an XML file there is no programming involved. It is just a text file that holds data in a specific format. To some extent they are self explanatory since every piece of data is labeled (although some are not very clear in meaning), and you can use the documentation in the Modiki (link near the top of the page) for more info.

It is a bit easier if you use an editor that is better than Notepad (which does work OK) or Wordpad. I would recommend against using use Word or other MS Office products - some of them think they understand XML but they are terrible at it. Notepad++ is popular.
 
Thanks. My problem was that when I clicked on it, it went to a page online. I wasn't sure what to do about that. I didn't open it with notepad or anything else like that. Thanks. Now that I am able to read it as some form of text file, it seems pretty clear at the moment.
 
I forgot that the default response to just clicking on an XML file to open it in most versions of Windows is to do something stupid. It would be better if it just defaulted to opening it in Notepad.
 
--------------------------------------------------------------------------------

1. How can I do it so you can only get a certain promotion or another. (so if you got your 2 xp you chose heavy plating over light plating and then when you got 5 xp light plating wasnt there any more.)

2. What XML editor should I get so that way I can do <bshowNationality>1<bshowNationality> and turn that into a promotion. or if I wanted a promotion to allow bombardment after you achieve it (I know there are some mods out there that can do this but id rather do it my self and get the better editor in the process)

right now my editor only edits it cant add scripts <-------- help with that too?
 
Hi,

I've got a quick question:

is it possible to change a unit's model when it gets a certain promotion? E.g. a rifleman gets the promotion "woodsman" and then a model of a rifleman with leaves camo is used in stead of the original. I know u can add models like with the city-attacker promo that adds attachking siege towers, but it's REPLACING the unit model I'm talking about.

If it is possible, how could it be done?
 
changing models is possible - eg the same way you want (different models depending on promotions) has atm the planetfall mod. No idea if it´s was only a python or also a sdk change.

Also there is way to run a certain kf with promotions (like the added parts in der afterworld scenario - theoretical - because i don´t know a mod or model beside the vanilla one - you could use this function and change the UV on the texture position (the way it´s done with damage stats texture))
 
1. How can I do it so you can only get a certain promotion or another. (so if you got your 2 xp you chose heavy plating over light plating and then when you got 5 xp light plating wasnt there any more.)

2. What XML editor should I get so that way I can do <bshowNationality>1<bshowNationality> and turn that into a promotion. or if I wanted a promotion to allow bombardment after you achieve it (I know there are some mods out there that can do this but id rather do it my self and get the better editor in the process)

Both needs some serious C++ coding, no way with XML or python scripting.
 
I have lost a utility I had which extracted the XML file into a spreadsheet.

I can't find it under Civ4 Utility Downloads
 
Top Bottom