Hey all, I compiled a small simple chat override in VS Studio OSX, compiled the DLL successfully (linking in Assembly-CSharp as is needed).
Type of project is Code Library.
Getting:
ModManager:LoadMods()
GameManager:Awake()
2025-04-15T11:13:49 1.183 ERR [MODS] Failed loading mod from folder: 'SotaBot'
2025-04-15T11:13:49 1.183 EXC Object reference not set to an instance of an object
at Mod.LoadDefinitionFromFolder (System.String _path) [0x00040] in <15c6d145cfac4c6b8f4bbc5a9a1cc62d>:0
at ModManager.loadModsFromFolder (System.String _folder) [0x0004e] in <15c6d145cfac4c6b8f4bbc5a9a1cc62d>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
ModManager:loadModsFromFolder(String)
ModManager:LoadMods()
GameManager:Awake()
My ModInfo.xml is:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<Name value="SotaBot">
<DisplayName value="Sotas Bot">
<Version value="1.1.0.1">
<Description value="The bot you wanted or not">
<Author value="Macfelon">
<Website value="None">
</xml>
Any ideas on what's going awry?
Created a class:
public class API : IModApi
Type of project is Code Library.
Getting:
ModManager:LoadMods()
GameManager:Awake()
2025-04-15T11:13:49 1.183 ERR [MODS] Failed loading mod from folder: 'SotaBot'
2025-04-15T11:13:49 1.183 EXC Object reference not set to an instance of an object
at Mod.LoadDefinitionFromFolder (System.String _path) [0x00040] in <15c6d145cfac4c6b8f4bbc5a9a1cc62d>:0
at ModManager.loadModsFromFolder (System.String _folder) [0x0004e] in <15c6d145cfac4c6b8f4bbc5a9a1cc62d>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
ModManager:loadModsFromFolder(String)
ModManager:LoadMods()
GameManager:Awake()
My ModInfo.xml is:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<Name value="SotaBot">
<DisplayName value="Sotas Bot">
<Version value="1.1.0.1">
<Description value="The bot you wanted or not">
<Author value="Macfelon">
<Website value="None">
</xml>
Any ideas on what's going awry?
Created a class:
public class API : IModApi