I have just upgraded to a Hamadryad, which is an excellent ship.
However, thee are a couple of things.
You cannot see the laser (on trunk) from the cabin.
I have made some modification and simplifications to the plist such as remove some duplication and use like_ship instead. I have also added custom view data so that it is sensible rather than microscope view of the side
I either dont understand weapon_position_forward, or there is sometghing wrong with it. It seems to be 3 co-ordinates (lateral offset, vertical, and depth?) but changing them seems to have no effect. Can anyone fill me in on the secret of how to move the gun mount to the whole on the front of the ship?
You're right about the laser position being in x y z coordinates, but they're coordinates in meters from the centre of the ship.
To see the laser firing, try using similar coordinates from view_position_forward, with the weapon y coordinates 2 meters lower, z coordinates 10 meters forward (+10) from the viewing position.
If that doesn't work, try 25 meters forward, that should show the laser appearing from some distance in front of the ship!
still shows no noticeable difference. Although, I have to say, looking at the code, the values are read, but in initLaserFromShip I cant tell where the offset is used. Am I missing something or is this just not implemented?
You've proabley already done this, but when you change something in a .plist you have to hold down SHIFT whilst you load up Oolite for the first time after making the changes. Otherwise they are not read.
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.
the laser is coming from the left hand side of the viewing position. I haven't looked at that part of the code yet, but when if I'm done with the falcon...
Intereting, I made some changes, and now I can control where my laser comes from. Problem is, all the other guys have lasers coming from stupid places.
Ill take more of a look in the morning. thanks for your help
Intereting, I made some changes, and now I can control where my laser comes from. Problem is, all the other guys have lasers coming from stupid places.
Well, why not just like_ship the player version replacing the corrected laser position with the one that works for the NPC?
If I add code to oolite to use the offset, then the hamadryad starts acting as I expect, but, for example, Vipers have lasers coming out of pace to the side of them.