edited October 2014 in ORK Support
I now have the game set up to die on player death----

I have a Game Over scene called right now 6 death

I set it up as the scene to load.

However, when I die it doesn't load---screen goes black and I get this error message---

NullReferenceException: Object reference not set to an instance of an object
ORKFramework.CombatantHandler.Get (ORKFramework.Combatant user, Boolean addPlayerGroup, ORKFramework.Range range, Consider isEnemy, Consider isDead, Consider inBattle)
ORKFramework.Battle.BattleLost ()
ORKFramework.Battle.Tick ()
ORKFramework.ORKCore.FireTick ()
ORKFramework.ORKHandler.Update ()

Don't know what I'm doing wrong. Any help is appreciated.
Post edited by Catacomber on
  • is the GO scene in your build? cause if its not it will cause errors
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • edited September 2014
    Yes, thanks. It's in the build. : ) Something else is causing the problem not sure what. Reading over the tutorials again. I'm using Real Time Battles.

    I don't have a "Player Group" don't know what it is and can't find anything in the tutorials.

    I didn't make a death event that would call Game Over because there's nothing in the tutorial for real time battles about doing that.
    Post edited by Catacomber on
  • weird cant think of what could cause that unless you missed something from the tuts
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • How do you define a player group?

    Do you need a death event in Real Time battles that calls Game Over? Can't find anything about those.
  • yeah you would need a battle end event in order for it to call the game over screen
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • I tried that just now. I did the simpleDefeat Battle End Event from the tutorial. And I still get that same message! Thanks though for your help.

    Still trying to figure this one out! ^^
  • edited September 2014
    I found this searching and searching---

    but what does it mean?

    "Real time battles using Real Time Battle Area components don't have battle start/end events - you'd need to use Battle components instead."

    I'm using a Real Time Battle Area…….

    I tried using an Empty Game object in the battle area and attaching a battle component on it that called my simpleDefeat event. Nothing changed. Still get that error message and no Game Over scene.
    Post edited by Catacomber on
  • edited September 2014
    Real time battle areas don't use start/end events, and it got nothing to do with that.
    I'll need a test project where that's happening :)

    Edit: While going through the code, I've found the potential source of where the error is thrown and added a fix for it (comes in the next update).
    The question why this is happening still remains, because that would only happen if there where no player at that time which shouldn't be the case :)
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Will put together a small test project today. Thanks very much.
  • @gil-----I sent you a stripped down file. Thanks for all your help.
  • I'm sending you a stripped down version of Alluria as well---

    I have no battle areas set up in that game yet but after adding the Game Over scene and settings, when I start the game, after the introductory scenes I load the first scene, hover in the air and skip to the Game Over scene----which loads.

    I also had a problem in this game that the inventory screen would freeze if I tried to use a potion and wouldn't consume the item--the item count stayed the same although it seemed I had used the item.

    Working on the stripped down Alluria file now. Thanks.
  • edited September 2014
    Sent to ork@rpg.kit.com

    And then finding your contact info here, shared the uploaded files there. : )
    Post edited by Catacomber on
  • edited September 2014
    I notice in Alluria if I don't auto call game over in the game over settings, I spawn normally and don't skip to the game over scene. But I still have that problem that inventory potions aren't consumed.

    Thanks for your help.
    Post edited by Catacomber on
  • edited September 2014
    Will be looking into it today or tomorrow :)

    Edit: Disabling Leave on Death in the player combatant's Death Settings will solve it for now.
    Will be fixed in the next update.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited October 2014
    Thanks for the update. Checking things. I still have a probem that when my player dies---the death scene doesn't load. I get a black screen and the icon for the shortcut bar and the attack button show up and I get this new strange message---only when I die---

    "There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene"----518 instances of it : {

    All my scenes have audio listeners if they're orthographic scenes and for my scenes where the player spawns---my player has an audio listener--

    it's like my player skips through some scene trying to get to the death scene and gets stuck there.

    I also have a problem that I seem to die when my hp is 33. Or when I die my hp is 33. Maybe I'm dying and I hit the small heal button? Not sure why.

    In ORK1 I would get that black screen for a flash of an instant and the player hud would still show up and one of my own buttons but then the Game Over scene would load. And I never got those no audio listener warning messages.
    Post edited by Catacomber on
Sign In or Register to comment.