Delete Friend-Foe Mines in Silent Witness XII
⚪ Last updated 2021Preview

🔍 Analysis
- 🏆 #67 of 75 Galaxy mods in this game by downloads
📋 About This Mod
Removes the extremely dense friend/foe mines in Silent Witness XII, with XSLT that can be easily adapted to other uses.
Here is the very simple XSLT used to generate this mod. With some tweaks, much more can be done. I commented out the generation of a gamestart, where most of the good stuff happens:
<!-- Run Examples:
transform -xsl:"C:\Games\Steam\steamapps\common\X4 Foundations\region_ff_delete.xslt" -it:main inF="D:/Games/Steam/steamapps/common/X4 Foundations/" modID="region_ff_delete" outF="D:/X4_out/" root="X4_extracted/" universe="xu_ep2_universe" region="region_cluster_45_sector_001"
<xsl:stylesheet version="3. 0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" version="1. 0" encoding="utf-8" indent="yes" />
<xsl:strip-space elements="" />
<xsl:param name="inF" select="inF"/>
<xsl:param name="modID" select="modID"/>
<xsl:param name="outF" select="outF"/>
<!-- root should end with / -->
<xsl:param name="root" select="root"/>
<xsl:param name="universe" select="universe"/>
<xsl:variable name="otherExtensionFolder" select="replace($root,'^[^/]/','')"/>
<xsl:param name="region" select="region"/>
<xsl:variable name="sourceString" select="concat($inF,$root)"/>
<xsl:variable name="outputString" select="concat($outF,$modID,'/')"/>
<xsl:variable name="sourceURI" select="concat('file:///',encode-for-uri(replace($sourceString,'\\','/')))"/>
<xsl:variable name="outputURI" select="concat('file:///',encode-for-uri(replace($outputString,'\\','/')))"/>
<xsl:template name="main">
<xsl:variable name="clusters">
<xsl:choose>
<xsl:when test="starts-with($universe,'demo')">
<xsl:value-of select="concat('demo_','clusters')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(replace(replace($root,'^[^/]/',''),'^[^/]/ego_(.*)/','$1_'),'clusters')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:result-document href="{concat($outputURI,'content.xml')}">
<content id="{$modID}"
name="{$modID}" description="" author="{concat('metame','''','s Generator')}"
date="{format-date(current-date(),'--')}"
version="100" save="0">
</content>
</xsl:result-document>
<xsl:result-document href="{concat($outputURI,'libraries/region_definitions.xml')}">
📊 Mod Details
- Game
- X4foundations Mods
- Author
- metame
- Version
- 1
- Downloads
- 362
- Endorsements
- 24
- Category
- Galaxy
- Created
- 10/22/2021
- Updated
- 10/22/2021
🔧 How to Install X4: Foundations Mods
Download from Nexus Mods.
📖 Full step-by-step install guide for X4: Foundations →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for X4: Foundations commands, item IDs, and more.
Keep browsing — more X4: Foundations mods await