Civ4ArtDefines Bonus: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(1st entry of data, copied from "civ4.wikidot.com".)
 
m (Reverted edits by 144.124.32.130 (Talk) to last version by Ginger Ale)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Summary =
The '''Civ4ArtDefines_Bonus''' file declares all the art files, and art properties, for each of the resources.
This file declares all the art files, and art properties for the Resources.


All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.


= Single Line Tags =
 
=== Text Tags ===
== Tags ==
{| border="1" cellpadding="2" cellspacing="0"
=== Headers ===
 
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Type
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Label that is used throughout all other XML files
! style="background:#efefef;" | Description
|-
|-
| NIF || Location of .nif file
! BonusArtInfo
| Main bracket for each entry.
|-
|-
| KFM || Location of .kfm file
! Type
|-
| Label that is used throughout all other XML files.
| Button || Icon, generally: ,path to icon,path to Atlas,x-coordinate,y-coordinate
|}
|}




=== Floating Point Tags ===
=== Art ===
{| border="1" cellpadding="2" cellspacing="0"
 
These tags are directly related to the rendering of art for the entry.
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | fScale
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Scale on Map
! style="background:#efefef;" | Description
|-
|-
| fInterfaceScale || Multiply by fScale to get scale in Civilopedia
! fScale
| Scale on Map.
|-
! fInterfaceScale
| Multiply by fScale to get scale in Civilopedia.
|-
! NIF
| Location of .nif file.
|-
! KFM
| Location of .kfm file.
|-
! Button
| Icon, generally: ,path to icon,path to Atlas,x-coordinate,y-coordinate.
|}
|}




= Example =
== Example ==
    <BonusArtInfo>
 
        <Type>ART_DEF_BONUS_ALUMINUM</Type>
In the following example of code, please note that there is a specific order of all of the tags.  You ''must'' list the tags in this order for the game to properly interpret your file.
        <fScale>1.0</fScale>
 
        <fInterfaceScale>1.0</fInterfaceScale>
<BonusArtInfo>
        <NIF>Art/Terrain/Resources/Aluminum/Aluminum.nif</NIF>
    <Type>ART_DEF_BONUS_ALUMINUM</Type>
        <KFM>Art/Terrain/Resources/Aluminum/Aluminum.kfm</KFM>
    <fScale>1.0</fScale>
        <Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button>
    <fInterfaceScale>1.0</fInterfaceScale>
    </BonusArtInfo>
    <NIF>Art/Terrain/Resources/Aluminum/Aluminum.nif</NIF>
    <KFM>Art/Terrain/Resources/Aluminum/Aluminum.kfm</KFM>
    <Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button>
</BonusArtInfo>
 
{{Civ4_XML_Files}}

Latest revision as of 20:57, 8 April 2010

The Civ4ArtDefines_Bonus file declares all the art files, and art properties, for each of the resources.

All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.


Tags

Headers

These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.

Tag Name Description
BonusArtInfo Main bracket for each entry.
Type Label that is used throughout all other XML files.


Art

These tags are directly related to the rendering of art for the entry.

Tag Name Description
fScale Scale on Map.
fInterfaceScale Multiply by fScale to get scale in Civilopedia.
NIF Location of .nif file.
KFM Location of .kfm file.
Button Icon, generally: ,path to icon,path to Atlas,x-coordinate,y-coordinate.


Example

In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.

<BonusArtInfo>
   <Type>ART_DEF_BONUS_ALUMINUM</Type>
   <fScale>1.0</fScale>
   <fInterfaceScale>1.0</fInterfaceScale>
   <NIF>Art/Terrain/Resources/Aluminum/Aluminum.nif</NIF>
   <KFM>Art/Terrain/Resources/Aluminum/Aluminum.kfm</KFM>
   <Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button>
</BonusArtInfo>


GlobalDefinesGlobalDefinesAltGlobalTypesPythonCallbackDefines

Art:

