#Custom boomboxes pack
8 messages · Page 1 of 1 (latest)
so then in the plugins is the Your own personal boomboxes folder with then the 2 custom boomboxes i want added
but it seems to not be working
i also made the dll which looks like this:
using BepInEx;
using HarmonyLib;
using BepInEx.Logging;
using BepInEx.Configuration;
using UnityEngine;
using System.Reflection;
namespace OuchHouseMusic
{
[BepInPlugin(modGUID, modName, modVersion)]
[BepInProcess("Lethal Company.exe")]
[BepInDependency("ImoutoSama.PersonalBoombox", "1.1.0")]
public class OuchHouseMusicPlugin : BaseUnityPlugin
{
private const string modGUID = "Oneway.OuchHouseMusic";
private const string modName = "Ouch House Music!";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony(modGUID);
internal ManualLogSource logger;
public ConfigEntry<bool> overridePriceFlagConfig;
public ConfigEntry<int> overridePriceValueConfig;
void Awake()
{
logger = BepInEx.Logging.Logger.CreateLogSource(modGUID);
logger.LogInfo($"Plugin {modName} has been added!");
overridePriceFlagConfig = Config.Bind("General", "Override Price Flag", false, "If you want to override price of the boomboxes, you MUST set this to true.");
overridePriceValueConfig = ConfigBindClamp("General", "Override Price Value", 30, "Overrides the price of the boomboxes by this value. Clamped from 0 to 1000.", 0, 1000);
var request = PersonalBoombox.PersonalBoomboxPlugin.AddFromAssemblyDll(Assembly.GetExecutingAssembly().Location);
request.overridePriceFlag = overridePriceFlagConfig.Value;
request.overridePriceValue = overridePriceValueConfig.Value;
}
public ConfigEntry<int> ConfigBindClamp(string section, string key, int defaultValue, string description, int min, int max)
{
var config = Config.Bind(section, key, defaultValue, description);
config.Value = Mathf.Clamp(config.Value, min, max);
return config;
}
}
}
with all the refrences made
could someone please help? Appreciate anyone taking a look into this!