Castra Prime


Fork of Castra, military planet, to fix balance issues.

Content
12 days ago
2.0
945
Factorio: Space Age Icon Space Age Mod
Planets Logistics Combat Armor Enemies Environment Mining

Changelog

Version: 0.8.1
Date: 2026-05-20
  Bugfixes:
    - Fixed mod compatibility crash: enemy entity prototypes no longer inherit next_upgrade from
      their vanilla counterparts, which could cause a collision mask mismatch error when another
      mod added an upgrade target with a different footprint.
Version: 0.8.0
Date: 2026-05-19

  Introducing the SIMULAC! The enemy faction now has a name. Will we learn more about these mysterious
  entities in the future?

  Numerous bug fixes; see long_log in docs folder for details.

  Bugfixes:
    - Enemy structures should now be targetable, including by personal laser defenses
    - Restored the original "glow" of the Forge; added setting to disable it if undesired
    - Fixed lag spike/potential crash from data collectors not being properly removed 
      from tracking after being destroyed

  Balance changes:
    - "Buffed Forge": If this setting is enabled, Forge no longer has 10% quality boost.
      Buffed Forge can now also craft vehicles (tanks, spidertrons).
    - Player-created Jammed Data Collectors can now be mined (picked up).
    - Added setting to extend battlefield data packet spoilage time from 1 minute to 5 minutes.
Version: 0.7.0
Date: 2026-05-13

  LOTS of miscellaneous bug fixes; see long_log in docs if you're really curious. 

  Balance changes:
    - Removed quality-module-2 as a prerequisite for the Forge technology.
    - Added option to prevent enemy rocket turrets from loading nuclear ammo (atomic/hydrogen
      bombs). Existing nuclear ammo in turrets will remain until fired.
    - Replaced "Include Battlefield in Research Prod" setting with "Castra Gates Late-Game
      Progression" (on by default). When disabled, lithium batteries are no longer required
      for railgun and promethium science pack recipes, and battlefield science is not required
      for promethium science or research productivity research.
    - Added option to remove battlefield science pack requirement from atomic bomb technology,
      allowing nuclear weapons to be researched without visiting Castra.
    - Fixed an issue with starting area generation. New maps should have a starter patch
      of each resource.

  Ease of use:
    - Data collectors now spawn items and tanks in peaceful mode. The planet is intended to be
      a combat challenge regardless of map settings.
    - Mod authors can set recipe.castra_prime_ignore = true to prevent Castra Prime from
      re-categorizing their recipes for the Forge.
Version: 0.6.2
Date: 2026-05-12
  First version I feel good enough to post on Discord - still alpha/WIP though!

  Mod architecture: split out mod graphical assets into castra-prime-assets

  Features:
   - Added enemy research rate slider (multiplier value)
   - Added option to suppress enemy research messages
   - Added option to reduce toughness of enemy bases 50%
   - Added option to prevent enemy bases from spawning land mines (untested)
   - Added option to buff the "Mk3" equipment upgrades on Castra
Version: 0.6.1
Date: 2026-05-10
  First actual changes.
  Features:
    - Added configurable setting for whether Battlefield Sci added to Promethium science
    - Added setting to buff the Forge (partly for test purposes)
    - Added setting to prevent enemy artillery from spawning
Version: 0.6.0
Date: 2026-05-10
  Starting a clean version, bringing in 0.5.4 changes. Added Readme, updated info.
Version: 0.5.4
Date: 2025-03-18
  Bugfixes:
    - Fix jammed data collector crash
Version: 0.5.3
Date: 2025-03-15
  Bugfixes:
    - Fix range rendering error
Version: 0.5.2
Date: 2025-03-11
  Bugfixes:
    - Fix combat roboport crash
Version: 0.5.0
Date: 2025-03-11
  Changes:
    - Added jammer radar and jammed data collector   
    - Drops are no longer marked for deconstruction to encourage use of belts and jammed data collectors
Version: 0.4.16
Date: 2025-03-01
  Balancing:
    - Reduce enemy tank electric resistance to 60%
    - Significantly reduce chance of higher quality items from data collectors
  Changes:
    - Limited items dropped by data collectors to the max quality researched by the player as well
Version: 0.4.15
Date: 2025-02-27
  Changes:
    - Fix enemy quality upgrading error when trying to upgrade unsupported entities
Version: 0.4.11
Date: 2025-02-23
  Changes:
    - Lower enemy resistances and health
Version: 0.4.10
Date: 2025-02-22
  Bugfixes:
    - Fix combat roboport error
  Changes:
    - Updated some more technology, recipe, and item icons thanks to Gencris
    - Increased holmium solution required in holmium catalyzing recipe by 50%
Version: 0.4.9
Date: 2025-02-21
  Changes:
    - Removed nickel from flamethrower recipes
Version: 0.4.8
Date: 2025-02-20
  Changes:
    - Added new technology icons thanks to Gencris
    - Moved flamethrower back to logistics tech
