Hi everyone,

I’m currently working on the 2D SRPG tutorial and have encountered some issues at step 9. When I test the game, the unit placement system works fine, but there’s no grid visible.

image

The problem arises after placing the last unit and selecting a unit to move. At this point, the game throws an error:

image
NullReferenceException: Object reference not set to an instance of an object
GamingIsLove.ORKFramework.UI.LatestTurnHUDInstance.UpdateLatestTurn (GamingIsLove.ORKFramework.Combatant combatant) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.Battle.FireLatestTurn (GamingIsLove.ORKFramework.Combatant combatant) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.Combatants.CombatantActions.Choose (System.Boolean newTurn, System.Boolean autoCallMenu) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.ActionAccessHandler.Choose (GamingIsLove.ORKFramework.Combatant combatant, System.Boolean newTurn, System.Boolean autoCallMenu) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.Combatants.CombatantActions.ChooseAccess (System.Boolean newTurn, System.Boolean autoCallMenu) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.PhaseBattleSystem.SelectAction (GamingIsLove.ORKFramework.Combatant combatant) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.PhaseBattleSystem.CombatantSelected (GamingIsLove.ORKFramework.Combatant combatant) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.ORKFramework.PhaseCombatantControl.BoxClosed (GamingIsLove.Makinom.UI.IUIBox origin) (at <2b93e4050d3344f9b3b6a593c984a400>:0)
GamingIsLove.Makinom.Components.UIBoxComponent.DoClosed () (at :0)
GamingIsLove.Makinom.Components.UIBoxComponent.Closed () (at :0)
GamingIsLove.Makinom.UI.UIStateChange.Use (GamingIsLove.Makinom.BaseWaitForAnim waitForAnim, GamingIsLove.Makinom.Notify callback, System.Boolean wait) (at :0)
GamingIsLove.Makinom.Components.UIBoxComponent.DoClose () (at :0)
GamingIsLove.Makinom.Schematics.Schematic.EndSetup () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.Schematics.Schematic.EndSchematic () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.Schematics.Schematic.ExecuteNextNode () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.Schematics.Schematic.NodeFinished (System.Int32 next) (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.Schematics.Schematic.Tick () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.MachineHandler+MachineUpdate.Tick () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.Maki.FireTick () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)
GamingIsLove.Makinom.MakinomHandler.Update () (at <19ae8cac3ed44d6c8c92a1dcd24e60a3>:0)

I’ve double-checked everything in steps 7 and 8 and can’t find any mistakes. Could someone please help me identify what I’m doing wrong?

Thanks in advance!
  • edited September 16
    The error hints at an issue in your latest turn HUD, which was set up as part of the UI setup in tutorial 4.
    Check the HUD if it's set up correctly (e.g. if the HUD's prefab is selected).
    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!
  • Yes that resolved it! Thanks again! Did it over a bit more thoroughly and found my error was there.
Sign In or Register to comment.