So basically the idea here is that I'm helping develop a nonphysical vehicle with my cohort in crime.
We've done a ton of stuff on the physical side, but this will be our first nonphysical vehicle, so we're rather enthusiastic about just tossing a prim button into the ship to add a feature versus a menu option on a touch menu.
The problem, however, is that everything works perfectly in the ship..the transporters, doors, fighter bay, rezzers, etc...Until you fly it around. After you fly the ship, or even while you're flying the ship, everything involving the doors seem to quit working at all. Even resetting the scripts in the whole ship won't work. The only solution is to drop a new copy of the ship.
Now when I say that they quit working, they do seem to receive the link messages from the buttons as they play the door opening sounds, and the fighter bay rezzes the 2 fighters in the bay, but the doors will not open.
The positioning for the doors is the same localpos stuff that we use on all our physical ships, and the nonphys flight is a slightly modified version that I believe is a freebie (I made it a bit more smooth-flying than it was initially)
I looked into the code to see if it could be messing it up somehow, and all it appears to do is change hidden_face color and alpha and the extra scripts poll these values to figure out what to do.
I took out my modifications and put fresh versions in, and this still did not fix it.
My buttons to open the doors just have a normal menu with open or close, and a lock feature to lock all the doors. It just sends simple link messages, the doors just listen for their particular message and they do their position and rotation changes accordingly. Very simple scripts...so why they would just play the sounds and not actually open is a mystery to me.
Now sometimes we have to try to start the ship twice to get it to work, but we simply attributed this to lag issues due to the grid problems. But for the life of me I can't figure out why the doors would break from moving the ship.
Does it have something to do with all the nonphys movement coming from the flight scripts? How could that affect a local rotation and movement commands in the doors? The doors are obviously getting the link messages or they wouldn't play the open/close sounds or rez the fighters...