Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFM - Feature Request for Logging #86

Open
etmoonshade opened this issue Oct 25, 2020 · 6 comments
Open

PFM - Feature Request for Logging #86

etmoonshade opened this issue Oct 25, 2020 · 6 comments

Comments

@etmoonshade
Copy link

I just spent most of the day trying to figure out what ended up being a mod conflict with a few mods that use PFM.

Would it be possible to add (either to the SMAPI debug log or the main log) something that lets us know that two PFM configs are stomping on each other somehow, and which one is the winner?

(my specific case was using Quality Artisan Products with Custom Producer Framework)

@etmoonshade
Copy link
Author

Just to add: https://smapi.io/log/26daa02be72d4924be483a4b8352c1cd is a log that I produced for another bug I was running into, but shows the above situation. I have plenty of warnings for stuff that doesn't exist (I assume that QAP has configs that include something else,) but I don't have any warnings explicitly saying that there's a conflict of some sort.

@Digus
Copy link
Owner

Digus commented Oct 25, 2020 via email

@etmoonshade
Copy link
Author

That one is reporting, yes, and that's the odd part to me - the next couple of lines aren't saying anything about QAP not being able to override CPF, unless I'm missing it. It's funny, because between that and the later log lines with "No Output found," I assumed that it'd also log some detail about recipe conflicts.

It's definitely conflicting in some way, because the PFM kegs I used correctly used the QAP recipes (which basically say quality in = quality out as far as I understand the configs,) while a vanilla keg placed next to it did not. I'll admit though, now that I'm thinking it through, it might be that the way it's conflicting isn't something that the code is expecting - maybe adding the same property twice or something? I'll look at QAP and CPF configs side by side and see if I can come up with something useful.

@etmoonshade
Copy link
Author

So, CPM looks like this (keeping in mind that I was using coffee for my tests - quick brewing and all that):
{ //Coffee
"ProducerName": "Keg",
"InputIdentifier": "433",
"InputStack": 5,
"MinutesUntilReady": 120,
"OutputIdentifier": "395",
"Sounds": [ "Ship", "bubbles" ],
"PlacingAnimation": "Bubbles",
"PlacingAnimationColorName": "DarkGray"
},

while QAP looks like this:
{ //Coffee
"ProducerName": "Keg",
"InputIdentifier": "433",
"InputStack": 5,
"MinutesUntilReady": 120,
"OutputIdentifier": "395",
"Sounds": ["Ship", "bubbles"],
"PlacingAnimation": "Bubbles",
"KeepInputQuality": true,
"PlacingAnimationColorName": "DarkGray"
},

The only difference between them is the "KeepInputQuality" line. Many of the other recipes are similar, although mead specifically has some extra config to use the input honey to determine the properties of the mead.

@Digus
Copy link
Owner

Digus commented Oct 25, 2020 via email

@etmoonshade
Copy link
Author

As far as I can tell, it was consistent about whether it used the rule or not - a vanilla keg will NOT use the rules, while the upgraded kegs I have (which are named in the format of "ProducerName": "Keg - Copper", so I don't think that counts as a conflict) WILL use the rules. Sorry if I was confusing about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants