Graphics/DDS question

Depx

Chieftain
Joined
Dec 27, 2005
Messages
29
Im working on a mod that has 3 new religions. With my limited graphics knowledge I had set all the religion buildings to one of the other 7 religion's buildings, but 12 buildings all looking the same really wasnt that great. So I set all the new buildings to their religion's icon dds files that I made. Everything looks fine, they show up and all, BUT when I click to build one of these new buildings during the game, the game crashes. I assume it has to do with the button greying out when you have selected a unit/building to build? Anyone know how to fix this? I really know very little about the graphics heh :( .
 
thats because each building has several things they tie to like units.
Button - Thing you click on to build it, can be any valid DDS file though you might want to use an existing button for size reference.
NIF - The model used for the building when it apperes on the map (can't add new ones so use an existing temples)
KF - same as NIF
DDS Texture - has to keep the same naming scheme with the NIF and KF otherwise it won't load it.

Also note if you change the ART_DEF... pointer in the BuildingInfos xml file (its just above the button pointer but i can't remember the exact line) you do hae to set up somewhere to point it to in the ARTDefines_Buildings XML file (sp?).
Best Option:
Duplicate a Building, change what you want on it, get DXTbmp to edit a button for it (what i use anyway, load existing button and save it as something else), change button pointer to new button DDS. Do not change the ART_DEF... section. and it should work :P

If not let me know and i will look more when i get home tonight.
 
I'm not sure I'm following all of this. All I want to change is the button you click when you build it in your city, so I don't have 12 buddihst temple buttons. :sad: I have finally gotten it to not crash, but its now showing just a pink box, this may have something to do with you saying the naming scheme needing to be the same? Pretty much since these are new religions Im stealing the nif from another building and such so I cant use the same name for the button dds. Eh I may give up and just release it the completed mods section asking for someone to fix all that for me. :undecide:
 
Depx said:
I'm not sure I'm following all of this. All I want to change is the button you click when you build it in your city, so I don't have 12 buddihst temple buttons. :sad: I have finally gotten it to not crash, but its now showing just a pink box, this may have something to do with you saying the naming scheme needing to be the same? Pretty much since these are new religions Im stealing the nif from another building and such so I cant use the same name for the button dds. Eh I may give up and just release it the completed mods section asking for someone to fix all that for me. :undecide:

The button can have a new name, so can the folder with the "new" building art (in fact, they have to use a new name). But the contents of the folder - the NIF/KF files - have to match the original.

You then have to set up the new buildings with names and tell the program where to find them. Look ArtDefines_Building and find the existing religious buildings to see how they are named.
 
Back
Top Bottom