Page 1 of 1
Silly bug perhaps?
Posted: Sat Aug 22, 2009 9:57 pm
by Telengo
Two questions in a matter of days, I really don't have many problems with other things you know.
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.
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?
Posted: Sat Aug 22, 2009 10:03 pm
by Rustybolts
https://bb.oolite.space/viewtopic.php?t=6295
The post in the above link deals with this problem hope it helps.
Posted: Sat Aug 22, 2009 10:05 pm
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.
Posted: Sat Aug 22, 2009 10:05 pm
by DaddyHoggy
In fact RustyB gave you the solution while I was typing that somebody would!
Posted: Sat Aug 22, 2009 10:09 pm
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>
Posted: Sat Aug 22, 2009 10:11 pm
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.
Posted: Sat Aug 22, 2009 10:22 pm
by Rustybolts
Dont worry i had read that post when it was first posted. So i remembered it and knew exactly where to look.
Posted: Mon Aug 24, 2009 1:24 pm
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.
Posted: Mon Aug 24, 2009 1:35 pm
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 )!
Posted: Mon Aug 24, 2009 1:42 pm
by another_commander
Actually this is a bugfix, so if you have not commited it yet, feel free to do it now.
Posted: Mon Aug 24, 2009 1:57 pm
by Kaks
Ok!
Posted: Mon Aug 24, 2009 2:50 pm
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.
Posted: Mon Aug 24, 2009 3:18 pm
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!
..
Posted: Mon Aug 24, 2009 5:53 pm
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
Cheers
L
Posted: Mon Aug 24, 2009 6:30 pm
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.