Skip to content

Mod Compatibility (Tiered Tech Blocks, perhaps others) #3

@EngineOfDarkness

Description

@EngineOfDarkness

I use your mod mod in Combination with "Tiered Tech Blocks": https://steamcommunity.com/sharedfiles/filedetails/?id=1682499145

Your mod is loaded after this mod.

However while the Config for Vanilla Blocks is modified, the ones for Tiered Tech Blocks are not.

I'd assume this is because "LoadData" in https://github.com/keyspace/NoMoreFreeEnergy/blob/master/Data/Scripts/NoMoreFreeEnergy/Session.cs#L16 only knows about the hardcoded Vanilla Block Names

Perhaps, it is possible to load all Object instances that use or extend (not sure what the correct approach here would be)

  • MyObjectBuilder_BatteryBlock
  • MyObjectBuilder_HydrogenEngine
  • MyObjectBuilder_OxygenGenerator

And then iterate over each of the three collections and apply the fitting rebalance function to each item within the currently iterated collection.

This would (given that the mods do not do something weird) also cause this mod to work for all other mods that use or extend these classes I presume.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mod interopSomething not 100% when using other mods

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions