BashTerm

版本 v0.2.1·更新於 2025-02-09

Improving the GTFO Terminal

模組介紹 作者原文

BashTerm

An Improved GTFO Terminal

GitLab (Source) | GitHub (Mirror, Public Issues) | (Release)

e.g. Type P AMMO 69 instead of PING AMMOPACK_69

Issues / Suggestions

Please open issues (for suggestions, bugs, etc.) on the GitHub repo as the GitLab repository is not open for public contributions, thank you!!

Table of Contents

[TOC]

Aliases / Expansions

Command Aliases

Several shorthand aliases of commands are added to make common operations faster. Some UNIX-equivalent commands are also mapped.

| Alias | GTFO Command |

| --------------------------- | ------------------ |

| LS / L | LIST |

| LSU / LU | LIST U |

| CAT | READ |

| UC | UPLINK_CONNECT |

| RS / START | REACTOR_STARTUP |

| RSD / SHUT / SHUTDOWN | REACTOR_SHUTDOWN |

| UV[^1] | UPLINK_VERIFY |

| RV[^1] | REACTOR_VERIFY |

| P | PING |

| Q | QUERY |

| CLEAR | CLS |

Zone Identifier Expansion

Specifically, the LSU alias expands the number argument to a zone identifier if applicable (it should only take one argument).

Expansion on 49

LSU 49 ==> LSU E_49 ==> LIST U E_49

No expansion

LSU AM ==> LIST U AM

i.e. LSU 49 would be interpreted as LSU E_49 = LIST U E_49 (LIST RESOURCE ZONE_49)

This function can also be turned on for LIST itself in the config, expanding the first number argument encountered.

Item Name Expansion / Concatenation

Let's be honest, typing _ is not the most convenient thing in the world, so let's not do that.

Instead of entering something like PING AMMOPACK_594, BashTerm allows you to type PING AMMO 594 instead.

This is achieved through two mechanism:

  • Concatenation
  • Name Expansion

You might be thinking, "I don't freaking care how it works!", but understanding how BashTerm works will allow you to better utilize it.

Concatenation

Concatenation allows you to not have to type the underscore _ ever[^3] when using PING and QUERY.

For example:

  • PING AMMOPACK 594 becomes PING AMMOPACK_594
  • PING KEY BLACK 113 becomes PING KEY_BLACK_113

Name Expansion

COMMAND ARGUMENT_1 ARGUMENT_2...

Many objects (e.g. resources, objective items, etc.) have expansions defined in BashTerm. These expansions work on the first argument (ARGUMENT_1) when using the commands PING and QUERY.

Take the earlier example PING AMMO 594 again. After execution, AMMO is translated to AMMOPACK, then concatenation is performed to get PING AMMOPACK_594.

GTFO only allows these two commands to be accompanied with one argument: the item of interest (unless you consider the -T option), so we automatically consider expansion when you enter more than one argument. (calling PING or QUERY with only one argument, however, will not trigger expansion).

The following table lists all default expansion identifiers (note that "WORD+" means any word starting with WORD, aka prefix matching):

| Identifier | Expansion |

| --------------- | ---------------------- |

| MED+ | MEDIPACK |

| TO+ | TOOL_REFILL |

| AM+ | AMMOPACK |

| DIS+ | DISINFECT_PACK |

| TURB+ | FOG_TURBINE |

| NHSU | NEONATE_HSU |

| BK+ / BULK+ | BULKHEAD_KEY |

| BD+ | BULKHEAD_DC |

| HIS+ | HISEC_CARGO |

| LOCK+ | LOCKER |

| SEC+ / SD+ | SEC_DOOR |

| NFR+ | NFRAME |

| GEN+ | GENERATOR |

| DISS | DISINFECTION_STATION |

Customizing Aliases / Expansions

General Syntax

Command aliases and object expansions can be customized by editing their respective fields in the configuration. The config follows a specific format:

It is worth noting that aliases and expansions are essentially the same thing because they work the same way. The only difference between them in BashTerm is the argument(s) they apply to. "Aliases" only apply to commands, while "Object Expansions" apply to the arguments of commands

Custom Command Aliases

COMMAND, ALIAS1, ALIAS2: COMMAND2, CMD2_ALIAS1, CMD2_ALIAS2

Custom Object Name Expansions

EXPANSION, SHORTHAND1, SHORTHAND2

Alias and expansion customization follow the same format, as shown above. Different groups are separated by a colon:, and terms within a group are separated by commas,. All de

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_GTFO

檔案與校驗

檔案名稱
BashTerm-0.2.1.zip
檔案大小
75.5 KiB