Aavild-NewTerminal icon

NewTerminal

New Terminal for Lethal Company

Last updated a year ago
Total downloads 420849
Total rating 9 
Categories Mods Misc BepInEx
Dependency string Aavild-NewTerminal-1.4.0
Dependants 240 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

NewTerminal

Allows customising every single displayText on the terminal

warning: contains spoilers for creatures and log-messages

img.png

Usage

Download and follow the guide for BepInEx 5.4.22.

Download Release/BepInEx/plugins/NewTerminal.dll and put it into /Lethal Company/BepInEx/plugins.

Run LethalCompany and enter the spaceship once to generate the config files.

Modify the config file in /Lethal Company/BepInEx/config.

Modify text-display for a command

[TerminalMenus.Other] # <--- this is a category

# Setting type: String
# Default value: >MOONS\nTo see the list of moons the autopilot can route to.\n\n>STORE\nTo see the company store\'s selection of useful items.\n\n>BESTIARY\nTo see the list of wildlife on record.\n\n>STORAGE\nTo access objects placed into storage.\n\n>OTHER\nTo see the list of other commands\n\n[numberOfItemsOnRoute]\n
Help = >MOONS\nTo see the list of moons the autopilot can route to.\n\n>STORE\nTo see the company store\'s selection of useful items.\n\n>BESTIARY\nTo see the list of wildlife on record.\n\n>STORAGE\nTo access objects placed into storage.\n\n>OTHER\nTo see the list of other commands\n\n[numberOfItemsOnRoute]\n

can be modified into the following:

[TerminalMenus.Other]

# Setting type: String
# Default value: >MOONS\nTo see the list of moons the autopilot can route to.\n\n>STORE\nTo see the company store\'s selection of useful items.\n\n>BESTIARY\nTo see the list of wildlife on record.\n\n>STORAGE\nTo access objects placed into storage.\n\n>OTHER\nTo see the list of other commands\n\n[numberOfItemsOnRoute]\n
Help = >MOONS - List of moons\n>STORE - The company store\'s selection of items.\n>BESTIARY - List of wildlife on record.\n>STORAGE - Access objects in storage.\n>VIEW MONITOR - Toggle the main monitor\'s map cam.\n>SWITCH [Player name] - To switch player on the main monitor\n>PING [Radar booster name] - Make a radar booster play a noise.\n>SCAN - Scan for the number of items left on the current planet.\n\n

Note that TerminalMenus.Special is the terminal display when opening the terminal. If you want to modify the output of typing the help command you need to find it in NewTerminal-Other

Rename command

It is also possible to rename commands. Example if you want to rename the buy command for pro flashlights buy pro -> c lu (spaces aren't used):

[TerminalMenus.Buy-cmd]

# Setting type: String
# Default value: buy
Buy-cmd = buy

# Setting type: String
# Default value: pro flashlight
ProFlashlight-cmd = pro flashlight

to:

[TerminalMenus.Buy-cmd]

# Setting type: String
# Default value: buy
Buy-cmd = c # <--- minimal 1 letter

# Setting type: String
# Default value: pro flashlight
ProFlashlight-cmd = lu <---- minimal 2 letters

Note that nouns are put in the category for their primary verb although renaming the command will also rename for other verbs.

With the example before this will also be renamed: info pro -> info lu

Tips

# are comments. Feel free to add/remove them as you see fit, although BepInEx might also create the default comments and remove new comments.

\n are newlines. You can temporarily make newlines for each \n and then delete the newlines when you're done editing an entry.

[totalCost] is an example where the game replaces a part of the text with a value.

The \n\n at the end of the text is to place the cursor at a new line. These are nice to have but not required.

Some letters need to be escaped by putting a \ before them such as \'.

if a value stops working just delete the entire entry. The plugin will automatically add it back the next time you enter a ship.

Each line is exactly 51 letters long.

In Notepad++ you can collapse categories to make navigation easier.

BepInEx.cfg's [Logging.Console] Enabled = true makes a console run in the background which displays a log, with errors and other log messages.

After closing LethalCompany, LethalCompany/BepInEx/LogOutput.txt contains a more concise log of errors/log messages with any plugins.

if you have other useful tips for other players feel free to create a Github issue on it.

Dev

Note that src/lib doesn't exist on purpose as the game DLLs are considered intellectual property.

Please find the needed DLLs on your own in your LethalCompany folder at \Lethal Company\Lethal Company_Data\Managed and insert them in a new src/lib folder.

In any IDE you should be able to build towards either Debug or Release which should target the appropriate folders specified in src/NewTerminal.csproj

Created under the Creative Commons License allowing anyone to copy the code and redistribute it without having to include the license.