Starbound

Starbound

Enhanced Storage
Zancuno 2 May, 2019 @ 3:25pm
Treasure Pool Patches need Compatibility Fix
Hi, I've been having issues with the Essence of Aura dropping with the Lucario Race Mod. The problem seems to be Enhanced Storage overwriting the monster drops treasure patch in the Lucario Race.

The Lucario Race has been updated to have a more flexible coding regarding patching treasure pools. This is thanks to RPG Growth schooling me pretty good.

As an effort to increase your compatibility, it's best to share what I have been taught.

What Enhanced Storage needs is to run test patches instead of purely adding.

A previous fix to the Lucario Race incorporated this and also changed the mod priority to load after Enhanced Storage to get the Lucario Race to work seamlessly with RPG Growth and Enhanced Storage. Although the latest updates of Enhanced Storage have made Enhanced Storage load after the Lucario Race and still before RPG Growth.

This is what RPG Growth sent me to fix compatibility between it and the Lucario.

[ { "op": "test", "path": "/largefishtreasure/0/1/fill", "inverse": false }, { "op": "add", "path": "/largefishtreasure/0/1/fill/-", "value": { "pool": "experienceorbpool" } } ], [ { "op": "test", "path": "/largefishtreasure/0/1/fill", "inverse": true }, { "op": "add", "path": "/largefishtreasure/0/1/fill", "value": [{ "pool": "experienceorbpool" }] } ],
That is for editing a single treasure pool.
So as to why Enhanced Storage needs this, I will explain.
Test patches run something before applying a patch. In this case it is checking for a path.
The path this is looking for is if there is a fill in the treasure pool. Both of these two test files to check to see if the path exists. If it exists then it simply adds the pool to the list already in fill. If it doesn't exist then the test patches add the new fill to the file.

What is happening with the Lucario is that since you are simply using an op add to patch the treasure pool for Storage Matter into the file, it will overwrite whatever fill already exists (because explained in the forums under the patching guide, adding kinda also works as replace for some reason.) Although if you added in these tests instead, it would look to see if something exists before it patches.

I know this is a big update for the mod considering all of the patches you have done to a majority of the treasure pools, although it would prevent any future compatibility issues with the treasure pools and save a few headaches.

Hope to hear from you soon.


Update
Hey Neo, just realized something totally crazy that never went over my head until I tried something.

I saw Enhanced Storage overwriting my drops with yours and gave it some time, before finally deciding to give in and put Enhanced Storage under "includes" to force you back in front and our mods work together again.

Then this happened:
[01:09:26.079] [Error] Application: threw exception during shutdown: (StarException) Asset dependencies form a cycle

Then it ALL came to me.

At one time, when Essence of Aura became a mob drop from the Lucario Race, I had only add patches. This didn't affect you at first. Although somewhere down the road, I updated the Lucario Race and Essence of Aura started dropping.

Somewhere you added the Lucario to "includes" for compatibility and it caused the essence of aura to stop dropping.

If you actually removed the Lucario from "includes" the essence of aura will drop again. Although no worries, like I mentioned up above, the Lucario race functions just like RPG Growth with their experience orb drops, so it won't cancel out the Storage matter drops.

Though what was said above about test patching, I would highly suggest implimenting that so something this unnecessary doesn't happen again and you can put whatever mod you want into "includes".
Last edited by Zancuno; 11 May, 2019 @ 1:52am
< >
Showing 1-1 of 1 comments
Zancuno 11 May, 2019 @ 1:54am 
Discussion updated 5/11/19
< >
Showing 1-1 of 1 comments
Per page: 1530 50