ViewID vs InstantationId

Options
What a heck!

My slave client asks the master client instantiate a new NPC via RPC call, so ------>

My master client instantiates NPC at runtime it get ViewId 2706. But it also shows, that it's intantiateId is 2705.

On my slave client that same NPC got ViedId as 2705. As well it's instantiateID is 2705.

So, as you can imagine, this won't work at all as photon requires same VIEWID for both NPCs to control them.

So, what now? Forcing my slave client to use 2706 by data, what I include to InstantiateSceneObject(blaablaa....... Object original Viewid); And take it on my slave NPC Start() OR Wake()? routine and replace the original one (2705) with 2706?
Or what?

This photon is a FAR FAR AWAY FROM STABLE!

Also instantiating only via master client is ridicilous behaviour. I can't see ANY reason, why slave clients couldn't instantiate objects as well! It will be take a loooooong time, before I'm villing to pay anything about photon.

Answers

  • JOKaija
    Options
    It seems, it wasn't the only problem.

    I downloaded whole photon package for a new empty Project. Now I got same viewIds for master and slave for NPCs what are instantiated By RPC call (slave connected), BUT! The NPCs what I instantiated as scene objects by master client BEFORE any client connects have now exactly same problem. The master have different ID values (view/instantiateID) and the slaves have all as instantiateID. THIS IS AN ANNOYING!
  • JOKaija
    JOKaija
    edited November 2016
    Options
    Incredible!!!

    I made a third clean installation & scene. Now it works as it should be.

    I can't find any differences between this new against older ones.

    When checking code parts with verifier, there isn't any differences, but
    this third try works and two oldest won't.