![]()
Experience Mindustry, in a rather evil way
Extremity, by default, builds it's unitdexes automatically on game start.
However, if your mod doesn't use the default methods of upgrading units, Extremity can fail to generate the entries.
In such case:
- Open the game with Extremity enabled.
- Open the Unitdex Editor and clear the generated Unitdex.
- Manually create the Unitdex containing missing entries of units from your mod.
- Export the Unitdex to clipboard.
That should give you the packed Unitdex for your mod;
Paste the following code into your mod's main class and replace with the exported Unitdex
var self = Vars.mods.getMod(getClass());
if(self != null && self.meta != null)
Core.settings.put("extremity-unitdex-" + self.meta.internalName, "<unitdex string>")val self = Vars.mods.getMod(javaClass)
if (self != null && self.meta != null)
Core.settings.put("extremity-unitdex-" + self.meta.internalName, "<unitdex string>")Pretty much the same as the other two, however you have to manually enter your mod's internal name
Core.settings.put("extremity-unitdex-<mod's internal name>", "<unitdex string>")