Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Database Info for Modding
#1
I've extracted the database records as text files for anyone interested in making gameplay mods to the database. This type of mod can already be made with BepInEx dll mods, but there will be more people interested in modding soon when the official tools come out, so I thought people may want to take a look and get an idea of what they would like to change.

Game Database Text

For those that want to generate this themselves for patch comparisons, the source and compiled BepInEx plugin that generates this is attached below. It will generate the files in your Documents/Humankind Mod Tool/Database folder.

.zip   DB_Dumper.zip (Size: 35.53 KB / Downloads: 175)

Example:
 
Code:
{
  "$type": "Amplitude.Mercury.Data.Simulation.SettlementImprovementDefinition, Amplitude.Mercury.Data",
  "DescriptorReferences": {
    "$type": "Amplitude.Framework.DatatableElementReference[], Amplitude.Framework",
    "$values": [
      "Effect_Infrastructure_Food_Family00_01"
    ]
  },
  "SynergyReferences": {
    "$type": "Amplitude.Framework.DatatableElementReference[], Amplitude.Framework",
    "$values": []
  },
  "CostModifierReferences": {
    "$type": "Amplitude.Framework.DatatableElementReference[], Amplitude.Framework",
    "$values": []
  },
  "IsObsolete": true,
  "DLCPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.DownloadableContentPrerequisite, Amplitude.Mercury.Data",
    "DownloadableContent": "None"
  },
  "Category": "Food",
  "SerializableFamily": "InfrastructureFamily_Food_Family00",
  "Level": 0,
  "Unicity": "OnePerSettlement",
  "ConstructibleVisualAffinity": "",
  "CanBeBoughtOut": true,
  "CanBeCanceled": true,
  "StartWhenQueued": false,
  "CanBeBoughtOutWithPopulation": true,
  "ProductionCostDefinition": {
    "$type": "Amplitude.Mercury.Data.Simulation.Costs.ProductionCostDefinition, Amplitude.Mercury.Data",
    "Type": "Production",
    "Constant": -1,
    "RpnDefinitionReference": "ProductionCost_Infrastructure_Starting"
  },
  "MoneyInstantCostDefinition": {
    "$type": "Amplitude.Mercury.Data.Simulation.Costs.MoneyInstantCostDefinition, Amplitude.Mercury.Data",
    "Constant": 0,
    "RpnDefinitionReference": ""
  },
  "InfluenceInstantCostDefinition": {
    "$type": "Amplitude.Mercury.Data.Simulation.Costs.InfluenceInstantCostDefinition, Amplitude.Mercury.Data",
    "Constant": 0,
    "RpnDefinitionReference": ""
  },
  "PopulationInstantCostDefinition": {
    "$type": "Amplitude.Mercury.Data.Simulation.Costs.PopulationInstantCostDefinition, Amplitude.Mercury.Data",
    "Constant": 0
  },
  "ResourceAccessPrerequisites": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.ResourceAccessPrerequisite[], Amplitude.Mercury.Data",
    "$values": []
  },
  "MinimalPopulationPrerequisite": 0,
  "ResourceSupremacyPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.ResourceType[], Amplitude.Mercury.Data",
    "$values": []
  },
  "EraPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.EraPrerequisite, Amplitude.Mercury.Data",
    "Operator": "GreaterOrEqual",
    "EraReference": "Era1"
  },
  "FactionPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.FactionPrerequisite, Amplitude.Mercury.Data",
    "Operator": "Any"
  },
  "SettlementStatusPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.SettlementStatusPrerequisite, Amplitude.Mercury.Data",
    "CampConstraint": "NotAvailable",
    "CityConstraint": "Available"
  },
  "ReligionAffinityPrerequisite": "",
  "SettlementPropertyPrerequisites": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.SettlementPropertyPrerequisite[], Amplitude.Mercury.Data",
    "$values": []
  },
  "SettlementStabilityPrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.SettlementStabilityPrerequisite, Amplitude.Mercury.Data",
    "Operator": "Any",
    "PublicOrderEffects": {
      "$type": "Amplitude.Framework.DatatableElementReference[], Amplitude.Framework",
      "$values": []
    }
  },
  "DistrictCountPrerequisites": {
    "$type": "Amplitude.Mercury.Data.Simulation.DistrictCountPrerequisite[], Amplitude.Mercury.Data",
    "$values": []
  },
  "ActionTypePrerequisite": {
    "$type": "Amplitude.Mercury.Data.Simulation.Prerequisites.ActionTypePrerequisite, Amplitude.Mercury.Data",
    "Operator": "None",
    "ActionType": "AttachCamp"
  },
  "GainValues": {
    "$type": "Amplitude.Mercury.Data.AI.Gain[], Amplitude.Mercury.Data",
    "$values": [
      {
        "$type": "Amplitude.Mercury.Data.AI.Gain, Amplitude.Mercury.Data",
        "Type": "Food",
        "Importance": "Normal"
      }
    ]
  },
  "BaseSynergyDistrict": false,
  "SynergyRiver": 0,
  "TargetSynergyDistrictType": "None",
  "Key": 78,
  "Hidden": false,
  "Family": "InfrastructureFamily_Food_Family00",
  "Name": "Infrastructure_Food_Family00_01"
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)