I'm going through the tutorial, section on Player Attacks. When I left click to attack, I get an error (see below). I'm kind of confused because this is live action, but the error appears to be related to the Battle Menu:
NullReferenceException: Object reference not set to an instance of an object
GamingIsLove.ORKFramework.UI.AbilityBMItem.Accepted (GamingIsLove.ORKFramework.Combatant owner, System.Boolean useGroupTarget, System.Boolean useIndividualTarget) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.UI.ActiveBattleMenu.StartTargetSelection (GamingIsLove.ORKFramework.IShortcut shortcut, System.Boolean blockBattleCamera, System.Boolean useGroupTarget, System.Boolean useIndividualTarget) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.ActionSelection.UseAbility (GamingIsLove.ORKFramework.Combatant user, GamingIsLove.ORKFramework.AbilityShortcut ability, System.Boolean checkTime, System.Boolean checkUseCosts, System.Boolean checkCanUse, GamingIsLove.ORKFramework.ControlMapTargeting targeting, System.Boolean blockBattleCamera, GamingIsLove.ORKFramework.BaseAction& action) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.ActionSelection.GetAction (GamingIsLove.ORKFramework.BaseAction& action, GamingIsLove.ORKFramework.Combatant combatant, System.Boolean checkTime, System.Boolean checkUseCosts, System.Boolean checkCanUse, GamingIsLove.ORKFramework.ControlMapTargeting targeting, System.Boolean blockBattleCamera, System.Boolean cancelOn2nd) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.ControlMapKey.PerformAction (GamingIsLove.ORKFramework.Combatant combatant) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.ControlMap.Tick (GamingIsLove.ORKFramework.Combatant combatant) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.Combatant.ControlMapTick () (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.ORKFramework.ORKControlHandler.Tick (System.Boolean interacted) (at <6cd1038e56604a3bbe2a1f0d04fb3b4e>:0)
GamingIsLove.Makinom.ControlHandler.Tick () (at <05341a1b1c4042a1ba1310d3e9030f8c>:0)
GamingIsLove.Makinom.Maki.FireTick () (at <05341a1b1c4042a1ba1310d3e9030f8c>:0)
GamingIsLove.Makinom.MakinomHandler.Update () (at <05341a1b1c4042a1ba1310d3e9030f8c>:0)
  • Make sure your attack abilities are set up correctly. It should use the Enemy None target selection type, or a custom template/setup with Enemy target type and None target range.
    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!
  • image

    It is set to "Enemy None", per the tutorial.

    I restarted the entire tutorial in case I messed something up along the way, and I'm still getting the issue.

    I'm running 2022.3.10f1 if that matters.
  • edited September 26
    So this is strange. I set Target Selection Type to "Custom", Target Type to "Enemy", and Target Range to "None" and now it works.

    Could it be a bug with "Enemy None" ?

    I changed everything back to "Enemy None" and it broke again, so something is up with that setting.

    I downloaded the completed tutorial and Level 1 is set to "Enemy None" but Level 2/3/4 are all set to "Custom", Target Type to "Enemy", and Target Range to "None". Still, it works fine.
    Post edited by Corky on
  • edited September 27
    Hm, I'll look into it - might be an issue with new projects.

    Meanwhile, you can check what Enemy None is actually set up to use. You can find those Default Target Selections in Battles > Target Settings. The Enemy None one should have a target selection template selected with the setup I mentioned above.

    Edit: Yeah, I think it's an issue in new projects where the default templates for None target ranges don't initialize some data.
    You can fix it if you go to Templates > Target Selection Templates, select the Enemy None template and save.
    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!
  • Verified. Thanks GiL!
  • Hi @gamingislove, also confirmed is happening when upgrading projects, not just new ones
Sign In or Register to comment.