Page 1 of 1

Oolite Exterior views

Posted: Wed May 28, 2008 10:33 am
by arabelsraven
Hello,

I am a newbie to Oolite. I have read somewhere that there are exterior ship views available on later versions of Oolite. I have downloaded the latest version for Windows, but don't seem to be able to find the key to enable exterior ship views.

Has this feature been implemented in the Windows version?

Posted: Wed May 28, 2008 10:38 am
by another_commander
Yes, it is mapped by default to the 'v' key. What ship are you trying to view? All the standard game ships should be viewable externally.

Posted: Wed May 28, 2008 10:46 am
by arabelsraven
It is for a Viper Interceptor (my fave ship!)

Posted: Wed May 28, 2008 11:15 am
by another_commander
Do you have Realistic Shipyards installed by any chance? The Viper Interceptor is not a player ship by default, as far as I can tell.

The ships won't be shown with external views, unless the "custom_views" key has been defined in their shipdata.plist entries. So, it is not a bug in the game, it is just something missing from the ship OXP itself.

Posted: Wed May 28, 2008 11:32 am
by arabelsraven
Yes I have this OXP installed. How would I edit the plist to enable ship views?

...

Posted: Wed May 28, 2008 12:49 pm
by Lestradae
The ships won't be shown with external views, unless the "custom_views" key has been defined in their shipdata.plist entries. So, it is not a bug in the game, it is just something missing from the ship OXP itself.
* notes another often repeated player wish for RS 3.02 *

Posted: Wed May 28, 2008 4:38 pm
by LittleBear
A quick C&P from the Native Ships should do it. If you open up the native shipdata and find the entry for the player Cobra Mk I ("cobramk1-player"). I'd go for this one as its more or less on a par size-wise with the Viper so the Camera Angles should look ok. Now C&P the code starting with "custom_views" like this:-

Code: Select all

custom_views =
		(
			{
				view_description = "Rear View";
				view_orientation = "1.0 0.0 0.0 0.0";
				view_position = "0.0 20.0 -150.0";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Rear Right View";
				view_orientation = "0.9239 0.0 0.3827 0.0";
				view_position = "106.06 20.0 -106.06";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Right View";
				view_orientation = "0.7071 0.0 0.7071 0.0";
				view_position = "150.0 20.0 0.0";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Front Right View";
				view_orientation = "0.3827 0.0 0.9239 0.0";
				view_position = "106.06 20.0 106.06";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Front View";
				view_orientation = "0.0 0.0 1.0 0.0";
				view_position = "0.0 20.0 150.0";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Front Left View";
				view_orientation = "0.3827 0.0 -0.9239 0.0";
				view_position = "-106.06 20.0 106.06";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Left View";
				view_orientation = "0.7071 0.0 -0.7071 0.0";
				view_position = "-150.0 20.0 0.0";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Rear Left View";
				view_orientation = "0.9239 0.0 -0.3827 0.0";
				view_position = "-106.06 20.0 -106.06";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Top View";
				view_orientation = "-0.7071 0.7071 0.0 0.0";
				view_position = "0.0 150.0 -10.0";
				weapon_facing = "FORWARD";
			},
			{
				view_description = "Bottom View";
				view_orientation = "0.0 0.0 0.7071 0.7071";
				view_position = "0.0 -150.0 -10.0";
				weapon_facing = "FORWARD";
			}
Now (with this code CTR C'd) open up the shipdata for realistic shipyards and drop these views into the Viper-player entry. That'll do it. The views may not be perfect, as the Camera is set for the Cobra I, but as the ships are of similar size, it should still give you a nice outside view of your Viper.

Having made and saved your changes, next time you load up Oolite hold down the SHIFT key (you only need to do this the first time - but it is necessary to update the cache and so make Oolite read your changes).

Posted: Thu May 29, 2008 4:32 am
by Commander McLane
Yep, the Cobra1-views should work just fine.