Civilizations

From BotF2-Wiki
Revision as of 17:56, 11 June 2016 by Reginald (talk | contribs) (How it works)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Intro

Civilizations are defined by \Resources\Data\Civilizations.xml.

bitbucket: https://bitbucket.org/mstrobel/BotF2/src/4bd3c04bb439e29cb543e1f020819b8df2e70bf4/Mainline/BotF2Client/Resources/Data/Civilizations.xml?at=default (24.09.2013)


At \Resources\Images\ only the five Major Races images are stored, which can be seen at Main Page.

File Structure

  • <Civilization Key="FEDERATION">
  • <Race>HUMANS</Race>
  • <ShortName>Federation</ShortName>
  • <LongName>United Federation of Planets</LongName>
  • <DiplomacyReport>The United...</DiplomacyReport>
  • <HomeSystemName>Sol</HomeSystemName>
  • <Color>Blue</Color>
  • <HomeQuadrant>Alpha</HomeQuadrant>
  • <CivilizationType>Empire</CivilizationType>
  • <TechCurve>TechCurve6</TechCurve>
  • </Civilization>

More

SupremacyCore\Entities\Civilization.cs


   public enum CivilizationType : byte
       MinorPower = 0,
       DevelopingPower,
       ExpandingPower,
       Empire
   public enum CivTraits : ushort
       Aggressive = 0x0001,
       Charismatic = 0x0002,
       Creative = 0x0004,
       Expansive = 0x0008,
       Financial = 0x0010,
       Imperialist = 0x0020,
       Industrious = 0x0040,
       Organized = 0x0080,
       Philosophical = 0x0100,
       Protective = 0x0200,
       Spiritual = 0x0400


How it works

  • Civilization: Borg
  • Race: Borg
  • Shortname: Borg
  • LongName: Borg Collective
  • HomeSystem: Unimatrix 1
  • StarSystem:


  • Civilizations.xml (basics), defines Civilization Key and Race
  • HomeSystems.xml Defines HomeSystem and Starting levels
  • Races.xml
  • TechTrees.xml
  • \Tables\MoraleTables.txt
  • \Tables\ResourcesTables.txt


Images:

  • \Insignias
  • \Civilization
  • \Races
  • \more ?


Saved games: After changing a complete Empire/UI race saved games for this empire are not compatible, cause the saved game is trying to load the -now deleted- UI stuff.


ONLY FOR CODERS: \Mainline (don't forget to CLEAN Solution)

  • Main Themes
  • another Themes (ShipyardDock)
  • hard coded images...search Entire Solution for UI/BorgCollective (e.g. popup.png)