A sub-entry that is a turret uses the initialiseTurret in setup_actions and does not have a laser.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
1.) I checked the differentiation of "has <key>somewhere_weapon_type</key> and no initialise turret setup action and no "<key>somewhere_weapon_type</key>" with initialise turret setup action - but that doesn`t seem to be the solution either.
For some reason, the subentity termed "turret" on the player falcon of Kak`s repaired Falcon/Kestrel oxp does work as intended if initialised, but the subentity termed "gun" doesn`t, and it doesn`t have a weapon type key either!
I get the suspicion if the game somehow treats subentities with roles that have "turret" or "gun" in differently???
2.) Does really no one else get this graphics glitch? LittleBear, have you downloaded my two example oxps and had a look at the F3-F3 in-shipyard Urutu graphics?
One oxp makes the Urutu appear as it should, the other gives a graphical glitch with a subentity termed aram missile.
The only difference between the two test oxps is that one initialises the Urutu`s turrets and the other doesn`t.
Either this is OS-related, or no one has noticed (?) or there is something staring me in the face all the time and I just don`t get it ...
I can at least guarantee you that it is not OS related. And, as I said, I am seeing the Urutu problem on my system.
OK, thanks for that feedback. So the problem is definitely not only on my system.
In my OSE Beta oxp, every single ship that has player turrets that are initialised exhibit the same sort of graphics problem! That`s why I no longer think its oxp-related. I managed to recreate the same thing with Kak`s Falcon/Kestrel oxp, too.
Strange thing is, I found one exception there. There is one turret on the Falcon that works as intended if I do the setup action to initialise (the bweed-falcon-player-turret), but a second turret (the bweed-falcon-gun) gives me a urutu-similar graphics glitch.
Also tried to rename the "gun" entry into a unique new "turret" entry (so that the name, roles, even the model - and yes, renamed that too in the models folder - had a "turret" in name instead of "gun"). Doesn`t work, either.
I haven’t looked at the problem OXP yet, but if the problem is what I think it is a workaround is to make sure turret subentities appear last in the list, i.e. no normal subentity or flasher may come after a turret. (This is still a bug, mind.)
"ballturret" =
{
/* Standard turret.
Not used by Oolite directly, but provided as a resource for OXPs
starting with Oolite 1.72.
*/
ai_type = "nullAI.plist";
laser_color = magentaColor;
model = "oolite-ball-turret.dat";
name = "Ball Turret";
roles = ballturret;
setup_actions = ( initialiseTurret );
thrust = 1;
weapon_energy = 25;
};
Hope this helps.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor