Adding a new building

The cityLsystem is a bit tricky. Can you post what you have wrote in?

The problem with your unit is very strange if the nif, shadernif, kfm path and the ART_DEF_UNIT..-tags are right I have no more idea where the problem could be.:(

EDIT: I have looked into your cityLsystem and I can't see a mistake. Maybe you check the folder structure again? If I have any more ideas about your problem I will post it here.
 
Hey, a question...

Can you just remove buildings from the XML files to take them out of the game? This applies to units aswell. Because it works for Civilisations, so long as you dont take away Minor and Barbarian civs.

So can you remove buildings to take them from the game? Which files are they referred to in? And which buildings cant you take??

Thanks,
mrkingkong
 
I had a couple questions:

1) I've added your Neuschwanstein castle as a wonder to my game, and I've come across a couple problems. In the Civlopedia, the entry appears as TXT_KEY_BUILDING_NEUSCHWANSTEIN_CASTLE instead of just Neuschwanstein Castle, and there is no graphic for it.

2) I can't figure out what the <Strategy> flag does and it is driving me nuts!!

Hope you see this soon!
 
Anyone know where I can find a list of what the tags mean? I'd like to make stables require horses, but I need to know if a required resource tag exists, and what it's called.
 
@mrkingkong: Yes, you can delete buildings by xml. To do so, you have to remove the entries of that building from the files: Civ4buildingclassinfos.xml, Civ4buildinginfos.xml, Civ4unitInfos.xml and Civ4civilizationsInfos.xml

@Phungus:

The tag is in the Civ4BuildingsInfos.xml:

<PrereqBonuses/>

as far as I know, this tag isn't used by any vanilla building. So I can just guess how I has to look:

<PrereqBonuses>
<BonusType>BONUS_COPPER</BonusType>
<BonusType>BONUS_IRON</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
 
I had a couple questions:

1) I've added your Neuschwanstein castle as a wonder to my game, and I've come across a couple problems. In the Civlopedia, the entry appears as TXT_KEY_BUILDING_NEUSCHWANSTEIN_CASTLE instead of just Neuschwanstein Castle, and there is no graphic for it.

2) I can't figure out what the <Strategy> flag does and it is driving me nuts!!

Hope you see this soon!

Answers:

1) go to CIV4GameTextInfos_Objects.xml file


Path = Assets\XML\Text folder

copy that file into your mod


add this code to the end of that copied file:
(following the format)

Code:
	<TEXT>
		<Tag>[COLOR="Blue"]TXT_KEY_BUILDING_NEUSCHWANSTEIN_CASTLE[/COLOR]</Tag>
		<English>Neuschwanstein Castle</English>
		<French/>
		<German/>
		<Italian/>
		<Spanish/>
	</TEXT>

make sure your entry is before this tagline:

</Civ4GameText> (which is the end of the tagline entries)

also use the appropriate langauge Taglines :D

you should be all set :goodjob:

2) are you talking about this line in the CIV4BuildingInfos.xml File?

Code:
			<Strategy>TXT_KEY_BUILDING_PALACE_STRATEGY</Strategy>

I believe this is for the tutorial only... (I think its a text that appears when you are using a unit/building... it is a suggestion of what that unit is/used for)

I dont think it has effects the modded game.

so use this code:

Code:
			<Strategy>TXT_KEY_BUILDING_NEUSCHWANSTEIN_CASTLE_STRATEGY</Strategy>

in that file to complete the text

(You dont need to reference it in the CIV4GameTextInfos_Objects.xml file since it isnt used in your mod)


hope that helps ;)
 
Some problems here.

First of all, thanks for the info about the CityLSystem, because that must have been my problem before. See, before, whenever I tried to put in my new building, it just *didn't* appear on the map. In the city menu, yes, but not the map. Odd, eh? As well, the button was pink.

But when I tried making a CityLSystem entry, whenever I tried to put it in, it just outright crashed (as well, the button become transparent. =/). I wonder what I am doing wrong? I'm not certain what leaf size it is, either. It's bothering me.
 
Some problems here.

First of all, thanks for the info about the CityLSystem, because that must have been my problem before. See, before, whenever I tried to put in my new building, it just *didn't* appear on the map. In the city menu, yes, but not the map. Odd, eh? As well, the button was pink.

But when I tried making a CityLSystem entry, whenever I tried to put it in, it just outright crashed (as well, the button become transparent. =/). I wonder what I am doing wrong? I'm not certain what leaf size it is, either. It's bothering me.

sorry I avoid messing with that because of your forementioned problems...

I dont mind it not showing ..., :mischief:
 
I'm using the Nuclear Silo model from the Graphics forum for this, and I don't know if I'm selecting the wrong leaf or if it is the model itself. Ach!
 
I'm using the Nuclear Silo model from the Graphics forum for this, and I don't know if I'm selecting the wrong leaf or if it is the model itself. Ach!

not sure... but check to make sure the taglines are correct for the model (nik/kf taglines/etc)

or make sure the model files are the correct file names (rename the model file)

Ive seen some posts around where that was the problem

just a though :goodjob:
 
So I've followed all of the instructions in this Tutorial. And I have a fire department added into my city with textures applied. But when I added the hospital, school, and church, the geometry shows up in the city but their textures don't. Does anybody know why this is?

**Since this is my first post I can't upload so the files will be in the next post

Jay
 
Here are the files

*** Ok they didn't show up, how do I add files to my posts, I'm new to forums
 
So I've followed all of the instructions in this Tutorial. And I have a fire department added into my city with textures applied. But when I added the hospital, school, and church, the geometry shows up in the city but their textures don't. Does anybody know why this is?

**Since this is my first post I can't upload so the files will be in the next post

Jay

usually "Pink/Purple" appears with no textures means either the art files are not correctly label and/or xml taglines dont point to the correct art files

another reason is there is an error in the art files themselves... where they dont "fit" on the textures where either the texture files are the wrong size or they are the wrong format

or possibly a combo of the two...

usually it's just some xml tagline or art files are incorrectly labeled or incorrect file names in tagline

Im sorry I cant help more because I am not really an art modder...

however what is the files you d/led to use in your modded files?

another idea is to make sure all of your XML files are modded for the new buildings....


give me more details and I cant promise anything...but I may be able to discover the error/problem...

syntax is usually the culprit so make sure all art files and xml files are using the correct info

hope that helps ;)
 
hopefully this worked, the 4 xml files that this thread tells you to modify are in here, the files paths are all right in the art def file, i made sure of that.

Thanks for your help reene - I'm actually making this mod as part of a class for my major in college. I'm a game developer major so we are doing all of ou own artwork and what have you. The mod is meant to be workable by March 14th but I doubt that it will be very much fun. We do, however, plan to have a full Mod fun and playable for the Future Games Summit by August 1st. When all is accomplished and the mod works, we will definitely post it here.

A bit of background on the mod: I go to school in Chicago, thus we are making a game that revolves around the history of chicago and its immigrant population. It's not a war game but it is a strategy game. You play as a new immigrant group to chicago. The goal is to work your way up from the slums, spreading your population to other neighborhoods as you go. The winning condition right now is to have one of your immigrant group elected mayor of the city.

As you can see, its a bit of a change from normal mods and a lot of us are quite new to modding so I will be posting a lot of questions in the forums over the next couple months. We appreciate all the help we can get.

Thanks again
 
from a glance it seems ok... but...

... You did not include the actual art files (firehouse.nif files,.dds files,etc)

if you do not have those files included in your art folder... then that is why there is the 'pink' textures because the game has no files to reference :mischief:

'pink' textures usually happens when files are referenced like here:

Code:
      <BuildingArtInfo>
         <Type>ART_DEF_BUILDING_FIRE_DEPARTMENT</Type>
         <bAnimated>0</bAnimated>
         <fScale>20.0</fScale>
         <fInterfaceScale>0.5</fInterfaceScale>
         [COLOR="Blue"]<NIF>Art/Structures/Buildings/firehouse/firehouse.nif</NIF>[/COLOR]
         <KFM />
         <Button>,Art/Interface/Buttons/Buildings/Palace.dds,Art/Interface/Buttons/Buildings_Atlas.dds,6,5</Button>
      </BuildingArtInfo>

but no art files are in this directory:

path = Art(folder)/Structures(folder)/Buildings(folder)/firehouse(folder)/firehouse.nif file

but you need to make sure the path starts with either your mod or the custom assets folder...

if you do have those nif/dds/etc files please posted them too so I can try to figure them out... (note I am not a nif editor so if the problem is that ... I cant help you)


If you have no idea what Im talking about... please specify :p

basically these xml files point to the correct art folder and files (as far as I can tell... I cant test it without the correct art files) but you may not have art files in the correct folder or have them at all where civ4 game generates a 'pink' texture because of missing art files...

Im usually a xml editor/modder but I do know about simple dds textures and how to get existing unit/building animations to work in a mod... I also can make buttons using images and a dds converter

(basically Im a good xml proof reader :lol: )

But I can not create animation models (like buildings and units) but I can edit existing textures for colors/shadows/etc

therefore if you have a model problem I wont be able to help :blush:

