Logo Platform
logo amplifiers simplified

Game Ignoring Modded WeightTableDefinitions.xml

Reply
Copied to clipboard!
7 years ago
Feb 15, 2018, 5:07:43 PM

I'm stuck.


According to the diagnostics report, the game is loading a modded WeightTableDefinitions.xml, but is completely ignoring it in favor of the default one.

No other WeightTableDefinitions.xml load after the modded one.


I initially though maybe there was a problem with the file, but I'm now getting no errors, and I even tried directly copying the original (and then changed some of the values so I could tell which was being used.)


In this case, I've created a single new test anomaly and gave it a large weight to be generated and 100% visibility, and it isn't appearing.

When I add it directly to the game files, it works fine. So I don't think there is a problem with the anomaly data that would cause it to be ignored.


Additionaly, I tried zeroing most of the other default anomaly weights, yet they still appear, confirming that the modded file isn't being used.

Any advice?








Updated 7 years ago.
0Send private message
7 years ago
Feb 16, 2018, 9:00:13 AM

Hey Tychonoir,


If you want to add a new anomaly, you'll need to add it to the list of the AnomalyDefinitions, but also to the list of PlanetaryAnomalyDefinitions:

<DatabasePlugin DataType="Generator.Definitions.PlanetaryAnomalyDefinition, Assembly-CSharp-firstpass">
      <FilePath>Public/Simulation/AnomalyDefinitions.xml</FilePath>
      <FilePath>Public/Simulation/AnomalyDefinitions[*].xml</FilePath>
</DatabasePlugin>

This is required by our code architecture, because AnomalyDefinitions are used in game and have "fake" GeneratorInfo, while PlanetAnomalyDefinitions actually use the values for generation purposes. However they are defined in the exact same way in the same file, so it's not needed to duplicate the XML entries.

0Send private message
7 years ago
Feb 16, 2018, 1:49:25 PM

Wait. You're saying there is a hidden data table that doesn't appear in any of the xml files??

Yowsa. No wonder I'm tearing out my hair over here!

This really needs to be documented somewhere... It's not evel listed in DataTypes.txt

Thanks for the help!

(I should point out that your example didn't work, however. I had to do it like this:)

<DatabasePlugin DataType="AnomalyDefinition, Assembly-CSharp">
           <FilePath>Simulation/AnomalyDefinitions.xml</FilePath>
 </DatabasePlugin>
           
<DatabasePlugin DataType="Generator.Definitions.PlanetaryAnomalyDefinition, Assembly-CSharp-firstpass">
           <FilePath>Simulation/AnomalyDefinitions.xml</FilePath>
</DatabasePlugin>

0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message