RTBN problems - CT - Dress for work

(1/2) > >>

Inge Jones:
I am trying to get my prison staff controller to dress the officers at the start of their shift.  It pushes a menu option (on the controller) which they are entering ok, it seems to be finding their job object ok, and it then fails politely on the last line only telling me it hit an error return, which simply means the RTBN call failed for some unknown reason.   Any ideas?  I have attached the BHAV listing.

Failing that, is there a way to directly reference the BCON values stored on a specified object type?

jase439:
I may be mistaken but I think the call tag is "CT - Dress for Work".  RTBN is case-sensitive.  There's no way that I know of to externally reference a BCON defined on another object.  How I wish it were so.

Inge Jones:
I was just on my way back - lol - to edit my message to say the very same thing.  I don't know if I'm just getting "past it" or what, but I knew capitalisation would be important, and I checked once, I checked twice.  It all seemed to match.  Checked thrice - and all of a sudden I spotted the difference :0   I was never much good at playing Snap either...

EDIT: Well, I got that working ok.  What is proving more difficult is getting my staff controller to RTBN stuff from the job when it is running its own loop.  The sim could run the getting dressed tree and look up its clothes on the BCONs of the job.   But when I want my controller to look up for instance the end hours using RTBN "CT - Get End Hour", it's complaining about invalid BCONs.  I think this means it's still trying to find them on the staff controller.  I have tried running this with all three values in whose stack to run in....

jase439:
Quote from: Inge Jones

...But when I want my controller to look up for instance the end hours using RTBN "CT - Get End Hour", it's complaining about invalid BCONs.  I think this means it's still trying to find them on the staff controller.  I have tried running this with all three values in whose stack to run in....
Yeah, I experienced a similar problem with InTeen in which an RTBN call could be invoked from different contexts and ended up having to replicate the BCONs I needed to reference in each context.  I wanted to have them in one location since the values were the same, but alas.

Inge Jones:
Ah thanks, that's saved me a lot of time!   I already had my controller working perfectly well generating staff at their start times etc based on settings on the controller, and was only trying out the RTBN stuff because I was hoping to store all the BCON data on the job object only and use it from there.   If I'm not going to be able to do that anyway, I might as well go back to the old (less professional seeming) way!

It'll reduce player choice, because I was hoping to allow them to make their own prison officer careers giving them staff with different uniforms etc on different prison sites, but still it's better than nothing.

Navigation

[0] Message Index

[#] Next page