You are viewing a potentially older version of this package. View all versions.
AMRV-ConfigurableCompany-2.5.0 icon

ConfigurableCompany

An API to allow modders to create save-dependant configurations that remain between matches and can sync. These configs will be shown in an in-game menu

Date uploaded 10 months ago
Version 2.5.0
Download link AMRV-ConfigurableCompany-2.5.0.zip
Downloads 7311
Dependency string AMRV-ConfigurableCompany-2.5.0

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

ConfigurableCompany

Add a in-game menu that contains organized configurations that automatically sync between players if required. These configurations are save-dependant and are saved between sessions.

This is an API, does not contain configurations itself, only the tools for other developers to implement their own. You can have a mod that uses this API and also provides some features with Lethal company variables.

NuGet package
Contact me

This is BepinEx Plugin that allows the developer to create configurations that will be displayed in-game so the user can modify them freely.

How it works

If any configuration is created, a menu will appear alongside the file selection menu where the user will be able to modify some values to customize their game.

The configurations do save between matches so no need to modify them every time you start the same game. Also configurations are file-dependant so you can have different values on each save slot.

For example you can have a x10 enemy spawn multiplier for your first game slot and in the second game slot have a x0 enemy spawn multiplier.

Guides

How to install Recommended to use a mod manager
Setup for developing Guide for visual studio

Developing categories Developing configurations Developing pages Using events

Screenshots

Ingame menu (filled with random data)

Menu image

Contact

Right now there is no github for the project nor issue page so I can only ask to contact using discord to the_ansuz or using the lethal company modding discord.

CHANGELOG

3.7.0

Fixed

  • Event invocation not working under certain circumstances
  • Presets list not updating after adding/removing a preset
  • Memory optimizations and memory freeing at the start of the game
  • Updated mod to v65
  • Fixed menu loader appearing on clients after joining a game

Added

  • New popup menu to confirm important actions (saving, deleting or modifying saves)

Removed

  • Disabled some redundant debug logs (only on release version)

3.6.0

Fixed

  • Added a loading screen to represent the progress loading the mod and menu
  • Added code optimizations to load 10 times faster

Added

  • Seeds now will be saved with the configurations

Modified

  • Presets will not default to any specific preset, rather it will remain empty until one is selected

3.5.0

Fixed

  • Presets not working with low monitor resolutions
  • Menu state for categories not saving

Added

  • Menu state for sections now will save among state for categories
  • Added SpecialSeed to allow custom seeds that might trigger special effects
  • Added more accessors for BuildTooltip class

Modified

  • Configuration randomization now allows for seeds formed from base 36 characters (all numbers and letters)
  • Configuration randomization now has an extra parameter, InfoProvider which determines what kind of seed is being used
  • The menu will notify the user when used without any other mod that adds configurations

3.4.0

Fixed

  • Change reason for synchronization was set to READ_FROM_FILE, now has been changed to SYNCHRONIZATION
  • Sliders will now display the correct state according to their modification

Added

  • Configurations can now be randomized, by default it will select a value close to default but you can implement your randomizer for your configurations using the CRandomizer class and RNGProvider for custom random algorithms.
  • Added a help button with information about how to use the menu.

Modified

  • Updated all wikies with the usage of the menu

3.3.2

Added

  • string and bool configurations can now be converted to more types

3.3.1

Fixed

  • Fixed a regression causing the mod to soft crash when the preset folder didn't exist

3.3.0

Fixed (hotfix in previous release)

  • Fixed Configurable company crashing always
  • Fixed preset creationg not updating instantly

Added

  • Configurations now display their name in italic when they are not saved
  • Configurations now display their name in bold when they do not match their default value.
  • Added optional override method OnModifiedState in ConfigDisplay to implement your own actions depending if the configuration matches it's default value or current saved value.
  • Added optional override method ValueEquals tin ConfigDisplay to implement your checker for the current value.
  • Sections now have an arrow to indicate their open state

Modified

  • Presets will now use the saved configurations rather than save the temporal values and use them

3.2.0

Fixed

  • Fixed DecimalRangeTypes and IntegerRangeType returning minimum value two times as tuple.
  • Fixed InputValidator instantiation warning spam.