Version: 0.4.7
Date: 2025-02-18
  Bugfixes:
    - Fix error when filling artillery turrets
Version: 0.4.6
Date: 2025-02-18
  Bugfixes:
    - Fix error when giving tank commands, combat roboports, and other misc issues due to missing caching
    - Fix occasional error when enemy artillery fires
    - Fix enemy base upgrading also filling player turrets and roboports
    - Fix enemy base upgrading losing orientation and direction
    - Fix lag spike due to pollution data caching
    - Fix combat roboports losing the robot's quality
  Changes:
    - Move the planet further down in the list to be with other planets of similar tier
    - Carbon fiber walls can now be placed on water and oceans of varying types
    - Foundation can now be placed on light oil oceans
  Compatibility:
    - Enemy will now use Maraxis and Cerys ammo types  
    - Disallow rocket fuel from sulfur recipe on Cerys
Version: 0.4.5
Date: 2025-02-17
  Bugfixes:
    - Fix tier 1 modules not getting detected as researched for the enemy
    - Fix some items not being marked for deconstruction by always marking them for deconstruction now, regardless of any roboport in range
  Changes:
    - Reduced chance of quality items from data collectors from 100%
    - Adjusted quality formula for spawning entity quality items/entity to also account for the quality module tier unlocked
    - Tier 4 modules and even higher tiers if they exist are now supported by the enemy
    - Increased tank aggressiveness again
    - Adjusted battlefield data packet amounts in recipes to better reflect the low amount you get
Version: 0.4.4
Date: 2025-02-16
  Bugfixes:
    - Fix enemy railgun turret placement error
Version: 0.4.3
Date: 2025-02-16
  Bugfixes:
    - Fix data collector roboport checking errors
Version: 0.4.2
Date: 2025-02-16
  Bugfixes:
    - Fix enemy bases not upgrading
  Changes:
    - Enemy tanks are slighly more aggressive to nearby player bases (actually)
Version: 0.4.1
Date: 2025-02-16
  Bugfixes:
    - Fix error in migration script
Version: 0.4.0
Date: 2025-02-16
  Note:
    - A migration script will run at the start to move data to storage due to the performance changes. This may take 5+ seconds.
  Changes:
    - Added flamethrower and artillery turrets back as possible enemy turrets
    - Replaced enemy energy based turrets with less power demanding ones
    - Performance improvements overall
    - Enemy tanks are slighly more aggressive to nearby player bases
Version: 0.3.8
Date: 2025-02-13
  Bugfixes:
    - Reduce more lag spikes when searching for entities
Version: 0.3.7
Date: 2025-02-13
  Bugfixes:
    - Reduce lag spikes when searching for Data collectors
Version: 0.3.6
Date: 2025-02-12
  Bugfixes:
    - Reduce lag spikes due to several events coinciding and also make tank commands more performant
    - Fix enemy infinite techs keeping progress when completing a level
    - Fix forge not crafting turrets or walls
  Changes:
    - Enemy no longer researches very expensive techs without first researching some cheaper techs
Version: 0.3.5
Date: 2025-02-12
  Bugfixes:
    - Fix enemy infinite techs not getting removed from queue once a level is completed
    - Fix enemy techs showing as level 1 in messages
Version: 0.3.4
Date: 2025-02-11
  Bugfixes:
    - Actually fix enemy trying to upgrade a ghost entity
  Changes:
    - Slow down enemy evolution by 10x+
Version: 0.3.3
Date: 2025-02-11
  Bugfixes:
    - Fix error when enemy tries to upgrade a ghost entity
Version: 0.3.2
Date: 2025-02-11
  Bugfixes:
    - Fix castra monitoring checking for radars on the player's current surface
    - Fix enemy trigger researches not being finished before switching
    - Fix enemy getting stuck on infinite techs
    - Fix enemy research notifications always showing lowest level tech    
  Changes:
    - Add military-grade transport belts
    - Add carbon fiber walls
    - Reduced chance for enemy to research high cost techs
    - Removed belts, roboports, and walls as military targets ("fixes" enemies focusing on them too much)
    - Add flamethrower recipe to forge
    - Battery with nickel category changed to chemical plant or cryogenic plant
    - Holmium catalyzing changed to foundry or assembly machine
Version: 0.3.1
Date: 2025-02-10
  Compatibility:
    - Remove duplicate asteroid collector tech prerequisite on Castra discovery
  Changes:
    - Adjusted research speed based on the number of science packs for the current enemy tech
    - Display the next technology the enemy is researching if monitoring is unlocked
Version: 0.3.0
Date: 2025-02-09
  Bugfixes:
    - Fix enemy research speed not scaling up with enemy evolution
  Changes:
    - New recipes for circuits from battlefield data
    - Add new recipe for iron plates
    - Add new rocket fuel from sulfur recipe
    - Increase iron ore chance from the basic nickel recipe
    - Reduced Castra evolution speed at higher evolutions
    - Add new technology and shortcut to allow monitoring the enemy's current research speed and research
    - Reduced flat damage resistances on enemies
    - Modified hydrogen sulfide electrolysis recipe to be faster and reduce sulfur byproduct
