Silly bug perhaps?

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Telengo
Above Average
Above Average
Posts: 31
Joined: Wed Aug 19, 2009 4:20 pm
Location: Belgium

Silly bug perhaps?

Post by Telengo »

Two questions in a matter of days, I really don't have many problems with other things you know. :lol:

Anyway, here I am trading between Teanrebi and Tianve in Galaxy 1 as hard as possible desperately saving up as many credits as possible to purchase my first ship upgrade. As I know there is a Mosquito Trader in a nearby system (thanks to a recent thread that highlighted this cool ship).

So I wander over collect my new ride, and spend a few moments admiring it after launching. And went back to my two trading planets and picked up a few more bits of equipment. But after about two more planet hop's the external view (key V) no longer works. I can not see my lovely new pride and joy. :cry:

So I load up a save game from before the ship change, and external view works (Cobra MKIII). So I go and collect my ship again and external view still works. Again several jumps later it stops working. :? Does anybody know if this is a small known issue?
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

https://bb.oolite.space/viewtopic.php?t=6295
The post in the above link deals with this problem hope it helps. :wink:
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

External views have to be explictly defined - as they are for all the inbuilt ships, but not all the ship-creating OXP'ers included this option. I don't have oolite on the machine I'm writing this post on so I can't remember where the external view needs to go (one of the plists) - and you copy and paste the data from a ship that is of a similar size to your new ride (so you'd be OK with the Cobby3 views for the Mosquito)

Given the nature of this forum somebody will be along with the exact info you need in a short while - I'm just letting you know its not exactly a bug, more an oversight.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

In fact RustyB gave you the solution while I was typing that somebody would! :roll: :lol:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

I'm writing this post on so I can't remember where the external view needs to go (one of the plists)
its in the shipdata.plist
below is code taken from externalviews.oxp for cobra 3

Code: Select all

<key>custom_views</key>
		<array>
			<dict>
				<key>view_description</key>
				<string>External View 1</string>
				<key>view_position</key>
				<string>0.0 40.0 -200.0</string>
				<key>view_orientation</key>
				<string>1.0 0.0 0.0 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 2</string>
				<key>view_position</key>
				<string>141.42 40.0 -141.42</string>
				<key>view_orientation</key>
				<string>0.9239 0.0 0.3827 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 3</string>
				<key>view_position</key>
				<string>200.0 40.0 0.0</string>
				<key>view_orientation</key>
				<string>0.7071 0.0 0.7071 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 4</string>
				<key>view_position</key>
				<string>141.42 40.0 141.42</string>
				<key>view_orientation</key>
				<string>0.3827 0.0 0.9239 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 5</string>
				<key>view_position</key>
				<string>0.0 40.0 200.0</string>
				<key>view_orientation</key>
				<string>0.0 0.0 1.0 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 6</string>
				<key>view_position</key>
				<string>-141.42 40.0 141.42</string>
				<key>view_orientation</key>
				<string>0.3827 0.0 -0.9239 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 7</string>
				<key>view_position</key>
				<string>-200.0 40.0 0.0</string>
				<key>view_orientation</key>
				<string>0.7071 0.0 -0.7071 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>External View 8</string>
				<key>view_position</key>
				<string>-141.42 40.0 -141.42</string>
				<key>view_orientation</key>
				<string>0.9239 0.0 -0.3827 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>Down View</string>
				<key>view_position</key>
				<string>0.0 200.0 0.0</string>
				<key>view_orientation</key>
				<string>-0.7071 0.7071 0.0 0.0</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
			<dict>
				<key>view_description</key>
				<string>Up View</string>
				<key>view_position</key>
				<string>0.0 -200.0 0.0</string>
				<key>view_orientation</key>
				<string>0.0 0.0 0.7071 0.7071</string>
				<key>weapon_facing</key>
				<string>FORWARD</string>
			</dict>
		</array>
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
User avatar
Telengo
Above Average
Above Average
Posts: 31
Joined: Wed Aug 19, 2009 4:20 pm
Location: Belgium

Post by Telengo »

Excellent that post looks like it has the answer. I will have to refine my searching, as I did try and search here for it as I assumed it might have come up before.

Thank you very much for the link and information guys.

Cheers.
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

Dont worry i had read that post when it was first posted. So i remembered it and knew exactly where to look. :wink:
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

As far as your original question is concerned:

Yes, there is a silly bug in Oolite, which allows you to use external views immediatly after buying a ship which hasn't them defined, if your previous ship had them defined. The previous view positions simply continue to be used. However, this works only until you are reloading your new ship. Therefore after a restart of the game the external views are gone.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Many moons ago I came up with a fix for that: if a ship hasn't got any external views defined, oolite would use the default (cobra mk3) ones. I think I committed that to trunk way back then, but I'm not too sure anymore.

If it's not on trunk yet, I'll try and remember to commit it for 1.74 ( 1.73 is under feature freeze )!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Actually this is a bugfix, so if you have not commited it yet, feel free to do it now.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Ok! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Kaks wrote:
If it's not on trunk yet, I'll try and remember to commit it for 1.74 ( 1.73 is under feature freeze )!
You had put the code in trunk, but commented it out.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

I remember now! I meant to ask if we wanted the cobra 3 external views as standard when undefined, since for some really big player ships (you know the ones I mean!) some views could end up inside the hull itself.

On reflection, it would still count as a bugfix for most of the oxps, though. Ok, I'll uncomment that fix, unless there are any objections! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Hi Kaks,

no objections from the guy with the really big player ships because the OSE ships will all have external views defined as standard - actually, already have in the current beta :wink:

Cheers

L
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Kaks wrote:
I remember now! I meant to ask if we wanted the cobra 3 external views as standard when undefined, since for some really big player ships (you know the ones I mean!) some views could end up inside the hull itself.
Scaling the offsets in proportion to [[ship drawable] collisionRadius] should be a simple enough fix for 1.74.
Post Reply