CoreMods-CoreLib icon

CoreLib

A library that makes modding Core Keeper easier

Last updated 2 weeks ago
Total downloads 34781
Total rating 3 
Categories Libraries
Dependency string CoreMods-CoreLib-2.1.3
Dependants 13 other mods depend on this mod

This mod requires the following mods to function

BepInEx-BepInExPack_Core_Keeper-2.0.3 icon
BepInEx-BepInExPack_Core_Keeper

BepInEx pack for Core Keeper. Preconfigured and includes Unity Base DLLs.

Preferred version: 2.0.3

README

CoreLib

A modding library for Core Keeper. Provides features that makes modding Core Keeper easier.

WARNING! Version 2.0.0 contains breaking changes. Make sure to update ALL of your mods before proceeding!

List of features

  • Custom items, blocks, enemies, NPC, etc.
  • Adding items using JSON
  • Easier access to Rewired input system, localization
  • Custom chat commands

And much more!

Note on multiplayer and save compatibility

If you are playing with friends MAKE SURE to sync your CoreLib.ModEntityID.cfg and CoreLib.TilesetID.cfg config files. If anything inside does not match you WILL encounter issues connecting, missing items, and errors.

The same applies if you are loading a save of another user. If your ID's don't match the ID's save was created with, the save will load corrupted.

I recommend any mods adding custom content warn users about this on their page.

This might get improved later, but right now this is best that you can do.

Documentation

Documentation can be found in the submodules folder. Browse each folder to find each module documentation

How to support development

If you like what I do and would like to support development, you can donate.

Installation

With Mod Manager

Simply open the mod manager (if you don't have it install it here), select CoreLib by CoreMods, then Download.

If prompted to download with dependencies, select Yes. Then just click Start modded, and the game will run with the mod installed.

Manually

Install BepInEx Pack from here

Unzip all files into Core Keeper\BepInEx\plugins\CoreLib/ (Create folder named CoreLib)

CHANGELOG

v2.1.3

  • Fixed issues using ModProjectile

v2.1.2

  • Allow to manually request any module to be loaded from config options
  • Added MigrationModule. Module is intended to be opt in functionality to fix issues with missing items. Enable in the config file.
Changelog

v2.1.1

  • Fixed error on launch due to reflection error

v2.1.0

  • Fixed compatibility with game version 0.6.0 and higher
  • Chat command handlers can be registered separately
  • Added Dump chat command
  • Added drop and modify JSON loader
  • Added Prefab modification API to EntityModule
  • Changed method signatures for workbench registration

v2.0.1

WARNING: Update all of your mods when installing version 2.0.0 or higher!

  • Fixed crash on dedicated servers when Entity module tried to register visual prefabs
  • Fixed IDynamicItemHandler color replacement logic being broken

v2.0.0

WARNING: Update all of your mods when installing version 2.0.0 or higher!

  • Use Il2CppInterop from my PR branch to allow for advanced DOTS features
  • Added Component module, which allows to create custom ECS components
  • Added System module, which allows to create pseudo systems and state requesters
  • Renamed CustomEntity module to Entity module. Mods which used it need to update
  • Added ModCraftingRecipeCDAuthoring to allow to assign custom recipes from Unity editor
  • Json Loader module now can create custom blocks using JSON
  • Fix Entity module impaired functionality

v1.4.0

WARNING: Update all of your mods when installing this version!

  • Fixed compatibility with game version 0.5.2.0 and higher
  • Custom Entity module may not function fully due to Unity version bump. Use at your own risk.

v1.3.1

  • Fixed a crash when using NativeTranspiler (Also AudioModule)
  • Allow to load AudioClip from a .wav file

v1.3.0

  • Public release of JSON loader module
  • Added Equipment Slot Module
  • Added RuntimeMaterialV2 which uses FixedString
  • Added ModObjectTypeAuthoring

v1.2.4

  • Add IDynamicItemHandler interface

v1.2.3

  • Add unboxed variant of NativeList
  • Another missed GCHandle in ModProjectile added

v1.2.2

  • Add missing GCHandles

v1.2.1

  • Fixed compatibility with game version 0.5.1.0 and higher
  • Stop adding mod workbench when no one uses it

v1.2.0

  • Fixed compatibility with game version 0.5.0.0 and higher
  • Chat Commands Module now uses Rewired Keybinds

v1.1.2

  • Fixed crashes and issues when using advanced features of CustomEntityModule

v1.1.1

  • @ CaptainStupid#8539: Fix for Localization failing on vanilla ObjectIDs

v1.1.0

  • Update to BepInEx 6.0.0-be.656
  • Added Audio Module
  • Added Drop Tables module
  • Added Mod Resources module
  • Added Utils Module
  • Significant improvements to Custom Entity Module. Custom almost anything is possible now.

v1.0.0

WARNING! This version contains breaking changes. Make sure to update ALL of your mods before proceeding!

  • Refactor project structure. Now using submodules.
  • Localization, Rewired keybinds are moved into their own submodule
  • Added Chat commands submodule
  • Added Custom Entity submodule

v0.1.1

  • Now supports dedicated servers

v0.1.0

  • Added Localization helper class
  • Added RewiredKeybinds helper class
  • Improve README

v0.0.1

  • Initial Release

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2023-5-14 2.1.3 4584 Version 2.1.3 Install
2023-5-14 2.1.2 37 Version 2.1.2 Install
2023-5-11 2.1.1 1644 Version 2.1.1 Install
2023-5-11 2.1.0 55 Version 2.1.0 Install
2023-3-26 2.0.1 5950 Version 2.0.1 Install
2023-3-24 2.0.0 624 Version 2.0.0 Install
2023-2-11 1.4.0 4918 Version 1.4.0 Install
2023-1-17 1.3.1 2409 Version 1.3.1 Install
2023-1-5 1.3.0 1412 Version 1.3.0 Install
2023-1-1 1.2.4 477 Version 1.2.4 Install
2022-12-25 1.2.3 753 Version 1.2.3 Install
2022-12-18 1.2.2 693 Version 1.2.2 Install
2022-12-17 1.2.1 247 Version 1.2.1 Install
2022-11-12 1.2.0 3563 Version 1.2.0 Install
2022-10-28 1.1.2 1099 Version 1.1.2 Install
2022-10-1 1.1.1 1107 Version 1.1.1 Install
2022-9-22 1.1.0 697 Version 1.1.0 Install
2022-7-26 1.0.0 2231 Version 1.0.0 Install
2022-7-13 0.1.1 600 Version 0.1.1 Install
2022-6-29 0.1.0 553 Version 0.1.0 Install
2022-3-23 0.0.1 1128 Version 0.0.1 Install