展開
各位玩家是否還為《永恒之柱2》配置文件修改而感到麻煩么?是否會因忘記開修改器而煩心呢?那么下面就為大家分享一篇《永恒之柱2》游戲統(tǒng)一管理工具使用說明,希望大家喜歡。
一、此工具的作用
1、可以參數(shù)化配置每個(gè)游戲的可執(zhí)行文件相關(guān)的參數(shù)信息,比如確保某些對CPU敏感的游戲進(jìn)程以高優(yōu)先級運(yùn)行等;
2、在游戲執(zhí)行之前或游戲執(zhí)行之后需要做一些其他操作,比如在運(yùn)行永恒之柱2之前先運(yùn)行個(gè)修改器,再運(yùn)行個(gè)酷狗音樂播放器等;
3、可以對同一個(gè)游戲配置多個(gè)不同功能的版本,比如配置一個(gè)永恒之柱2無修改版本,再配置一個(gè)永恒之柱2修改版本等;
4、可以對游戲進(jìn)程進(jìn)行監(jiān)控,在退出游戲后可自動關(guān)閉在游戲執(zhí)行前或執(zhí)行后自定義運(yùn)行的與游戲相關(guān)的程序等。
二、使用方法
1、使用前先確保已安裝了最新的64位JRE8;
2、解包文件run.zip到任意目錄,打開命令提示符窗口,輸入cd命令定位到文件解壓的目錄,再輸入run會顯示詳細(xì)的命令行參數(shù)幫助信息。
參數(shù)說明
run -c|-a|-d|-v|-x|-l id path exe name [comment]
id 游戲標(biāo)識,在./run.xml文件中唯一標(biāo)識一個(gè)游戲配置節(jié)點(diǎn)。
path 游戲可執(zhí)行文件路徑。
exe 游戲可執(zhí)行文件名稱(不包含擴(kuò)展名.exe)。
name 游戲中文名稱。
comment 游戲快捷方式說明。
-c id path exe name [comment] 新建游戲配置文件./run.xml,并生成一個(gè)游戲配置節(jié)點(diǎn)。
-a id path exe name [comment] 添加一個(gè)游戲配置節(jié)點(diǎn)到游戲配置文件./run.xml中。
-d id 根據(jù)id刪除游戲配置文件./run.xml中對應(yīng)的一個(gè)游戲配置節(jié)點(diǎn)。
-v 顯示游戲配置文件./run.xml中所有的游戲配置節(jié)點(diǎn)的id列表,顯示格式為:id comment。
-x [id] 根據(jù)id執(zhí)行游戲配置文件./run.xml中對應(yīng)的游戲;如果不指定id程序則會先顯示id列表(同-v),再提示輸入一個(gè)id,根據(jù)id執(zhí)行對應(yīng)的游戲。
-l [id] 根據(jù)id獲得./run.xml中對應(yīng)的游戲,并創(chuàng)建游戲快捷方式到桌面;如果不指定id程序則會先顯示id列表(同-v),再提示輸入一個(gè)id,根據(jù)id創(chuàng)建游戲快捷方式 。
示例
run -c ew "F:/games/The Evil Within" EvilWithin 惡靈附身:開發(fā)者模式
run -a poe2 "F:/games/Pillars of Eternity II" PillarsOfEternityII 永恒之柱2
run -a poe2-d "F:/games/Pillars of Eternity II" PillarsOfEternityII 永恒之柱2:開發(fā)者模式
run -a skse "F:/games/Skyrim Special Edition" SkyrimSE 上古卷軸5:開發(fā)者模式
run -d ew
run -v
run -x
run -x ew
run -l
run -l ew
本文是否解決了您的問題
第2頁:使用方法-run.xml配置文件說明
展開3、附上自用的run.xml配置文件說明
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Games> <comment> 游戲配置集節(jié)點(diǎn)結(jié)構(gòu)說明: Games節(jié)點(diǎn)由一個(gè)唯一節(jié)點(diǎn)comment和多個(gè)Game節(jié)點(diǎn)按順序組成,comment節(jié)點(diǎn)必須在最前面。 Games::comment 游戲配置集節(jié)點(diǎn)結(jié)構(gòu)說明,對執(zhí)行游戲無影響,僅此說明而已。 Games::Game 游戲配置節(jié)點(diǎn),包括執(zhí)行游戲的命令行參數(shù)配置及執(zhí)行游戲前和執(zhí)行游戲后的DOS腳本命令配置。 Game節(jié)點(diǎn)由comment、name、id、path、exe、args、priority、icon、agentExe、agentArgs、before、after、beforeWait、afterWait、watchWait、watch節(jié)點(diǎn)按順序組成;comment節(jié)點(diǎn)必須在最前面,watch節(jié)點(diǎn)可以有多個(gè)。 Game::comment 游戲快捷方式說明,默認(rèn)值同Game::name。 Game::name 游戲快捷方式的名稱,一般使用游戲中文名稱。 Game::id 游戲唯一標(biāo)識。 Game::path 游戲可執(zhí)行文件路徑,也是Game::icon和Game::agentExe的路徑。 Game::exe 游戲可執(zhí)行文件名稱,不包含文件擴(kuò)展名.exe;若Game::agentExe非空,則優(yōu)先使用Game::agentExe啟動游戲。 Game::args Game::exe的命令行參數(shù)。 Game::priority 游戲進(jìn)程的優(yōu)先級,可選值為:32(標(biāo)準(zhǔn)),64(低),128(高),256(實(shí)時(shí)),16384(低于標(biāo)準(zhǔn)),32768(高于標(biāo)準(zhǔn));若Game::agentExe非空且Game::agentArgs已指定優(yōu)先級,則應(yīng)把該節(jié)點(diǎn)值置空,否則優(yōu)先使用該節(jié)點(diǎn)值。 Game::icon 游戲快捷方式的圖標(biāo)文件完整名稱(包含文件擴(kuò)展名);為空則使用游戲可執(zhí)行文件中圖標(biāo)。 Game::agentExe Game::exe的代理可執(zhí)行文件名稱,不包含文件擴(kuò)展名.exe;適用于使用游戲插件啟動游戲的情況,例如:上古卷軸5的skse。 Game::agentArgs Game::agentExe的命令行參數(shù)。 Game::before 在游戲執(zhí)行前需要執(zhí)行的DOS腳本命令。 Game::after 在游戲執(zhí)行后需要執(zhí)行的DOS腳本命令。 Game::beforeWait before腳本命令執(zhí)行完后等待beforeWait秒,再執(zhí)行游戲;僅當(dāng)Game::before不為空時(shí)生效,默認(rèn)值為10。 Game::afterWait 執(zhí)行游戲后等待afterWait秒,再執(zhí)行after腳本命令;僅當(dāng)Game::after不為空時(shí)生效,默認(rèn)值為10。 Game::watchWait 游戲監(jiān)控進(jìn)程的等待時(shí)間,每隔watchWait秒后檢測一次游戲進(jìn)程是否存在;僅當(dāng)Game::watch不為空時(shí)生效,默認(rèn)值為10。 Game::watch 由Game::before或Game::after腳本啟動的其他進(jìn)程名稱,在游戲進(jìn)程結(jié)束后監(jiān)控程序會自動關(guān)閉之。 </comment> <Game> <comment>永恒之柱2:開發(fā)者模式</comment> <name>永恒之柱2:開發(fā)者模式</name> <id>poe2-d</id> <path>F:/games/Pillars of Eternity II</path> <exe>PillarsOfEternityII</exe> <args></args> <priority>128</priority> <icon></icon> <agentExe></agentExe> <agentArgs></agentArgs> <before> ::先設(shè)置控制臺編碼為UTF-8,再復(fù)制補(bǔ)丁文件到游戲目錄 chcp 65001 file -c (?i)\AAssembly-CSharp\.dll$ "F:\games\Pillars of Eternity II\修改\PillarsOfEternityII_Data" "F:\games\Pillars of Eternity II" </before> <after></after> <beforeWait>3</beforeWait> <afterWait>10</afterWait> <watchWait>10</watchWait> <watch></watch> </Game> <Game> <comment>永恒之柱2</comment> <name>永恒之柱2</name> <id>poe2</id> <path>F:/games/Pillars of Eternity II</path> <exe>PillarsOfEternityII</exe> <args></args> <priority>128</priority> <icon></icon> <agentExe></agentExe> <agentArgs></agentArgs> <before> ::先設(shè)置控制臺編碼為UTF-8,再復(fù)制備份文件到游戲目錄 chcp 65001 file -c (?i)\AAssembly-CSharp\.dll$ "F:\games\Pillars of Eternity II\備份\PillarsOfEternityII_Data" "F:\games\Pillars of Eternity II" </before> <after></after> <beforeWait>3</beforeWait> <afterWait>10</afterWait> <watchWait>10</watchWait> <watch></watch> </Game> <Game> <comment>惡靈附身:開發(fā)者模式</comment> <name>惡靈附身:開發(fā)者模式</name> <id>ew</id> <path>F:/games/The Evil Within</path> <exe>EvilWithin</exe> <args>+com_allowconsole 1 +com_skipIntroVideo 1</args> <priority>128</priority> <icon></icon> <agentExe></agentExe> <agentArgs></agentArgs> <before> ::設(shè)置控制臺編碼為UTF-8 chcp 65001 start "" "F:\tools\EditPlus\editplus.exe" "F:\games\The Evil Within\修改\控制臺命令.txt" ::在執(zhí)行游戲前先啟動游戲視野調(diào)整工具軟件 start F:\tools\flawlesswidescreen_x64\FlawlessWidescreen.exe </before> <after></after> <beforeWait>5</beforeWait> <afterWait>10</afterWait> <watchWait>5</watchWait> <watch>editplus.exe</watch> <watch>FlawlessWidescreen.exe</watch> </Game> <Game> <comment>上古卷軸5:開發(fā)者模式</comment> <name>上古卷軸5:開發(fā)者模式</name> <id>skse</id> <path>F:/games/Skyrim Special Edition</path> <exe>SkyrimSE</exe> <args></args> <priority></priority> <icon></icon> <agentExe>skse64_loader</agentExe> <agentArgs>-priority high</agentArgs> <before></before> <after></after> <beforeWait>10</beforeWait> <afterWait>10</afterWait> <watchWait>10</watchWait> <watch></watch> </Game> </Games>
本文是否解決了您的問題
第3頁:使用方法-run.xml文件命令
展開4、run.xml文件命令
run.xml文件中使用了file命令,建議使用之前先設(shè)置下系統(tǒng)環(huán)境變量,以便能像使用win10的內(nèi)置DOS命令一樣便捷;下載中的file.zip為此命令的最新版本。建議把env.bat、run.exe、file.exe這三個(gè)文件放在同一個(gè)目錄中,比如:d:\tools ;以系統(tǒng)管理員身份運(yùn)行命令提示符,輸入:cd /d d:\tools
env.bat "d:\tools"
命令提示符會提示命令已執(zhí)行完成,關(guān)閉并再次以系統(tǒng)管理員身份運(yùn)行命令提示符然后分別輸入:
run
file
可以看到這兩個(gè)命令的幫助信息說明系統(tǒng)環(huán)境變量已正確設(shè)置。
下面特別說明下run.xml文件中使用到的兩條file命令:
file -c (?i)\AAssembly-CSharp\.dll$ "F:\games\Pillars of Eternity II\修改\PillarsOfEternityII_Data" "F:\games\Pillars of Eternity II"
file -c (?i)\AAssembly-CSharp\.dll$ "F:\games\Pillars of Eternity II\備份\PillarsOfEternityII_Data" "F:\games\Pillars of Eternity II"
假設(shè)永恒之柱2的實(shí)際目錄是F:\games\Pillars of Eternity II,那么游戲原版Assembly-CSharp.dll文件的備份文件的絕對路徑名是
F:\games\Pillars of Eternity II\備份\PillarsOfEternityII_Data\Managed\Assembly-CSharp.dll
而已修改好的Assembly-CSharp.dll文件的絕對路徑名是
F:\games\Pillars of Eternity II\修改\PillarsOfEternityII_Data\Managed\Assembly-CSharp.dll
本文是否解決了您的問題
全部評論