Civ4ArtDefines_BonusCiv4ArtDefines_BuildingCiv4ArtDefines_CivilizationCiv4ArtDefines_FeatureCiv4ArtDefines_ImprovementCiv4ArtDefines_InterfaceCiv4ArtDefines_LeaderheadCiv4ArtDefines_MiscCiv4ArtDefines_MovieCiv4ArtDefines_TerrainCiv4ArtDefines_UnitCiv4MainMenusCiv4RiverModelInfosCiv4RouteModelInfos

Audio; Buildings:

Audio2DScriptsAudio3DScriptsAudioDefinesAudioSoundscapeScriptsCiv4BuildingClassInfosCiv4BuildingInfosCiv4CityLSystemCiv4PlotLSystemCiv4SpecialBuildingInfos

BasicInfos:

Civ4AttitudeInfosCiv4BasicInfosCiv4CalendarInfosCiv4CityTabInfosCiv4DenialInfosCiv4DomainInfosCiv4InvisibleInfosCiv4MemoryInfosCiv4MonthInfosCiv4NewConceptInfosCiv4SeasonInfosCiv4UnitAIInfosCiv4UnitCombatInfos

Civilizations; Events:

Civ4CivilizationInfosCiv4LeaderHeadInfosCiv4TraitInfosCiv4UnitArtStyleTypeInfosCiv4EventInfosCiv4EventTriggerInfos

GameInfo:

Civ4CivicInfosCiv4CivicOptionInfosCiv4ClimateInfoCiv4CommerceInfoCiv4CorporationInfoCiv4CultureLevelInfoCiv4CursorInfoCiv4DiplomacyInfosCiv4EmphasizeInfosCiv4EspionageMissionInfoCiv4EraInfosCiv4ForceControlInfosCiv4GameOptionInfosCiv4GameSpeedInfoCiv4GoodyInfoCiv4GraphicOptionInfosCiv4HandicapInfoCiv4HintsCiv4MPOptionInfosCiv4PlayerOptionInfosCiv4ProcessInfoCiv4ReligionInfoCiv4SeaLevelInfoCiv4SpecialistInfosCiv4TurnTimerInfoCiv4UpKeepInfoCiv4VictoryInfoCiv4VoteInfoCiv4VoteSourceInfosCiv4WorldInfo

Interface:

Civ4AdvisorInfosCiv4CameraInfosCiv4ColorValsCiv4InterfaceModeInfosCiv4PlayerColorInfosCiv4SlideShowInfosCiv4SlideShowRandomInfosCiv4SpaceShipInfosCiv4ThroneRoomeInfosCiv4ThroneRoomCameraInfosCiv4ThroneRoomStyleInfosCiv4WorldPickerInfos

Misc:

Civ4AttachableInfosCiv4CameraOverlayInfosCiv4DetailManagerCiv4EffectInfosCiv4QuestInfosCiv4RiverInfosCiv4RouteInfosCiv4TerrainPlainInfosCiv4TutorialInfosCiv4WaterPlaneInfos

Technologies:

Civ4TechInfos

Terrain:

Civ4BonusClassInfosCiv4BonusInfosCiv4FeatureInfosCiv4ImprovementInfosCiv4SymbolMeshPathsCiv4TerrainInfosCiv4TerrainSettingsCiv4YieldInfos

Units:

Civ4AnimationInfosCiv4AnimationPathInfosCiv4AutomateInfosCiv4BuildInfosCiv4CommandInfosCiv4ControlInfosCiv4EntityEventInfosCiv4FormationInfosCiv4MissionInfosCiv4PromotionInfosCiv4SpecialUnitInfosCiv4UnitClassInfosCiv4UnitInfos

Schemas:

Civ4GlobalDefinesSchemaCiv4GlobalTypesSchemaCiv4ArtDefinesSchemaAudioDefinesSchemaAudioScriptSchemaCiv4BasicInfoSchemaCiv4BuildingSchemaCiv4LSystemSchemaCiv4CivilizationSchemaCiv4EventSchemaCiv4GameInfoSchemaCiv4InterfaceSchemaCiv4MiscSchemaCiv4TutorialSchemaCiv4DetailManagerSchemaCiv4TechnologiesSchemaCiv4TerrainSchemaCiv4FormationSchemaCiv4UnitSchema

Italics: Beyond the Sword only