ROG replace actor lua function
Posted: Tue Apr 18, 2023 3:46 pm
Hi Tony,
I'm using your ROG integration and I'm currently attempting to swap out an actor with a sleeping variant: RogReplaceActor("Guard Benjamin 2", "Actor_GuardBenjaminSleep");
It has worked before on other actors, but now I'm getting the following error. I've checked the naming conventions and everything seems to be in order.
Exception: Attempted to move unregistered actor: Actor_GuardBenjamin2 (Rog.Actor)
Rog.Map.MoveActorTo (Rog.Actor actor, System.Int32 destX, System.Int32 destY) (at Assets/Rog/Scripts/Map/Map.cs:344)
Rog.Action_MoveTo.Perform (System.Object info) (at Assets/Rog/Scripts/Action/Action_MoveTo.cs:27)
Rog.Actor.PerformAction () (at Assets/Rog/Scripts/Actor/Actor.cs:194)
Rog.TurnBasedSystem+<ProcessMiniTurn>d__12.MoveNext () (at Assets/Rog/Scripts/TurnBasedSystem/TurnBasedSystem.cs:103)
Rog.TurnBasedSystem.Perform () (at Assets/Rog/Scripts/TurnBasedSystem/TurnBasedSystem.cs:57)
Rog.Map.SimulateTurn () (at Assets/Rog/Scripts/Map/Map.cs:528)
Rog.Framework.SimulateTurn () (at Assets/Rog/Scripts/Framework/Framework.cs:453)
Rog.Client.Update () (at Assets/Rog/Scripts/Client/Client.cs:49)
Any ideas what might be causing this? Thanks so much in advance!
I'm using your ROG integration and I'm currently attempting to swap out an actor with a sleeping variant: RogReplaceActor("Guard Benjamin 2", "Actor_GuardBenjaminSleep");
It has worked before on other actors, but now I'm getting the following error. I've checked the naming conventions and everything seems to be in order.
Exception: Attempted to move unregistered actor: Actor_GuardBenjamin2 (Rog.Actor)
Rog.Map.MoveActorTo (Rog.Actor actor, System.Int32 destX, System.Int32 destY) (at Assets/Rog/Scripts/Map/Map.cs:344)
Rog.Action_MoveTo.Perform (System.Object info) (at Assets/Rog/Scripts/Action/Action_MoveTo.cs:27)
Rog.Actor.PerformAction () (at Assets/Rog/Scripts/Actor/Actor.cs:194)
Rog.TurnBasedSystem+<ProcessMiniTurn>d__12.MoveNext () (at Assets/Rog/Scripts/TurnBasedSystem/TurnBasedSystem.cs:103)
Rog.TurnBasedSystem.Perform () (at Assets/Rog/Scripts/TurnBasedSystem/TurnBasedSystem.cs:57)
Rog.Map.SimulateTurn () (at Assets/Rog/Scripts/Map/Map.cs:528)
Rog.Framework.SimulateTurn () (at Assets/Rog/Scripts/Framework/Framework.cs:453)
Rog.Client.Update () (at Assets/Rog/Scripts/Client/Client.cs:49)
Any ideas what might be causing this? Thanks so much in advance!