It looks like you're new here. If you want to get involved, click one of these buttons!
[T-CreateMainMenu]
0.0 = > > Object.GetOwnedChild ^ # Object.AddTrack < T-MenuOptionEnter
0.5 = > > Object.GetOwnedSibling < # Object.AddTrack < T-MenuOptionEnter
0.10 = > > Object.GetOwnedSibling < # Object.AddTrack < T-MenuOptionEnter
0.15 = > > Object.GetOwnedSibling < # Object.AddTrack < T-MenuOptionEnter
0.20 = > > Object.GetOwnedSibling < # Object.AddTrack < T-MenuOptionEnter
0.25 = > Object.GetOwnedSibling < # Object.AddTrack < T-MenuOptionEnter
[10:49:18] [SYSTEM] [orxCommand.c:orxCommand_Process():671] Can't pop stacked argument for command line [> > Object.GetOwnedSibling <]: stack is empty.
[10:49:18] [SYSTEM] [orxCommand.c:orxCommand_Process():863] Can't evaluate command line [> > Object.GetOwnedSibling <], invalid argument #1.
[10:49:18] [SYSTEM] [orxCommand.c:orxCommand_Process():863] Can't evaluate command line [Object.AddFX < FX-MenuOptionEnter], invalid argument #1.
The problem is, that this code should work perfectly fine. But I notice four things that don't look right:[T-DestroyMainMenu]
0 = > > Object.GetOwnedChild ^ # Object.AddFX < FX-MenuOptionExit
0.05 = > > Object.GetOwnedSibling < # Object.AddFX < FX-MenuOptionExit
0.10 = > > Object.GetOwnedSibling < # Object.AddFX < FX-MenuOptionExit
0.15 = > > Object.GetOwnedSibling < # Object.AddFX < FX-MenuOptionExit
0.20 = > > Object.GetOwnedSibling < # Object.AddFX < FX-MenuOptionExit
0.25 = > Object.GetOwnedSibling < # Object.AddFX < FX-MenuOptionExit
1.26 = Object.Delete ^
Comments
Let's track the first one, that I reordered according to the time stamps:
Let's analyze the stack, step by step. The number between () is the number of elements left on the stack at a given time.
0.00: pushing 2 (2) # popping 1 (1)
0.10: popping 1 (0), pushing 2 (2) # popping 1 (1)
0.15: popping 1 (0), pushing 2 (2) # popping 1 (1)
0.20: popping 1 (0), pushing 2 (2) # popping 1 (1)
0.25: popping 1 (0), pushing 1 (1) # popping 1 (0)
0.50: popping 1 (-1), end of story
We've just established that the last item won't get the expected handling, it's consistent with your observations.
Well, you now know what's happening in that case.
If you were to use 0.05 instead of 0.5, that would be another story.