Hydromancerx
C2C Modder
This is a continuation of [TUTORIAL] Modular XML Modding With A New Dawn by Afforess, except this time rather than I being the student, I will be the teacher and steampunk1880 will be the student.
As said in the other thread, I asked him to follow the tutorial Afforess made for me and ask me any questions. This thread is made to help answer his questions as well as help tech anyone else who find this thread.
Now for the first questions ...
-----
First the icon. You can see how it is made here.
As Afforess says you will need some sort of art program, MS paint works fine.You will need to add the border around it and then use DXTBmp to put on the alpha layer.
----
As for the text, this is the most simple of the stuff. You file will look like this ...
You first will need to rename your file. The one above was was called Trapping_CIV4GameText.xml. Use Notepad to open it up to see.
1. You will want to keep all the top part the same.
2. The first tag is going to be the same type of tag you use throughout your building. in this case "OTTER_CAMP" but for yours it could be "COMPUTING_ENGINE" or whatever tag you decided for it.
3. Then under that you will want to put the name of the building. Instead of "Sea Otter Hunter's Camp" you will want "Municipal Computing Engine".
4. Next is some more tags with the same tag name as before. But in this strategy text you will want to say something about it such as ...
"Build a Municipal Computing Engine to increase your cities science."
whatever the most important stat is you will want to mention it in the strategy.
5. Lastly the pedia. This is usually taken from Wikipedia and is rather short (like a paragraph) You will also need to remove the foot notes that look like [2] or [5]. Those look ugly and can sometines mess up thing in the game.
6. Then save your file if you have not already.
----
This should get you started. Let me know if you ave any other questions.
Give a man a fish and you feed him for a day. Teach a man to fish, and your feed him for a lifetime.
As said in the other thread, I asked him to follow the tutorial Afforess made for me and ask me any questions. This thread is made to help answer his questions as well as help tech anyone else who find this thread.
Now for the first questions ...
-----
steampunk1880 said:It's bookmarked and I'd like to try to make a Municipal Computing Engine (as in the steampunk thread) as soon as possible but what's the icon and text file about?
First the icon. You can see how it is made here.
As Afforess says you will need some sort of art program, MS paint works fine.You will need to add the border around it and then use DXTBmp to put on the alpha layer.
----
As for the text, this is the most simple of the stuff. You file will look like this ...
Spoiler :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by XMLSPY 2004 Professional Ed. Release 2, Installed Multi + SMP for 3 users (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Text - New -->
<Civ4GameText xmlns="http://www.firaxis.com">
<TEXT>
<Tag>TXT_KEY_BUILDING_OTTER_CAMP</Tag>
<English>Sea Otter Hunter's Camp</English>
<French>Sea Otter Hunter's Camp</French>
<German>Sea Otter Hunter's Camp</German>
<Italian>Sea Otter Hunter's Camp</Italian>
<Spanish>Sea Otter Hunter's Camp</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_BUILDING_OTTER_CAMP_STRATEGY</Tag>
<English>Build a Sea Otter Hunter's Camp to increase your cities wealth.</English>
<French>Build a Sea Otter Hunter's Camp to increase your cities wealth.</French>
<German>Build a Sea Otter Hunter's Camp to increase your cities wealth.</German>
<Italian>Build a Sea Otter Hunter's Camp to increase your cities wealth.</Italian>
<Spanish>Build a Sea Otter Hunter's Camp to increase your cities wealth.</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_BUILDING_OTTER_CAMP_PEDIA</Tag>
<English>Archaeological evidence indicates that for thousands of years, indigenous peoples have hunted sea otters for food and fur. Large-scale hunting, part of the Maritime Fur Trade, which would eventually kill approximately one million sea otters, began in the 18th century when hunters and traders began to arrive from all over the world to meet foreign demand for otter pelts, which were one of the world's most valuable types of fur.</English>
<French>Archaeological evidence indicates that for thousands of years, indigenous peoples have hunted sea otters for food and fur. Large-scale hunting, part of the Maritime Fur Trade, which would eventually kill approximately one million sea otters, began in the 18th century when hunters and traders began to arrive from all over the world to meet foreign demand for otter pelts, which were one of the world's most valuable types of fur.</French>
<German>Archaeological evidence indicates that for thousands of years, indigenous peoples have hunted sea otters for food and fur. Large-scale hunting, part of the Maritime Fur Trade, which would eventually kill approximately one million sea otters, began in the 18th century when hunters and traders began to arrive from all over the world to meet foreign demand for otter pelts, which were one of the world's most valuable types of fur.</German>
<Italian>Archaeological evidence indicates that for thousands of years, indigenous peoples have hunted sea otters for food and fur. Large-scale hunting, part of the Maritime Fur Trade, which would eventually kill approximately one million sea otters, began in the 18th century when hunters and traders began to arrive from all over the world to meet foreign demand for otter pelts, which were one of the world's most valuable types of fur.</Italian>
<Spanish>Archaeological evidence indicates that for thousands of years, indigenous peoples have hunted sea otters for food and fur. Large-scale hunting, part of the Maritime Fur Trade, which would eventually kill approximately one million sea otters, began in the 18th century when hunters and traders began to arrive from all over the world to meet foreign demand for otter pelts, which were one of the world's most valuable types of fur.</Spanish>
</TEXT>
</Civ4GameText>
1. You will want to keep all the top part the same.
2. The first tag is going to be the same type of tag you use throughout your building. in this case "OTTER_CAMP" but for yours it could be "COMPUTING_ENGINE" or whatever tag you decided for it.
3. Then under that you will want to put the name of the building. Instead of "Sea Otter Hunter's Camp" you will want "Municipal Computing Engine".
4. Next is some more tags with the same tag name as before. But in this strategy text you will want to say something about it such as ...
"Build a Municipal Computing Engine to increase your cities science."
whatever the most important stat is you will want to mention it in the strategy.
5. Lastly the pedia. This is usually taken from Wikipedia and is rather short (like a paragraph) You will also need to remove the foot notes that look like [2] or [5]. Those look ugly and can sometines mess up thing in the game.
6. Then save your file if you have not already.
----
This should get you started. Let me know if you ave any other questions.
Give a man a fish and you feed him for a day. Teach a man to fish, and your feed him for a lifetime.