Difference between revisions of "TechObjectDatabase.xml"

From BotF2-Wiki
Jump to: navigation, search
m (Types)
(CSV2XML)
 
(6 intermediate revisions by one user not shown)
Line 13: Line 13:
 
*mark up to begin of file but let first line untouched (so <pro...until </pro... is marked -> delete it
 
*mark up to begin of file but let first line untouched (so <pro...until </pro... is marked -> delete it
 
*at least open with Excel
 
*at least open with Excel
 +
 +
== Adding new items ==
 +
 +
make always sure you have the same keys in
 +
*[[TechObjectDatabase.xml]]
 +
*[[TextDatabase.xml]]
 +
*[[TechTrees.xml]]
 +
 +
*don't forget the image file
  
 
== Buildings ==
 
== Buildings ==
Line 72: Line 81:
 
*[[System#PlanetaryShielding|PlanetaryShielding]] + PercentPlanetaryShielding + ShieldPerEnergyTech:    [http://botf2.square7.ch/b2_db/BuildingsPlanetaryShielding.php Database-List]
 
*[[System#PlanetaryShielding|PlanetaryShielding]] + PercentPlanetaryShielding + ShieldPerEnergyTech:    [http://botf2.square7.ch/b2_db/BuildingsPlanetaryShielding.php Database-List]
 
*[[Raid|Raiding]] + PercentRaiding:    [http://botf2.square7.ch/b2_db/BuildingsRaiding.php Database-List]
 
*[[Raid|Raiding]] + PercentRaiding:    [http://botf2.square7.ch/b2_db/BuildingsRaiding.php Database-List]
*[[Scan|ScanRange]]:    [http://botf2.square7.ch/b2_db/BuildingsScanRange.php Database-List]
+
*[[Scan|ScanRange]]:    [http://botf2.square7.ch/b2_db/BuildingsScanRange.php Database-List] and NEW: +PercentScanRange (see https://bitbucket.org/mstrobel/supremacy/issue/15/new-bonus-scanrange )
*[[Trade Route|TradeRoutes]] + PercentTradeIncome:    [http://botf2.square7.ch/b2_db/BuildingsTradeRoutes.php Database-List]
+
*[[Trade Route|TradeRoutes]] + [[Trade Route#PercentTradeIncome|PercentTradeIncome]]:    [http://botf2.square7.ch/b2_db/BuildingsTradeRoutes.php Database-List]
  
Research:
+
[[Research]]: [http://botf2.square7.ch/b2_db/BuildingsResearch.php Database-List]
*[[Research]]:   [http://botf2.square7.ch/b2_db/BuildingsResearch.php Database-List]
+
*Research  
*[[Research]] + PercentResearchEmpireWide:   [http://botf2.square7.ch/b2_db/BuildingsResearch.php Database-List]
+
*PercentResearchEmpireWide:
 
*PercentBioTechResearch
 
*PercentBioTechResearch
 
*PercentComputerResearch
 
*PercentComputerResearch
Line 85: Line 94:
 
*PercentWeaponsResearch
 
*PercentWeaponsResearch
  
Intelligence:
+
[[Intel|Intelligence]]: [http://botf2.square7.ch/b2_db/BuildingsIntelligence.php Database-List]
*[[Intel|Intelligence]] + following:   [http://botf2.square7.ch/b2_db/BuildingsIntelligence.php Database-List]
+
*Intelligence
 
*PercentIntelligence
 
*PercentIntelligence
 
*PercentGeneralIntelligence
 
*PercentGeneralIntelligence
 
*PercentTotalIntelligence
 
*PercentTotalIntelligence
  
Security:
+
[[Security]]: [http://botf2.square7.ch/b2_db/BuildingsSecurity.php Database-List]
 
*PercentEconomicSecurity
 
*PercentEconomicSecurity
 
*PercentInternalSecurity
 
*PercentInternalSecurity
  
Sabotage:
+
[[Sabotage]]:   [http://botf2.square7.ch/b2_db/BuildingsSabotage.php Database-List]
 
*PercentSabotage
 
*PercentSabotage
 
*PercentEconomicSabotage
 
*PercentEconomicSabotage
 
*PercentMilitarySabotage
 
*PercentMilitarySabotage
 
*PercentPoliticalSabotage
 
*PercentPoliticalSabotage
 +
 +
== CSV2XML ==
 +
 +
We're trying to create the TechObjectDatabase.xml out of a Google Sheet.... this are the steps
 +
 +
* activate ADD-On for XML-Export
 +
* doing the export by ADDON > EXPORT and save it to c:\_B2 (or do the next three steps)
 +
** open the file
 +
** on top: Open with (you might use XML EDITEY)
 +
** CopyPaste the whole stuff into C:\_B2\Balance - Export_New.xml
 +
* run special Visual Studio app for replacements
 +
* delete head line of output file !!!
 +
 +
  
  

Latest revision as of 15:56, 4 August 2018

Folder: \Data

bitbucket: https://bitbucket.org/mstrobel/BotF2/raw/4bd3c04bb439e29cb543e1f020819b8df2e70bf4/Mainline/BotF2Client/Resources/Data/TechObjectDatabase.xml

see also Database

How to extract for example Ships:

  • copy file to Tech_date.xml
  • edit with Notepad++
  • search for </productionfacilities> -> that's the end of buildings
  • mark up to begin of file but let first line untouched (so <pro...until </pro... is marked -> delete it
  • at least open with Excel

Adding new items

make always sure you have the same keys in

  • don't forget the image file

Buildings

data fields:

  • Key
  • BioTech
  • Construction (Tech)
  • Energy (Tech)
  • Computers (Tech)
  • Weapons (Tech)
  • Propulsion (Tech)
  • BuildCost
  • IsUniversallyAvailable
    • TRUE (German: "WAHR")
    • FALSE (German: "FALSCH")
  • EnergyCost
  • Restriction
  • Type
  • Amount
  • ObsoletedItem
  • UpgradeOption
  • Prerequisite
  • BuildCondition

Types

Buildings by output:


more Buildings by output (alphabetically):

Research: Database-List

  • Research
  • PercentResearchEmpireWide:
  • PercentBioTechResearch
  • PercentComputerResearch
  • PercentConstructionResearch
  • PercentEnergyResearch
  • PercentPropulsionResearch
  • PercentWeaponsResearch

Intelligence: Database-List

  • Intelligence
  • PercentIntelligence
  • PercentGeneralIntelligence
  • PercentTotalIntelligence

Security: Database-List

  • PercentEconomicSecurity
  • PercentInternalSecurity

Sabotage: Database-List

  • PercentSabotage
  • PercentEconomicSabotage
  • PercentMilitarySabotage
  • PercentPoliticalSabotage

CSV2XML

We're trying to create the TechObjectDatabase.xml out of a Google Sheet.... this are the steps

  • activate ADD-On for XML-Export
  • doing the export by ADDON > EXPORT and save it to c:\_B2 (or do the next three steps)
    • open the file
    • on top: Open with (you might use XML EDITEY)
    • CopyPaste the whole stuff into C:\_B2\Balance - Export_New.xml
  • run special Visual Studio app for replacements
  • delete head line of output file !!!