Page 1 of 1

Strange things (AKA: where could I dit it wrong ?)

Posted: Thu Jul 30, 2009 3:26 pm
by saint
Hello, I am experiencing some strange behaviour while using a custom OXP.

I took the TIE, changed the names and all to have a psychedelic rainbow tie. then added the missiles (TIE had missiles in Star Wars), removed the non player section (it is MY ship, with custom paint and a custom missile launcher).

What I experience is that I can't see my ship from outside (bad, but can live with it) and the program crashes due a Floating Point exception when the shields are depleted (not energy bank).

What could I have done wrong ? Could the crash be due the interaction with other OXPs ?

If I am not wrong all the crashes showed up after I met a rattle cutter...

..

Posted: Thu Jul 30, 2009 3:46 pm
by Lestradae
Which version of Oolite are you on? (1.65, 1.72, ...)

You need to define outside views in shipdata.plist so that you get them! Have a look at the core game ships to see how its done.

My rather meagre 0.2 Cr

L

Re: ..

Posted: Thu Jul 30, 2009 3:54 pm
by saint
Lestradae wrote:
Which version of Oolite are you on? (1.65, 1.72, ...)
Any way to discover it from the program itself, since the .deb have no version tag ?
Lestradae wrote:
/You need to define outside views in shipdata.plist so that you get them! Have a look at the core game ships to see how its done.
Two very nice cents, thank you!.

Posted: Thu Jul 30, 2009 5:04 pm
by saint
But I have still no external view.

..

Posted: Thu Jul 30, 2009 5:25 pm
by Lestradae
Try inserting this here into the shipdata.plist entry of your psychedelic TIE-fighter:

Code: Select all

<key>custom_views</key>
                <array>
                        <dict>
                                <key>view_description</key>
                                <string>Rear View</string>
                                <key>view_position</key>
                                <string>0.0 -50.0 -500.0</string>
                                <key>view_orientation</key>
                                <string>1.0 0.0 0.0 0.0</string>
                                <key>weapon_facing</key>
                                <string>AFT</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Rear Right View</string>
                                <key>view_position</key>
                                <string>267 -33.3 -267</string>
                                <key>view_orientation</key>
                                <string>0.9239 0.0 0.3829 0.0</string>
                                <key>weapon_facing</key>
                                <string>AFT</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Right View</string>
                                <key>view_position</key>
                                <string>400.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>STARBOARD</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Front Right View</string>
                                <key>view_position</key>
                                <string>281 -40.0 281</string>
                                <key>view_orientation</key>
                                <string>0.3829 0.0 0.9239 0.0</string>
                                <key>weapon_facing</key>
                                <string>STARBOARD</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Front View</string>
                                <key>view_position</key>
                                <string>0.0 -50.0 500.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>Front Left View</string>
                                <key>view_position</key>
                                <string>-281 -40.0 281</string>
                                <key>view_orientation</key>
                                <string>0.3829 0.0 -0.9239 0.0</string>
                                <key>weapon_facing</key>
                                <string>PORT</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Left View</string>
                                <key>view_position</key>
                                <string>-400.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>PORT</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Rear Left View</string>
                                <key>view_position</key>
                                <string>-267 -33.3 -267</string>
                                <key>view_orientation</key>
                                <string>0.9239 0.0 -0.3829 0.0</string>
                                <key>weapon_facing</key>
                                <string>AFT</string>
                        </dict>
                        <dict>
                                <key>view_description</key>
                                <string>Top View</string>
                                <key>view_position</key>
                                <string>0.0 400.0 -33.3</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>Bottom View</string>
                                <key>view_position</key>
                                <string>0.0 -400.0 -33.3</string>
                                <key>view_orientation</key>
                                <string>0.0 0.0 0.7071 0.7071</string>
                                <key>weapon_facing</key>
                                <string>AFT</string>
                        </dict>
                </array>
... and see what happens :wink:

Have fun :)

L

Posted: Thu Jul 30, 2009 9:10 pm
by saint
Yessssssssssssss! Thank you!


Lucy in the sky with lasers....

..

Posted: Thu Jul 30, 2009 9:17 pm
by Lestradae
Perhaps even Diamonds ...

:wink:

L

Posted: Fri Jul 31, 2009 6:45 am
by saint
Yep! I could get a new paintwork for my TIE with a scan of the picture disk...

BTW, having a Coriolis painted like the road bridge near Padova Station (Yellow Submarine Graffitti)...