You are viewing a potentially older version of this package. View all versions.
gnonme-BoneLib-1.2.0 icon

BoneLib

A BONELAB mod for making life easier for other mod creators.

Date uploaded 2 years ago
Version 1.2.0
Download link gnonme-BoneLib-1.2.0.zip
Downloads 3724
Dependency string gnonme-BoneLib-1.2.0

This mod requires the following mods to function

LavaGang-MelonLoader-0.5.7 icon
LavaGang-MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

Preferred version: 0.5.7

README

BoneLib

A BONELAB mod for making life easier for other mod creators.

BoneLib is fully open source so feel free to make a PR for new features and bug fixes. Just make sure the code is commented/easily understandable, and doesn't noticeably affect performance.

Features

  • Easy access to data related to the player (held items, position, controllers, current avatar, etc)
  • Events for common actions, such as guns firing, grabbing items, changing avatars, etc
  • Helper and extension methods for changing the RPM of guns, damaging enemies, getting clean object names
  • Extension methods to call functions with nullable parameters that would otherwise crash the game
  • Spawn message boxes for the player
  • Lots of other small features

Many more features will be added as we continue to develop the mod.


User Preferences

You will have to run the game once with the mod installed before the preferences will show up.

Preferences are stored in UserData\MelonPreferences.cfg.

  • LoggingMode: "NORMAL" or "DEBUG". For most people normal is fine, debug will just show more info to help with development.

Auto Updater

By default this mod will automatically update to the latest release from github when you launch the game. If you want to disable this for any reason, set OfflineMode to true in the preferences file. If you haven't run the game yet and don't have that file, create it and add the following lines to it.

[BoneLibUpdater]
OfflineMode = true

Credits

Gnonme / L4rs / Adidasaurus: Main developers

Parzival: Added enum with all game layers, improved documentation

Extraes: Ported nullable extension methods (originally made by WNP78) from MTINM, lots of testing


Changelogs

v1.2.0:

  • Added Hooking.OnPlayerReferencesFound since the melonloader level load/init functions are unreliable
  • Added a way to spawn message boxes
  • Fixed Nullables being in the wrong namespace
  • Fixed Nullables crashing the game
  • Removed extensions backwards compatibility for wrong namespace
  • Code cleanup

v1.1.0:

  • Added Hooking class with events for common actions
  • Added GetPhysicsRig() and GetCurrentAvatar() to Player class
  • Added GameLayers enum
  • Added extension methods to allow using functions with nullable parameters
  • Fixed SetRpm() and DealDamage() extension methods being in the wrong namespace
  • Other small fixes and changes

v1.0.0:

  • Initial release