iirc it does (but rn this mod is waiting on a 1.6 update (official or not) EDIT, sorry, I didn't realize that you won't be able to reply without an alt account/ban appeal
Somewhere in the code the mod calls a null reference, which causes a recursive loop. There's nothing I can do to fix it sadly.
This mod failed in the GameLoop.DayStarted event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at BetterGarbageCans.BetterGarbageCansMod.SetBirthdayGift(GARBAGE_CANS can, Item favItem) in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 178 at BetterGarbageCans.BetterGarbageCansMod.SetupTheBirthdayTrash() in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 168 at BetterGarbageCans.BetterGarbageCansMod.GameLoop_DayStarted(Object sender, DayStartedEventArgs e) in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 65 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
For those who are interested in making this mod compatible with Automate, I may have figured out a way of doing just that (new to modding though, so forgive me if this winds up wrong):
Go to the config.json file for Automate in your Mods folder (not Better Garbage Can's config file). You'll need to edit this file directly—you won't be able to make these changes using GCMC, unfortunately. (To generate the config file, be sure to run the game once with the mod installed, it'll show up in your folder after that.)
In the config file, you should see a line labeled "MachineOverrides"—this is where you'll be entering new data.
The internal machine ID automate is using for garbage cans is "TrashCan". Once I figured that out, I followed the instructions found here.
You need to manually enter restrictions for TrashCan. It should have Priority=0, Enabled=False.I'll copy/paste the full text of my modified config file below for reference—note that I've disabled shipping bins as well, which you may or may not also want (those can be edited using GCMC).
I first tested this by placing a chest next to one of the trash cans in town, prior to editing the config file. Then, I typed in automate summary into SMAPI console commands, and TrashCan came up as an actively automated machine. After editing the config and retesting, TrashCan no longer displayed as automated, but as disabled alongside my shipping bins.
For added measure, I also disabled (changed to false) the "AutomateGrantsXp" config setting for the Binning Skill mod.
I haven't tested it beyond that, but I'm hopeful! Lmk if you try it out as well and it works for you. Happy dumpster diving!
I don't quite understand but basically if i edited the code like you instructed the automate mod should be able to automatically search through trashcan multiple time per day? Because that's the thing that is bugging me atm, i can't get automate to search through trashcan multiple times, it only does it at the start of the day
Oh no, my workaround is intended to disable automate from interacting/interfering with the trash bins entirely. I figured using them together created some sort of inconsistency in-game or even a loading error—which, if not the case, then my suggestion is probably a moot point. But I meant compatibility in terms of preventing anything weird in-game, but not in terms of integration, unfortunately.
68 comments
EDIT, sorry, I didn't realize that you won't be able to reply without an alt account/ban appeal
This mod failed in the GameLoop.DayStarted event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at BetterGarbageCans.BetterGarbageCansMod.SetBirthdayGift(GARBAGE_CANS can, Item favItem) in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 178 at BetterGarbageCans.BetterGarbageCansMod.SetupTheBirthdayTrash() in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 168 at BetterGarbageCans.BetterGarbageCansMod.GameLoop_DayStarted(Object sender, DayStartedEventArgs e) in C:\Code\Repos\Better Garbage Cans\Better Garbage Cans\BetterGarbageCansMod.cs:line 65 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
I first tested this by placing a chest next to one of the trash cans in town, prior to editing the config file. Then, I typed in automate summary into SMAPI console commands, and TrashCan came up as an actively automated machine. After editing the config and retesting, TrashCan no longer displayed as automated, but as disabled alongside my shipping bins.
For added measure, I also disabled (changed to false) the "AutomateGrantsXp" config setting for the Binning Skill mod.
I haven't tested it beyond that, but I'm hopeful! Lmk if you try it out as well and it works for you. Happy dumpster diving!
Modified Config Example (Automate):
{
"Enabled": true,
"AutomationInterval": 60,
"Controls": {
"ToggleOverlay": "U"
},
"ConnectorNames": [
"Workbench"
],
"JunimoHutBehaviorForGems": "AutoDetect",
"JunimoHutBehaviorForFertilizer": "AutoDetect",
"JunimoHutBehaviorForSeeds": "AutoDetect",
"WarnForMissingBridgeMod": true,
"MachineOverrides": {
"ShippingBin": {
"Priority": 0,
"Enabled": false
},
"MiniShippingBin": {
"Priority": 0,
"Enabled": false
},
"TrashCan": {
"Priority": 0,
"Enabled": false
}
}
}