Master of Tactics
 
Modding Master of Tactics


Open the Settings window and click the 'Export Technologies' button. This will export the games technologies (and technology tree) into a folder called updates. The files will be plain text (XML) and can be eddited using any text editor. Modifying technologies can break the game and invalidate save files. The following files are editable and will be loaded next time you start the game (changes do not take effect until you restart the game).


  • tech_bios.xml - Defines biotechnologies e.g. Terraforming
  • tech_computers.xml - Defines computer technologies e.g. Battle Computers for crafts
  • tech_engines.xml - Defines engine technologies e.g Craft Engines
  • tech_factories.xml - Defines planetary infrastructure technologies e.g Factories
  • tech_hulls.xml - Defines Craft Hull technologies e.g Battle Station
  • tech_humanities.xml - Defines social science technologies e.g Trade Routes
  • tech_labs.xml - Defines laboratory technologies e.g Salvage Analyser
  • tech_misc.xml - Defines technologies that defy classification e.g Mine Field
  • tech_modules.xml - Defines module technologies that enhance Battle Stations and Space Stations e.g Habitat Module
  • tech_scanners.xml - Defines scanner technologies e.g Battle Scanner
  • tech_shields.xml - Defines shield technologies e.g Energy Craft Shields
  • tech_specials.xml - Defines different craft technologies that are not easily classified e.g Energy Amplifier
  • tech_theories.xml - Defines theoretical technologies that so not provide benefits themselves
  • tech_weapons.xml - Defines craft weapon technologies e.g Missiles
  • tech_wonders.xml - Defines wonder technologies e.g Empire Capitol
  • tech_tree.xml - Defines the dependencies between technologies


  • Editing the XML


    XML is plain text. Any text editor can be used including notebook though I would recommend something better like text pad. Here is the definition of the weapon Mass Driver 1.


    <weapon>
      <name>Mass Driver 1</name>
      <description>It produces damage 1 and has range 250</description>
      <image>images/backgrounds/technology_weapon_mass.jpg</image>
      <damage>1</damage>
      <range>200</range>
      <degredation>0</degredation>
      <variance>0.2</variance>
      <space>3</space>
      <max-qty-on-craft>-1</max-qty-on-craft>
      <max-qty-on-planet>0</max-qty-on-planet>
      <cost-to-build>10</cost-to-build>
      <cost-to-research>10</cost-to-research>
      <maintenance-cost>1</maintenance-cost>
      <group>Projectile</group>
    </weapon>


    Change the damage from 1 two 5 as shown below and then restart the game. Open the Technology Window and you will see Mass Driver 1 now inflicts damage 5.


    <weapon>
      <name>Mass Driver 1</name>
      <description>It produces damage 1 and has range 250</description>
      <image>images/backgrounds/technology_weapon_mass.jpg</image>
      <damage>5</damage>
      <range>200</range>
      <degredation>0</degredation>
      <variance>0.2</variance>
      <space>3</space>
      <max-qty-on-craft>-1</max-qty-on-craft>
      <max-qty-on-planet>0</max-qty-on-planet>
      <cost-to-build>10</cost-to-build>
      <cost-to-research>10</cost-to-research>
      <maintenance-cost>1</maintenance-cost>
      <group>Projectile</group>
    </weapon>


    The XSD Files


    XSD files describe valid content of a XML file. Examing these XSD files will give you a better idea of what will and will not work when you are modding the game.



    Things to Remember


  • If you delete, rename or create a technology you must also remove/rename/add its definition in the Technolgy Tree

  • If you delete or rename a technology referenced in a saved game file, that saved game file will become invalid

  • Not all values are permitted in each field. You will find sometimes you will need to understand what a value means before you can edit it safely. Try reading XSD file for help.



  • Download Technology Definitions