I just rewrote the entire mod and used reflection instead of directly accessing the method and fields. Please try out version 1.2.0 and see if it works for you!
[Manager] Injection... [Manager] Initialize. [Manager] Version: 0.32.4.0. [Manager] OS: Microsoft Windows NT 10.0.26100.0 AMD64. [Manager] Net Framework: 4.0.30319.42000. [Manager] Unity Engine: 2022.3.591. [Manager] Game: The Black Grimoire: Cursebreaker. [Manager] IsSupportOnSessionStart: False. [Manager] IsSupportOnSessionStop: False. [Manager] Mods path: C:\Program Files (x86)\Steam\steamapps\common\Cursebreaker\Mods. [Manager] [Error] Class 'Scr_UI_MainMenu' not found. [Manager] Injection canceled. - Loaded All Assemblies, in 0.263 seconds - Finished resetting the current domain, in 0.001 seconds <RI> Initializing input. <RI> Input initialized. <RI> Initialized touch support. The tree TT_BirchForestBackground couldn't be instanced because one of its LODs contains renderer of type other than MeshRenderer and
2025 here, for me setting it with: <stackSize>10000</stackSize> <selectedType>2</selectedType> <storageSize>50</storageSize>
works fine
selectedType 0 is set size. i tried stacksize 10000 which annoyed me because it also affected gold which was infinite before selectedType 1 for multiply, i tried it with stackSize 10 which worked poorly, it seemed to multiply by 10 every time i picked up an item rather than just once globally selectedType 2 is the game's max value. just like gold coins\firewood are. this option works well as far as i've seen so far. with this setting the stackSize is ignored and everything is infinite\max stack size
Doesn't appear to work at present but if yer gonna try the settings button wasn't functioning for me, you want the settings.xml which loads after the first time you close the game after loading a save with the mod installed, it's in your (gamepath)/mods/stacksize folder. Editing it to 999 stacksize didn't have an effect for me.
As of the latest update (12/26/24) this mod seems to be working again at changing stack sizes for stackable items. The mod manager's settings menu doesn't seem to be functional so you'll have to adjust settings in the .XML to this: <stackSize>9999</stackSize> <selectedType>0</selectedType> <storageSize>90</storageSize>
Also, if your bag suddenly isn't showing 90 slots, try dropping them and then picking them back up.
I poked through the game's code and this mod's code. From my understanding, it seems like updates to the game change where items and stacks are handled whereby this mod gets an outdated location to inject changing the max stack sizes. Though this mod does try to grab new locations if the game does update, I'm guessing it's failing to do so due to the game developer changing their code in some way.
If I knew a little more about how to write C#/Unity mods I could probably post a (likely temporary) fix. I have barely got to play the game yet but if the stack size and inventory limits become too annoying maybe I'll take a crack at it.
Update: The game's code is obfuscated and seems to be changing constantly with every update, I don't think this is a very mod-friendly game.
I do not have a xml file and I cant modify the stack size from 99 in the mod menu. Not sure what is going on here, but I cant get more than 99 coins at a time xD
Same here. :/ LOG: [StackSize] [Exception] OnGUI: MissingFieldException - Field not found: Scr_ItemHandler .Scr_ItemHandler.MKIDPOHGHEG Due to: Could not find field in class System.MissingFieldException: Field not found: Scr_ItemHandler .Scr_ItemHandler.MKIDPOHGHEG Due to: Could not find field in class at StackSize.Main.OnGUI (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00000] in <c8aeb6e649264b01bde3c798a32cff36>:0 at UnityModManagerNet.UnityModManager+UI.DrawTab (System.Int32 tabId, UnityEngine.Events.UnityAction& buttons) [0x0080b] in <14ec2f7e81914733b97824b7115fa7da>:0
39 comments
[Manager] Initialize.
[Manager] Version: 0.32.4.0.
[Manager] OS: Microsoft Windows NT 10.0.26100.0 AMD64.
[Manager] Net Framework: 4.0.30319.42000.
[Manager] Unity Engine: 2022.3.591.
[Manager] Game: The Black Grimoire: Cursebreaker.
[Manager] IsSupportOnSessionStart: False.
[Manager] IsSupportOnSessionStop: False.
[Manager] Mods path: C:\Program Files (x86)\Steam\steamapps\common\Cursebreaker\Mods.
[Manager] [Error] Class 'Scr_UI_MainMenu' not found.
[Manager] Injection canceled.
- Loaded All Assemblies, in 0.263 seconds
- Finished resetting the current domain, in 0.001 seconds
<RI> Initializing input.
<RI> Input initialized.
<RI> Initialized touch support.
The tree TT_BirchForestBackground couldn't be instanced because one of its LODs contains renderer of type other than MeshRenderer and
It said "Injection Canceled".
for me setting it with:
<stackSize>10000</stackSize>
<selectedType>2</selectedType>
<storageSize>50</storageSize>
works fine
selectedType 0 is set size. i tried stacksize 10000 which annoyed me because it also affected gold which was infinite before
selectedType 1 for multiply, i tried it with stackSize 10 which worked poorly, it seemed to multiply by 10 every time i picked up an item rather than just once globally
selectedType 2 is the game's max value. just like gold coins\firewood are. this option works well as far as i've seen so far. with this setting the stackSize is ignored and everything is infinite\max stack size
Doesn't appear to work at present but if yer gonna try the settings button wasn't functioning for me, you want the settings.xml which loads after the first time you close the game after loading a save with the mod installed, it's in your (gamepath)/mods/stacksize folder. Editing it to 999 stacksize didn't have an effect for me.
<stackSize>9999</stackSize>
<selectedType>0</selectedType>
<storageSize>90</storageSize>
Also, if your bag suddenly isn't showing 90 slots, try dropping them and then picking them back up.
If I knew a little more about how to write C#/Unity mods I could probably post a (likely temporary) fix. I have barely got to play the game yet but if the stack size and inventory limits become too annoying maybe I'll take a crack at it.
Update: The game's code is obfuscated and seems to be changing constantly with every update, I don't think this is a very mod-friendly game.
[StackSize] ItemList field found.
[StackSize] maxStack value found: 2100000000
[StackSize] ItemList field set.
checking 925
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 68 unused Assets to reduce memory usage. Loaded Objects now: 102700.
Total: 43.129000 ms (FindLiveObjects: 8.905800 ms CreateObjectMapping: 1.640600 ms MarkObjects: 32.260600 ms DeleteObjects: 0.321600 ms)
LOG:
[StackSize] [Exception] OnGUI: MissingFieldException - Field not found: Scr_ItemHandler .Scr_ItemHandler.MKIDPOHGHEG Due to: Could not find field in class
System.MissingFieldException: Field not found: Scr_ItemHandler .Scr_ItemHandler.MKIDPOHGHEG Due to: Could not find field in class
at StackSize.Main.OnGUI (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00000] in <c8aeb6e649264b01bde3c798a32cff36>:0
at UnityModManagerNet.UnityModManager+UI.DrawTab (System.Int32 tabId, UnityEngine.Events.UnityAction& buttons) [0x0080b] in <14ec2f7e81914733b97824b7115fa7da>:0