however if you have an xml issue or how to implement unit/model into your mod I can probably help...

I cant do python or sdk so AI issues are too advanced for my limited modding knowledge... :crazyeye:


here are some references that may help you out (it did for me):

http://forums.civfanatics.com/showthread.php?t=148507

excellent tutorial on how to make civs and civ leaders

it also explains how to make unit/leader/flag buttons and static images for leaderheads

it explains basics on how to make an Unique Unit

It explained alot of the basics for me


http://forums.civfanatics.com/showthread.php?t=156760

http://forums.civfanatics.com/showthread.php?t=151450

these to go in depth about making buttons and other related issues...

they re a little more complex and confusing at times... but if you read most of the thread you have answers...


http://forums.civfanatics.com/showthread.php?t=141621

this one explains how to create a new technology... it is missing some stuff but you get the foundations...

http://forums.civfanatics.com/showthread.php?t=168876

this explains custom sounds for units/civs/buildings/wonders/etc

simple and if you follow the format its real simple


http://forums.civfanatics.com/showthread.php?t=153584

this is a little more advanced but it covers bonus resources and improvements


my favorite and most useful reference is this:

http://civ4wiki.com/wiki/index.php/Xml_files

although its not complete... it explains alot of the taglines for xml info

there was another website that explain more xml taglines but that site no longer works :sad: It was a shame too since it covered alot of stuff that above link didnt

there are more tuts out there... but that's just to get you start :p

please not most of this is NOT for Warlords

however I think there were only a few different taglines added to the units and buildings xml files in warlords so most of the tuts should be helpful...
unfortunately no one has made an XML tut for warlords expansion (but I havent checked it a while so that may not be the case.... you hae to check :rolleyes: )

as for your mod sounds interesting and it will take some major modifications to make it work... but if you are enterprising you can keep most of it to XML editing... which is the easiest since it is mostly a 'database' for reference in the game

Note: I have used all of the tuts and created a mod that incoporates it but added some other stuff not directly mentioned in the tuts above... like modern missionaries/unique units for specific world/national wonders etc...

see learn more about it see my sig for links

unfortunately I have not upgraded ot to warlords but since not alot of peeps were interested with my mod... I dont have the motivation to continue the work (although I have a new update for the vanilla version ...)

anyway I used some fancy foot work and creativity with XML to create some interesting units/buildings... XML is the easiest to work with and will work better in Multiplayer...

I have added alot of custom buttons/images/ and building models (I got from this database with permission from creators) and changed the textures to suit my needs

I have added special city specialists... and images to match them... so although I cant create new images and models... I can sure edit and implement existing ones...

anyway I digress..



anyway I hope that helps ;)
 
Thank for the reply again reene, sorry I've been really busy with other school work i wasn't able to get back to this right away. our deadline is quickly approaching and i'm having tons of trouble

here are those nif and dds files you asked for.

http://forums.civfanatics.com/uploads/111581/hospitalFireHouse.zip

The fire house shows up in the city with a texture

The hospital shows up in the city with a weird purple texure

Also, I re-uploaded the 4 xml files used to add new buildings, those are here:

http://forums.civfanatics.com/uploads/111581/fourBuildingXML.zip

I re-uploaded them because I added three more buildings. And for some reason, when I build any of the three new buildings, namely the bus stop, university, and white castle, the game crashes, but the other 5 build fine (minus the texture issues i have been having). I believe the problem lies in the CIV4CityLSystem.xml because when I commented the entries for the new buildings out of that file, the game didn't crash. I'm still really confused about how that file works, I mean all of the other buildings I added show up in game, except the theater but that doesn't crash the game. It's all really confusing.

Anyway, in the 2 buildinginfo files from the XML/Buildings folder and the artdefines_buildings.xml file, the only vanilla building we left in was the palace because the game didn't like it when we took that one out. But for the CIV4CityLSystem, we left all of the references to other buildings in there because taking them out caused massive problems. Anyway, the easiest way to find my entries in that file is to just do a search for "Jason Pecho" in your xml editor. Anything within those comments, I added.

basically these xml files point to the correct art folder and files (as far as I can tell... I cant test it without the correct art files) but you may not have art files in the correct folder or have them at all where civ4 game generates a 'pink' texture because of missing art files...

I made sure the file paths were right. It works for the firehouse, but like I said, the textures don't show up for the hospital, school, and church, and the theater doesn't even show up at all. Every folder referenced in the xml has a nif and dds file like the ones I posted.

Any help would be greatly appreciated and if anyone needs more information in order to help, I'll be happy to provide that. Thanks.
 
Back
Top Bottom