LC API

Other LC API 3.1.0

LC-API​

The definitive Lethal Company modding API. Includes some very useful features to make modding life easier.

For Developers​

If you want to use the API in your plugin, add the LC_API.dll as a project reference!

Features​

AssetBundle loading - Put asset bundles in BepInEx > Bundles and load them using BundleAPI.BundleLoader.GetLoadedAsset
ServerAPI - Utilities relating to the network and server. This includes:
ModdedServer - Automatically alerts other users when you host a server that your server is modded. It also lets mod authors make their mods put users in special matchmaking where they can only play with other modded users
Networking - Easily send data across the network to sync data between clients

Releases​

Version 1.0.0​

  • Release

Version 1.1.0​

  • General bug fixes for Networking
  • The local player now will NOT receive data that they broadcast. The bool value on the receive delegates is also gone. If you were using Networking, you will need to ajust your code.

Version 1.1.1​

  • General bug fixes for Networking
  • Plugin developers NEED to update to this version as it includes a fix for a bug that prevented Networking from being used.

Version 1.2.0​

  • Added new GameInterfaceAPI. Documentation will be created soon.
  • Added new CheatDatabase with the purpose of catching users trying to join non-modded servers with cheaty mods. The CheatDatabase also allows for the host to view all mods installed by people joining. (As long as they have LC_API installed).

Version 1.2.1​

  • Adjusted README formatting.

Version 1.3.0​

  • Changed how the BundleLoader in the BundleAPI loads assets to fix issues caused by downloading mods from mod managers. The path BepInEx > Bundles is outdated and should not be used anymore.

Version 1.4.0​

  • Changed how the BundleLoader in the BundleAPI loads assets to fix issues with certain languages. This will break some mods, but a config option is included to revert to the old system so you can still use older mods.
  • If you are a plugin developer, use GetLoadedAsset to get an asset, instead of using the asset dictionary. This ensures that your plugin will still work even when changes like this are made.

Version 1.4.1​

  • LC_API should now be able to load no matter if the Hide Manager GameObject option is on or off.
  • A config option has been added that will disable the BundleLoader.

Version 1.4.2​

  • Fix for the new config option causing the API to fail to initialize.

Version 2.0.0​

  • Changes to the BundleLoader to stop conflicts with other plugins loading assets without the BundleLoader.
  • Changes to Networking and GameState events, plugins using these will need to be rebuilt.
  • Added GameTips to GameInterfaceAPI. GameTips uses a tip que system to ensure no popup tip messages overlap with eachother.
  • Changed the CheatDatabase to now (in theory) work for all players, not just the host.
  • Changes the CheatDatabase to use GameTips to display information. It will still output information to the logs.

Version 2.1.0​

  • Fixed the BundleLodaer loading assets twice.

Version 2.1.1​

  • Actually fixed the BundleLodaer loading assets twice.

Version 2.1.2​

  • Updated to game version 45.

Version 2.2.0​

  • Added a command handler.
  • The bundle loader will only attempt to load actual bundles.
  • Added a temporary fix for lethal expansion bundles. Will be looking into a long term solution in the next update.

Version 3.0.0​

  • Removed automated bundle loading.
    • Legacy loading will still automatically load bundles if wanted.
  • Added event system.
    • More events to be added in future.
  • Added Player class for interacting with players easily.
  • ModdedServer.GameVersion will now contain the base game version even if LC API modified the version to set modded only.

Version 3.0.1​

  • Fixed Player.HostPlayer.

Version 3.0.2​

  • Fixed the command handler "eating" messages if they started with the command prefix, but weren't registered as commands.

Version 3.1.0​

  • Added Item class for interacting with grabbable objects easily.
  • The Player class now has multiple new properties for inventory management.
    • Player.Inventory will return a PlayerInventory for this.
  • The Player.Joined event should now work properly on LAN.
Author
SiriHack
Downloads
129
Views
650
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from SiriHack