SubTerminalEX
Improve performance for command, enable other mods to add their own custom command and add some utility command for you
模組介紹 作者原文
SubTerminalEX v1.1.2
Note
- NOTE: This is client-only mod, it does not add cheat or hacks, it does not allow user to use hidden system only terminal command by itself.
- If you do happen to encounter crash, please report it to me so i can identify if it was because of my faulty code or vanilla issue
- If you got any issue with this mod, feel free to mention me in this discord server (username: Ozzzzymaniac)
Features
- "Cleanup" game command interpreter which improve performance (source?: trust me bro)
- Allow terminal to take a string argument "this is multiple words argument" as an single argument instead of being splitted to multiple argument
- Add "a lot" of utility and quality of life commands
- Remove terminal bootup text (for people want "speed" startup, can be disabled in config
- Allow other mods to add their own desired custom commands and more...
New terminal command
Please note that all argument for all command below are all case in-sensitive and are all converted to upper-case
clear or it alias cls
- Clear all text on the terminal
alias (set/map) [old] [new] or alias [old] [new]
- Map [old] command to [new] so you can type [new] and it will work as if you are typing [old]
- E.g alias set view_cam vcam now you can type vcam and it work as if you are using view_cam
alias (rem/remove/rm) [new]
- Remove mapped [new] command
- E.g alias rem vcam vcam will no longer work
alias (clear/reset)
- Reset and remove all mapped commands
- E.g alias clear vcam and anything mapped before this point will now no longer work
alias load [filename]
- Load a pre-defined alias text file at GAME_ROOT directory, due to "lazy" limitation loading a new alias text file result in all current alias'ed command being removed (technically a alias clear before loading the new file)
- Please note that [filename] are case in-sensitive because it will get capitialized!
- E.g alias load promax now any of pre-defined alias will work just like you manually typing alias set
alias (gen/generate) [filename]
- Generate alias text file for use of alias load, the generated file will include all of currently alias'ed command
- Please note that [filename] are case in-sensitive because it will get capitialized!
- E.g alias gen promax will create a "PROMAX.txt" file at GAME_ROOT directory for use with alias load
Alias Format
The alias text file is a simple text file that are follow the [block][separator?] format
- [block]: a text section contain [old command][new command], within this block everything after [new command] are ignored
- [separator?]: is either a newline \n or a comma,
E.g:
view_cams vcam _){} // command has no argument so you can safely ignore the argument passed in
public static IEnumerator OnExecuteB(List args) {} // command has argument, and are listed by the order they typed in
public static IEnumerator newMinimap(List args) {} // when minimap is executed this method will run instead of the original method
public static void OnExecuteHook(List args) {} // this method will run after route_to is executed, all argument passed in are exactly like the original command
// way 1 - for command have no argument
TerminalCommandManager.AddNoArgumentCommand("play", OnExecuteA);
// way 2 - for command that have argument
TerminalCommandManager.AddCommand("reset", OnExecuteB);
// override command (from other mods or vanilla)
TerminalCommandManager.OverrideCommand("minimap", newMinimap);
// extra: you can create your own alias too for mods that want to add alias for their own command
// note that alias created this way cant be deleted by user "alias remove" (can be changed)
TerminalCommandManager.AliasCommand("base_command", "new_alias");
// extra 2: you can now hook the desired command instead of override and then use hacks to run the original command!
TerminalCommandManager.HookCommand("route_to", OnExecuteHook, STEHookPriority.Default, STEHookTarget.Default);
TerminalCommandManager.HookCommand("route_to", OnExe
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: