X: Rebirthv0.012026年12月6日 更新

Infinite Boost - Travel Drive in X Rebirth

大幅延长加速持续时间,以近似 X4 的旅行引擎体验,探索时无需每隔约 15 秒重新启动加速。模组由作者使用 XSLT 生成,并附有转换脚本。

Infinite Boost - Travel Drive in X Rebirth

这是一个简单的小型模组,大幅延长加速持续时间,以近似 X4 的旅行引擎体验。探索时无需再每隔约 15 秒重新启动加速。

作者使用 XSLT 生成此模组,脚本如下:

<!-- Run Example:
     transform -xsl:"C:/xrtraveldrivemod.xslt" -it:main inF="D:/Games/Steam/steamapps/common/X Rebirth/" outF="D:/Out/" root="XRextracted/" universe="xuep1universe" clusters="clusters"
-->
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <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="outF" select="outF"/>
    <xsl:param name="root" select="root"/>
    <xsl:param name="clusters" select="clusters"/>
    <xsl:param name="universe" select="universe"/>

    <xsl:variable name="modID" select="'infiniteboost'"/>
    <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:result-document href="{concat($outputURI,'/content.xml')}">
            <content id="{$modID}"
                     name="Infinite Boost" description="Massively increase boost duration to provide X4 travel drive-like behavior in XR" author="{concat('metame','''','s Generator')}"
                     date="{format-date(current-date(),'[Y0001]-[M01]-[D01]')}"
                     version="1" save="0">
            </content>
        </xsl:result-document>

        <!-- This will call the macros template -->
        <xsl:for-each select="collection(concat($sourceURI,'assets/props/SurfaceElements/Macros','?recurse=no;select=','shieldgenerator_player_*_macro','.xml'))">
            <xsl:result-document href="{replace(document-uri(.),replace($sourceString,' ','%20'),concat($outputString,'/'))}">
                <xsl:apply-templates />
            </xsl:result-document>
        </xsl:for-each>
    </xsl:template>

    <!-- How to process each macro file -->
    <xsl:template match="macros">
        <diff>
            <replace sel="/macros/macro/properties/boost/@duration"><xsl:value-of select="1000000*macro/properties/boost/@duration"/></replace>
        </diff>
    </xsl:template>
</xsl:stylesheet>

来源与文件

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:xrebirth:550 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载