suriyun-production / battle-io-docs

This is document for Battle IO project (https://www.assetstore.unity3d.com/#!/content/101113?aid=1100lGeN)
https://suriyun-production.github.io/battle-io-docs/
1 stars 0 forks source link

Matchmaking problem #26

Closed Vauxvogh closed 3 years ago

Vauxvogh commented 3 years ago

Hey theres a slight problem with the matchmaking. It only seems to be connecting to whatever scene is set on the "Online Scene" under "Game Network Manager". No matter what you set the filters too it will only connect to that scene.

Vauxvogh commented 3 years ago

I figured it out, I just had to add some code to the matchmaking script.

insthync commented 3 years ago

How you fix it ?

Vauxvogh commented 3 years ago

I added this code from ui photon game create script, and it seems to work fine. however sometimes my name doesn't show the very first time i start a match. But that only happens every now and then

this code: var networkGameManager = SimplePhotonNetworkManager.Singleton as BaseNetworkGameManager;

SimplePhotonNetworkManager.Singleton.SetRoomOnlineScene(filter.onlineScene); networkGameManager.SetGameRule(filter.gameplayRule);

Vauxvogh commented 3 years ago

Also ads dont seem to work anymore, you might have to change some code. I'm using unity 2019.4.7. It automatically installs advertisement and thus wont let you have monetization from asset store installed with it.