// Management · RimWorld Mod
Misstall Series - CE Mega Patch
CE PATCHES Converts weapons to CE ranged/melee, building-turrets to Building_TurretGunCE, adds CE ammo sets with crafting recipes, and fixes compatibility issues.
CE PATCHES
Converts weapons to CE ranged/melee, building-turrets to Building_TurretGunCE, adds CE ammo sets with crafting recipes, and fixes compatibility issues.
What it patches:
- Aliaile Race — 66 guns (bolt-action, assault, LMG, chain-shotgun, launchers, etc.), melee weapons, tactical/steam/artillery turrets (ATG/MTG/Mortar + MEC variants), race def fixes. The SilentRifle fires tranquilizer darts that inject anesthetic. Aliaile Mid/Heavy mech frames receive 0.25 heat armor.
- AR.SecurityArsenal — MG turrets (08MG/62MG/M2), 64MAT missile turret, 57mm NV rocket artillery turret, 60mm mortar turrets, including Camo/Old variants.
- Armory — ranged weapons, melee, special ammo (tranquilizer darts, MAT missile, PSAM, grenades). Fixes PSAM91 MVCF crash when CE auto-patcher removes verbs.
- Charge Weapons, Beam Weapons — ranged weapons with custom projectiles.
- Mekanoido — mechanoid projectile defs and CE patching. All 21 mech variants receive RacePropertiesExtensionCE with Humanoid bodyShape to fix "CE returning BodyType Undefined" warnings. Mechs get CE aiming/melee stat bases (MiniMec 1.0, MiniMecE 1.3, NormalMec 1.7), 0.25 heat armor on Medium/Heavy frames, and regenerating, repairable CE armor durability (MiniMecs 850, NormalMecs 1160).
- Security — ammunition and ranged patches.
- Vigil Race — apparel and race definition fixes.
- Vigil Genes — xenotype gene patches.
Armor/Uniforms are handled by CE's official ModPatches.
ALIAILE (auto-applied when Aliaile Race is installed)
- Deity-name grammar fix for Aliaile CultureDef (Ideology).
- Psytrainer replacement: Aliaile racial psycast trainers are detected after generation and repointed to random vanilla psycasts. The defName stays the same so saves don't break, but the trainer now grants a valid base-game ability instead of a race-locked Aliaile one.
- HAR RaceSettings: fills empty Aliaile_KanyuRaceSettings so "Any" mode generates both races.
- Caravan food fix (Harmony): All 20 wine/alcohol items + Energy Bar + Energy Drink now eatable on caravans when hungry (mirrors colony behavior).
VIGIL (auto-applied when Vigil Race is installed)
- Vigil mechanitor (MisstallCE.VigilMechanitor.dll): when HAR swaps the KindDef in the Mechanitor start, the generated Vigil gets the MechlinkImplant so it is a real mechanitor, and the starting-pawn gate accepts a mechlink pawn for the required Mechanitor kind.
- Vigil fertility fix: restores vanilla fertility curves so Vigils can breed; only the Allurix Mk-I and Legatix Mk-I xenotypes remain sterile via their Sterile gene.
- Starting ammo: adds 300 MusketBall and 100 BlunderbussShot rounds to the Aliaile scenario. The starting weapons are single-action, manually reloaded firearms that fire musket balls and blunderbuss shot.
RUNTIME FIXES
- Caps mech self-shutdown search radius at 119 to prevent CE's "Not enough squares" error spam.
- Mech ammo maintenance: mechs auto-restock to their kind's primaryMagazineCount via CE's CompMechAmmo, so they never run dry, swap weapons mid-battle, or stack duplicate guns into their inventories (MisstallCE.MechRadialFix.dll).
- One-time cleanup of duplicate guns already accumulated in existing mechs' inventories (once per mech).
- CE reload crash fix: catches InvalidCastException in CE's prefix on JobGiver_Reload.TryGiveJob when a pawn has a CompReloadable instead of CompApparelReloadable. Prevents pawns from getting stuck without jobs.