More Awesome Than You!

The Bowels of Trogdor => The Small Intestines of Trogdor => Topic started by: Havelock on 2008 March 22, 10:47:16



Title: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: Havelock on 2008 March 22, 10:47:16
I have exrtacted the Warningtotem it works fine with playables but it errors on visitors. If not present on lot they could not come in if present the Totems erros. Log attached. Maybe a Person more awesome than me could look into it and fix it to work correct with TS2.


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: J. M. Pescado on 2008 March 22, 10:49:33
It appears to be missing a constant. Either you failed to clone one of the BCONs, or, more likely, it references a global BCON that does not exist in real TS2. Does this object even have a useful function in the context of TS2 itself?


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: Havelock on 2008 March 22, 13:41:30
[prim 0x0002] Expression (Stack Object's person data 0x001F (neighbor id) == Const 0x0129:0x00 ("Rhineheart" Value: 0x0060))
[prim 0x0002] Expression (Stack Object's person data 0x001F (neighbor id) == Const 0x0129:0x10 ("Amanaki" Value: 0x0044))

Thats both original Bhavs copied in objects Package it looks like it excludes the Shaman and Rhineheart from being scared away. Both must enter the Tuzu Temple so they are excluded. Or i am wrong ?
 
Is it possible to remove both without destroyng the Bhav ?

For Usefull in TS2. Its A decorative Light and i would like to use it with the rebuild Tuzu Temple who holds the Grail.



Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: J. M. Pescado on 2008 March 22, 13:52:13
Ooh, nice. A sim-banish-awayer. I gotta get me one of those. But yes, I suggest removing those lines and rerouting everything which connects to them to their "False" inputs, since, obviusly, Rhineheart and Amanaki do not exist in anyone's game and anyone matching their NIDs is doing so purely by random coincidence. Anytime you encounter hardcoded NIDs like that (I do this a lot, but in code never meant to be released), you should assume their results should always be negative in any other neighborhood: Tests for a sim being a special NID should always return false, tests for a sim NOT being a special NID should always return true.


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: Havelock on 2008 March 22, 16:19:57
Uh if i could do so i would not have asked for help. I have no skills in editing BHAVs. But thank you for looking in it.


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: J. M. Pescado on 2008 March 22, 16:21:04
...you can tell me what they mean, but you can't figure out how to delete them?


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: Havelock on 2008 March 22, 16:23:59
Yes strange enough.  :-[


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: J. M. Pescado on 2008 March 22, 16:47:02
You are a strange little man. Try harder.


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: Havelock on 2008 March 22, 17:01:08
Okay i have removed the tests for both. But now it errors for a tree table entry that not exists.

Object id: 876
name: CS - Light - Warning Totem
Stack size: 1
Error: Reference to tree table entry that does not exist.
Iterations: 19
  Frame 0:
    Stack Object id: 398
    Stack Object name: N002_User00136 - Brett
    Node: 9
    Tree: id 4097 name 'Function - Main' version -32739
    from CS_RaftParts_WarningTotem
    Prim state: 0
    Params:    Locals: 876

The only line i could think who errors now is line nine now.

 [prim 0x000D] Push Interaction (Target: Stack Object,
  Object: Local 0x0000 (Object ID),
  Interaction: Literal 0x0001,
  maximum priority,
  Icon index: Literal 0x0001)

Yep i was right Be Afraid was line 1 in pie menue but now its line 0. Because i have removed the Take Entry of the Raft part.

Yay it worked the poor Sim was afraid and would have ended as a roadwaffle because he entered the Street and the Carpool arrived.
Thank you for pointing me in the right direction. I have now edited my first BHAV succsessfull.


Title: Re: CS_warningtotem wont let Visitors on lot. fixable ?
Post by: J. M. Pescado on 2008 March 22, 17:41:28
And there you go, my young Padawan. Perhaps in time you will be a Jedi yet.