Added

  • Added CBind<T> to directly access configuration values as a specific type.
  • Added ConfigChangeSingle to listen for changes on a specific configuration.
  • Added configuration presets. These presets will be shared with your profile.
  • Added builder accesors for easier creation of CCategories, CSections and CConfigs.
  • New wiki page for first steps and first config.

Modified

  • Configuration categories can now be closed from the sidebar.
  • Configuration sections can now be hidden or shown for better organization.

3.1.0

Fixed

  • Hard crash when trying to get value of range configuration type
  • Typo on CConfigBuilder Toggleable

Added

  • Accesibility methods for RangeTypes

Removed

  • Accesibility methods for number variables now require to input both arguments
  • Unnecesary console logs in release version

3.0.1

Modified

  • Code cleanup

Fixed

  • Now you can change configurations for BetterSaves's new file
  • Fixed incorrect Canvas attachment of the menu with some mods

3.0.0

Modified

  • Configurations now are not shared between profiles
  • Reworked the whole interface
  • Reimplemented everything

Added

  • Configurations now will synchronize in real time
  • Added sections to split categories even more
  • New configuration type Range wich accepts any agrupation of two values (array[2], Tuple<,> and ValueTuple<,>)

Fixed

  • Compatibility issues with many mods such as better saves

2.6.0

Fixed

  • Menu not appearing when hosting after joining a game

Added

  • Configurations can be reverted by clicking while holding Shift key
  • Configurations can be reset by clicking while holding Ctrl + Shift
  • Added experimental tag
  • Added buttons to copy and paste configurations so you can share them with your friends

Deprecated

  • The attribute Needs restart is now obsolete, it will be removed in future releases.
    The decision has been made because developers should try to make their settings modificable even after the game has started. This might be hard to understand but Ill be glad to help anyone who needs asistance with it, you can also check Lethal company variables and see how it implements this functionality.

Removed

  • Removed the log entry when loading configurations from file

2.5.2

Modified

  • Now configurations will not depend upon the region/language of the computer

2.5.3

  • Updated project target framework for net standard 2.1

2.5.2

Added

Modified

  • Internal changes to in-game menu for better compatibility implementation

Fixed

  • Configurations won't reset to their previous state when clicking [ BACK ] button

2.5.1

Added

  • Added public project repository
  • Added Issues
  • Added github wiki
  • Added new contact methods
  • Added Information / Guide button to show a simple usage for the menu

Modified

  • Updated contact information in readme

2.5.0

If you created your own ConfigurationType you MUST update your mod with the newer internal implementation

Added

  • New configuration type ConfigurationTypes.StringOfLength(int) that allows for a string with a maximum length (this can go up to 48 characters)
  • New configuration type ConfigurationTypes.Options(Enumeration / collection of values) that let the user choose one option from a list, you can get back the value as an int (for the index) or as a T (for the value at the index)

Modified

  • Now config getters allow to get their value as other types, for example a float config as an int without casting
  • The image now is from a trusted somain so everyone should be able to see it (NuGet only)
  • Added spacing to the tooltip's type range values
  • Category open state now persists during sesions
  • Changed icon to a more modern design

Fixed

  • Removed strict casting when getting configuration values as a T type
  • Configuration values now reset correctly with newly generated configurations

2.4.1

Fixed

  • Configuration pages now have a better title fitting with font scaling

Modified

  • Default page and category now will only appear if a developer uses them (a getter will spawn them)

2.4.0

Added

  • New configuration types: RangedInteger, RangedFloat and Slider (a slider that allows to set a min and max values)

Fixed

  • Page changing to the left is now cyclic

2.3.4

Fixed

  • The disabled menu information now displays correctly
  • Menu not being displayed again when leaving using leaderboard button

2.3.3

Modified

  • Now there is no configuration menu for challenge mode (this is a temporal change and might change depending on the result of the voting. You can vote in the official modding discord or contact directly to the_ansuz)

Added

  • The voting information is displayed when selecting the challenge file

2.3.2

There is absolutely nothing added, some people just want to see the mod updated to make sure it works with the next update

2.3.1

Added

  • v47 compatibility

Modified

  • Updated mod information
  • Reset file now resets even configs that are not loaded (deleting the config file)

Fixed

  • Fixed change file error when there are no mod configs

2.3.0

Added

  • Configurations are now organized in different pages

Fixed

  • Reworked 2.2.0 changes
  • Quit button not working on specific circumstances