jase439
27th Jul 2005, 06:01 AM
This damn primitive is really making my head hurt. Here's the problem. I am wanting to make an RTBN call from an object in group 0xABABABAB to a parameterless behavior in 0xCDCDCDCD.
0xABABABAB is a root object and does not contain a Global Data reference.
Here's the setup:
My = 0xABABABAB
Stack Object = 0xCDCDCDCD
The string holding the named tree resides in STR# 0xABABABAB:0x12F @ Index 0x1.
If I make this RTBN call with the following op codes, the call barfs everytime.
00 00 00 00 02 02 00 00
as does...
00 00 04 00 02 02 00 00
...and the following crashes the game because there is no semi-global table to reference...
00 00 02 00 02 02 00 00
*BUT*
If I move the STR# reference to Globals:0x12F @ Index 0xB2 and call RTBN this way:
00 00 01 00 B3 02 00 00
It works. I *really* do not want to override Globals:0x12F if I can avoid it. I cannot for the life of me get this damn thing to work storing the CT reference in the private STR# table. Disasim2 shows EXACLY what I would expect it to show, but the game - for whatever reason - just gets utterly constipated when it tries to make the RTBN call with the string stored privately.
Maybe another set of eyes on this problem will reveal something I have overlooked.
J
0xABABABAB is a root object and does not contain a Global Data reference.
Here's the setup:
My = 0xABABABAB
Stack Object = 0xCDCDCDCD
The string holding the named tree resides in STR# 0xABABABAB:0x12F @ Index 0x1.
If I make this RTBN call with the following op codes, the call barfs everytime.
00 00 00 00 02 02 00 00
as does...
00 00 04 00 02 02 00 00
...and the following crashes the game because there is no semi-global table to reference...
00 00 02 00 02 02 00 00
*BUT*
If I move the STR# reference to Globals:0x12F @ Index 0xB2 and call RTBN this way:
00 00 01 00 B3 02 00 00
It works. I *really* do not want to override Globals:0x12F if I can avoid it. I cannot for the life of me get this damn thing to work storing the CT reference in the private STR# table. Disasim2 shows EXACLY what I would expect it to show, but the game - for whatever reason - just gets utterly constipated when it tries to make the RTBN call with the string stored privately.
Maybe another set of eyes on this problem will reveal something I have overlooked.
J