Mortar-DevLaunch icon

DevLaunch

Starts test copies of the game straight into a LAN game for mod development: one hosts, the others join.

Last updated 7 hours ago
Total downloads 9
Total rating 0 
Categories Tools Misc
Dependency string Mortar-DevLaunch-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305

README

DevLaunch

For mod developers. Skips Lethal Company's launch menus and goes straight into a game, so several test copies on one computer can end up in the same lobby.

  • Who needs it: each test copy. Players don't.
  • Config: the Label section sets how the label naming each copy looks.

It reads the game's command line and does nothing unless one of these is there:

  • --lan or --online picks the launch mode.
  • --host hosts a lobby.
  • --join <address> joins the LAN game at that address, retrying while the host loads.
  • --tile <n>/<count> switches to a window and puts it in cell n of a grid with count cells.

With any of these, the window title and a corner of the window show which copy it is: Host, then Client 2, Client 3 and so on. The Label settings turn either off, and pick the corner, colour and size.

To run a host and a client on one computer, start one copy with --lan --host --tile 1/2 and another with --lan --join 127.0.0.1 --tile 2/2.

In Mortar

The Test button on Mortar's Develop tab does this for you: one copy hosts and the others join. It adds DevLaunch to the profile if it's missing. The arrow beside it picks 1 to 4 copies, and the profile remembers the choice. Test copies keep their own saves, so yours aren't touched.

Mortar's Develop tab with the Test menu open: Test with 1, 2, 3 or 4 copies