#NGO Play Mode scenario instance doesn't enter Play Mode

1 messages · Page 1 of 1 (latest)

empty oak
#

Hey all, I posted this on the forums too, but let's see if I also could get some answers here.

I'm working on a 2 player co-op prototype that I got working in Project A. Local co-op worked fine, and I was also able to verify they online multiplayer worked as well with the use of Play Mode scenarios with additional editor instance with both having tags (Player 1 and Player 2).

I then needed to move my the multiplayer functionality in to the main prototype project. I got everything sorted out, local co-op works just like it did in the Project A. But when I wanted to verify that my online co-op worked, I noticed that the Multiplayer Play Mode doesn't work properly in the other project. I set up everything the same as in Project A, the instance is created and the scene (doesn't matter which scene, they all behave the same) loads and renders, but the second instance never goes to Play Mode. Stats popup says "- FPS (Playmode Off)" and I can't figure out why it's not starting up. I guess it could be some Unity project setting somewhere, but I can't figure out what.

Thanks for the help!

steady grove
#

Does it work outside of play mode scenario? Like if you just open MPPM and activate player 2.

empty oak
#

Nope. It opens up normally and shows the scene that I have open, but it never responds to editor going to Play Mode (the virtual player window doesn't change color for example).

steady grove
#

That is odd. What versions of Unity and MPPM are you using? You also might want to try deleting the Library folder and reimporting

empty oak
#

Alright, I found the culprit. I have an Editor script that runs whenver game starts (or a build is made) that I use to initialize scriptable objects data when game loads. It has these two lines of code

FileInfo[] files = dirInfo.GetFiles();```

It’s the `dirInfo.GetFiles()` that is causing the MPPM to not play.