Version: 0.2.2
Date: 2025-02-07
  Bugfixes:
    - Fix flamethrowers generating as they currently don't work without oil hooked up
    - Fix alternative recipes not having recipe signals and overriding default option for "Set recipe" (github #10)
  Changes:
    - Increase resistances on Data collector and Castra enemy tanks
    - Remove minimum range from enemy tanks
    - Move alternative recipes to a new subgroup
  Localization:
    - Add zh-CN translation from rlcyyg1108 (github #11)
Version: 0.2.1
Date: 2025-02-06
  Bugfixes:
    - Fix recycling and hidden recipes counting as unlocking enemy recipes (enemy bases had atomic bombs too early)
    - Fix hand crafting being removed on recipes added to the forge
  Changes:
    - Increase enemy density the further away from the center of the map
Version: 0.2.0
Date: 2025-02-05
  Breaking changes:
    - Fixed forge hitboxes and pipe connections to be centered. This will break existing builds with the forge!
  Bugfixes:
    - Fix error when upgrading base without power    
  Changes:
    - Reduce chance for spawning item by data collector to 10% when there is very little pollution
    - Data collectors increase evolution slightly when they spawn items
    - Reduced data collector item/tank spawn rate
  Compatibility:
    - Fix compatibility with mods adding new military recipes including Tiberium
    - Fix compatibility with Assembler Pipe Passthrough
Version: 0.1.10
Date: 2025-02-05
  Bugfixes:
    - Fix enemy force not placing walls and turrets until after their first research
  Changes:
    - Increase minimum research speed of enemy by 5x
    - Increase chance for a base to spawn with turrets
    - Increase enemy research speed bonus from lab speed techs
Version: 0.1.9
Date: 2025-02-04
  Bugfixes:
    - Fix combot roboport error
    - Fix destroyer with battlefield data recipe
  Changes:
    - Add combot robot with battlefield data recipes to infinite productivity tech
    - Adjust infinite productivity tech counts to scale faster and some start with higher counts
  Localization:
    - Merge French translation from Fr-Dae (github #7)
Version: 0.1.8
  Changes:
    - Add new Carbon from gunpowder recipe for an early game source of fuel if you need to start from scratch
    - Add new Combot robot recipes using Battlefield data packets
    - Add Poison/Slowdown capsules from sulfur recipes
    - Removed empty line in descriptions which had existing text (Still working on fixing empty lines for new ones)
    - Adjust Data collector collision and selection boxes and logic for spawning items to avoid lost items
    - Add sulfur input to reverse cracking recipe
  Bugfixes:
    - Fix Combat roboport not being minable
    - Fix Biolab not accepting Battlefield science packs
Version: 0.1.7
Date: 2025-01-29
  Changes:
    - Change Tungsten carbide to Millerite in the Speed module 4 if Tier 4 Modules is installed
    - Change Castra discovery to require Asteroid collector tech if Asteroid collector is its own tech (Muluna compatibility)
    - Update tips and tricks and item descriptions to be clearer about Battlefield data packets are obtained
    - Removed tips and tricks page for data emissions and moved to entity descriptions
  Bugfixes:
    - Fix tips and tricks startup error
    - Fix error when infinite techs are split into multiple techs by another mod
Version: 0.1.6
Date: 2025-01-28
  Bugfixes:
    - Fix error due to typo-ed deletion of code
Version: 0.1.5
Date: 2025-01-28
  Bugfixes:
    - Fix Forge only being craftable by itself
Version: 0.1.4
Date: 2025-01-28
  Bugfixes:
    - Fix error when neither Maraxsis nor Landing Pad Research is installed
    - Fix error when Maraxsis is installed but not Landing Pad Research (Issue #1)
    - Fix error on tick before Castra surface is generated
Version: 0.1.3
Date: 2025-01-27
  Changes:
    - Castra enemies start with gun turrets and stone walls immediately
    - Cargo landing pad research mod is now optional    
  Bugfixes:
    - Fix Alien Biomes error (removed decoratives just get removed for now)
    - Fix error when subgroup does not exist when checking recipes
    - Fix error when certain vanilla military techs are changed to trigger techs
Version: 0.1.2
Date: 2025-01-26
  Changes:
    - Add compatibility with Maraxsis cargo landing pad research instead of fully overriding it
    - Add compatibility with Cerys by adding holmium with millerite recipe to holmium productivity tech
    - Add compatibility with Muluna by adding electric engine unit to engine productivity tech and making recipe longer
    - Removed graphics mod prereq and moved graphics to this mod itself
    - Change Castra pressure to 1254 from 1200
    - Add missing condition for the Battlefield science pack
    - Add unique asteroid spawning ratios to/from Castra
  Bugfixes:
    - Fix error from mods with research progress products in recipes
Version: 0.1.1
Date: 2025-01-25
  Changes:
    - Fix tips and tricks page generation error
Version: 0.1.0
Date: 2025-01-25