since upggrading to the latest AC - I get this error when i play the game and load the rudeboys hangout scene after the conversation with demonde.
on OUYA it causes the game to hang.
I/Unity ( 5758):
I/Unity ( 5758): NullReferenceException: Object reference not set to an instance of an object
I/Unity ( 5758): at AC.PlayerInteraction.GetActiveInvButtonID () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerInteraction.RestoreHotspotInteraction () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerInteraction.ContextSensitiveClick_Process (Boolean doubleTap, AC.Hotspot newHotspot) [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerInteraction.ContextSensitiveClick () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerInteraction.UpdateInteraction () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.StateHandler.Update () [0x00000] in <filename unknown>:0
I/Unity ( 5758):
I/Unity ( 5758): (Filename: Line: -1)
I/Unity ( 5758):
I/Unity ( 5758): NullReferenceException: Object reference not set to an instance of an object
I/Unity ( 5758): at AC.PlayerInteraction.GetActiveUseButtonIconID () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerCursor.DrawCursor () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.StateHandler.OnGUI () [0x00000] in <filename unknown>:0
I/Unity ( 5758):
I/Unity ( 5758): (Filename: Line: -1)
I/Unity ( 5758):
I/Unity ( 5758): NullReferenceException: Object reference not set to an instance of an object
I/Unity ( 5758): at AC.PlayerInteraction.GetActiveUseButtonIconID () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.PlayerCursor.DrawCursor () [0x00000] in <filename unknown>:0
I/Unity ( 5758): at AC.StateHandler.OnGUI () [0x00000] in <filename unknown>:0
I/Unity ( 5758):
I/Unity ( 5758): (Filename: Line: -1)
I/Unity ( 5758):
I'l trying to investigate why that's happening now.
Comments
Does these help?
I did notice that the position of the mouse when the scene changes matters somethow it took me 3-4 times to reprodeuce it.
if (interactionIndex >= KickStarter.runtimeInventory.hoverItem.interactions.Count && KickStarter.runtimeInventory.matchingInvInteractions.Count > 0)
Try changing it to this:
if (KickStarter.runtimeInventory.hoverItem.interactions != null && KickStarter.runtimeInventory.matchingInvInteractions != null && interactionIndex >= KickStarter.runtimeInventory.hoverItem.interactions.Count && KickStarter.runtimeInventory.matchingInvInteractions.Count > 0)
As for the OuyaIntegration script not being recognised after scene changes, that may or may not be related - but I shall look to recreate this issue myself.