Lawlzee / UnityMapGenerator

6 stars 2 forks source link

[Bug] Modded enemies, interactables, and bosses do not spawn at all in stages #6

Open Thresh90 opened 9 months ago

Thresh90 commented 9 months ago

The following mods with its own custom enemies, bosses, and interactables dont seem to be in the map pool, the mods are the following:

-Starstorm 2: Enemies and Interactables are missing -Regigigas: Boss isn't in the spawnpool -Steel Mechorilla: Boss isn't in the spawnpool -Moffein's Clay Men, Archaic Wisp, and Ancient Wisp: Boss and enemies aren't in the spawnpool

Lawlzee commented 9 months ago

Hi, thanks for reporting the bug.

My mod utilizes the vanilla enemy and interactable pool from the default stages. If those mods haven't made any modifications to those pools, I can't do much to support them.

I may take a look to see how those mods add enemies and interactables to the stages to determine if it's possible to support them, but I don't think it will be easily achievable.

Moffein commented 9 months ago

My enemy mods use R2API's DirectorAPI to add enemies to each stage. The ContentPack of most of them have the related director card available for other mods to access and use. Let me know if you need anything, I'm interested in this topic.

Lawlzee commented 9 months ago

For the Regigigas and Steel Mechorilla, you may need to edit the config to add the random stage

image

Lawlzee commented 9 months ago

Oh actually, the issue is my mod is not compatible with RoR2.DirectorAPI because it caches the monsters and interactables DccsPools of my stage and uses the cached version of the DccsPools every time it loads my stage. It has the effect of always spawning the same enemies and interactables on my stage, which is not desirable.

So I had to trick RoR2.DirectorAPI to think that my stage was not the same: image

I'll try this to reset the DccsPool cache of DirectorAPI instead. That should fix the issue.