Forum rules - please read before posting.

Document menu bug

Since I added a menu with appear type "On View Document", I get a bug that can be reproduced like this:

  1. Add an NPC that is associated with Player 2 to the scene
  2. Play the scene letting the default player (Player 1) enter on the default PlayerStart
  3. Switch to Player 2 (using replace associated NPC) - note how the document menu is now opened

This only happens the first time you switch to Player 2, and it's triggerd by line 1607 in SaveSystem. The resulting call to RuntimeDocuments.OpenDocument() will have pass in the value of 0 the first time you switch to Player 2, and -1 after that.

Thanks

Comments

  • edited July 2019

    Please always provide your Unity and AC version numbers.

    Does this occur in the Editor, or Builds? What platform are you building to?

  • Unity: 19.1.12f1
    AC: 1.68.4

    This occurs in editor and on build (PC).

  • Recreated, but only if data is assigned to the 2nd player beforehand. This can happen if e.g. they are given an inventory item when the game begins. Will work on a fix.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.