caduceus and neocaduceus

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Commander McLane wrote:
I'm starting to guess that something crappy is going on with my Safari. I have another issue with the faulty display of GIFs, which had solved itself a couple of weeks ago, but has returned now. In both cases I have no idea about the cause.
Have you tried flushing your browser cache? Also, do you have any upstream caching going on? For instance, my IPCop firewall box is set up as a transparent proxy/cache, and it additionally caches updates for Windows, Linux and anti-virus, (though it nightly checks that it has the latest versions) Some ISP's cache popular files too...
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Hi,

it looks like something still has evaded previous fixings...at line 165 the autorepair-script tries to install a timer for this.repairNode which does not exist. I think it was meant to call this.repairShip - is this correct?

Screet
Makara
Dangerous
Dangerous
Posts: 122
Joined: Sat Oct 17, 2009 6:34 pm

Post by Makara »

I've just switched over to a Caduceus Alpha from my Morrigan as I fancied a serious combateering ship (I also have a thing for forward sweeping wings - possible Klingon fetish? :? ). Got to say it is a very nice vessel.

Knew it had a couple of quirks, and it duly went "pop" in fuel stations and by a SLAPU. When it did the same for a flyby of a Thargon Carrier I decided to have a little poke around under the bonnet.

Turns out that removing the three cmounts appears to be enough to fix the Caddy killer problem. Only tested against Fuel Stations so far but at least those work fine. There aren't any other "cmount.DAT" files lurking on my C: drive so it can't be picking up a different one of those. Had a glance over the .DAT file in Notepad++ but couldn't see any obvious problems (no vertices with huge numbers) so am kind of stumped as to what can be done to correct it.
Edit: Seems to only work after flushing the cache (by going Strict play -> Unrestricted play -> Load -> Jump -> Refuel). Otherwise pops again :(

btw - small point, but in the shipdata.plist the Tactical (top down) view is identified with <key>view-description</key> rather than <key>view_description</key>. Only means that the view's name doesn't pop up, but maybe a tiny fix to sneak in to the next release.
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

interesting so it may NOT be the turrets then? I'll try stripping off the turrets and fly it through a fuel depot. I'm going to get to the bottom of this if it kills me. It's screwing up my joy joy gaming experience damn it.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

ClymAngus wrote:
interesting so it may NOT be the turrets then? I'll try stripping off the turrets and fly it through a fuel depot. I'm going to get to the bottom of this if it kills me. It's screwing up my joy joy gaming experience damn it.

Easy m8 its a game :wink:
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
Makara
Dangerous
Dangerous
Posts: 122
Joined: Sat Oct 17, 2009 6:34 pm

Post by Makara »

Okay - I've done a written log of what I got up to without the Caddy A going "pop". Afraid I'm a bit of a numpty, so don't know where to begin getting a detailed log from debug.oxp on a PC :oops:

Removed cmount from caduceus-alpha-player subentities (one or two other small tweaks as well - won't clog things up with full shipdata.plist)
Loaded save with Caddy
Launched
Witchspace jumped
Did a close flyby of Thargoid Carrier
Used Fuel Station
Got pounded by Thargoids (memo to self: destroy carrier before refuelling...)
Had equipment bits repaired by DCN
Got into combat - turrets fired fine
Docked (with shift-D)
Save *
Launch
Witchspace jump
Went to "Begin New Game" from Pause menu
Reloaded (from *)
Launched
Witchspace jump
Thargoid Carrier flyby
Used Fuel Station
Witchspace jump
Killed Thargoid Carrier (mainly by turret)
Used Fuel Station
Combat (including a kill by deliberate ramming)
Docked (manually this time)
Save
Quit Oolite
Restarted Oolite (without flushing cache)
Loaded last save
Launched
Withspace jump
Used Fuel Station

No problems with a random Caduceus death through all of that. Although as I said before, I have had it go pop after removing the cmounts. No idea what changed to reinstate the Caduceus Killer problem.
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

pagroove wrote:
Easy m8 its a game :wink:
Allow me, (if you will) to illustrate a comparison, and through it illuminate my modus operandi to therefor explain my righteous indignation.

Imagine a texture of yours, killing any ship when it tried to dock with a fuel station. I'm sure you would move heaven and earth to find it. Because you are a responsible creator and wish to produce nothing but the best.

Yeah, that was a bit too much. but not being able to iron this one out really does anger me. I don't like not being able to fix something I create. Powerlessness has never been a state in which I can find pleasure. :)

Not that I'm implying that in anyway you do, in fact I'm counting on and appealing to the fact that I assume (based on the high quality of your work that) you don't.

Please understand, I hold you in the highest respect.

as for the sub-entity issue being the cause of the problem:

Interesting work. I'm thinking that maybe it's the destructibility of said sub-entity might be to blame. I'll give it a try.

Hmm maybe it has some mad ass vertex in the model. I've seen that cause problems before too.
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

ClymAngus wrote:
Interesting work. I'm thinking that maybe it's the destructibility of said sub-entity might be to blame. I'll give it a try.

Hmm maybe it has some mad ass vertex in the model. I've seen that cause problems before too.
IIRC Eric once found out that changing the info of all subentities does solve the problem, but that "fix" did lead to all turrets firing forward. Was very impressive as every ship was down in less than 3 seconds ;)

Since the new info is that it's only the cmounts, I've tried something like that: I changed the info of the cmounts only to

Code: Select all

        <string>cmount 0.0 -2.6 26.0 0 1 0 0</string>
         <string>cmount 0.0 -2.6 13.0 0 1 0 0</string>
         <string>cmount 0.0 -2.6 0.0 0 1 0 0</string>
I've yet to find a fuel station or hive to shoot, but at least for the modified trade outpost at Raceedat, which did kill my Caduceus on a few hundred meters distance unless I docked on autopilot, it did work :D

IIRC Eric also said something about Quarternions always having to sum up as 1...and really, I don't even know WHAT I did change. Looking at the ship, I was unable to notice what changed :oops:

EDIT: Found a fuel station...got pretty far in, but then BOOM...looks like I've got to find the original post about the "fix" and then continue trying with other values...

Screet
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

I appreciate everyone's continued efforts to help me fix this "almost great" oxp.
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

I still do not know what this does, but after moving the "1" one step further to the left in the cmount entry, I was able to refuel in a fuel station :D

Code: Select all

        <string>cmount 0.0 -2.6 26.0 1 0 0 0</string>
         <string>cmount 0.0 -2.6 13.0 1 0 0 0</string>
         <string>cmount 0.0 -2.6 0.0 1 0 0 0</string>
Could anyone please explain why this does work and what it does?

BTW: eject and missile launch position could also get an update...guardians typically slam into the ship and missiles also sometimes do the same. When using injectors, missiles ALWAYS crash upon launch...the second value in those position entries seems to do the trick. However, with the crash-thing on the ship itself solved it might not be necessary to modify these anymore?

EDIT: It's now possible to fly through the side bars of a fuel station with the omega variant :D

Screet
Makara
Dangerous
Dangerous
Posts: 122
Joined: Sat Oct 17, 2009 6:34 pm

Post by Makara »

Addendum to my account from earlier. Did a load more flying, docking, launching, refuelling, flybys etc and eventually it did go pop in a Fuel Station.

But Press Space Commander -> Strict Play -> Unrestricted Play -> Load was enough for me to be able to use that station of DOOM with no problems. All very curious.

btw Screet, the Wiki suggests that the magnitude of the quaternions doesn't matter
the Wiki wrote:
Now because quaternions are normalised (adjusted so that W * W + X * X + Y * Y + Z * Z = 1) when Oolite reads them in, you can multiply each part of a quaternion by the same value and still have it represent the same angle. So this rotation can also be represented as W = 1, X = 0, Y = 0, Z= 1 (let's use [1 0 0 1] as shorthand).
And I think Guardians are destined to slam into any ship if you undergo a swift slowdown soon after they launch (I edited them out of my save file for my Morrigan after one self-pwn too many).
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Makara wrote:
Addendum to my account from earlier. Did a load more flying, docking, launching, refuelling, flybys etc and eventually it did go pop in a Fuel Station.
I can confirm this...my dog woke me up sooo early...thought I should fly a bit before going back to sleep. First jump I end up beside a fuel station, enter happily and kaboom.

Exit Oolite, shift-launch it to rebuild the cache, make that jump again, once more there is the fuel station. Enter it and can refuel.

Looks like the problem is inside Oolites cache :(

EDIT: just made a bug report in the appropriate forum.

Screet
Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Post by Chrisfs »

How do you shift-launch. I play OOlite on a Ubuntu box. I launch it by choosing it from the application menu . Do I press shift while clicking it on the menu.
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 »

Screet wrote:

Code: Select all

        <string>cmount 0.0 -2.6 26.0 1 0 0 0</string>
         <string>cmount 0.0 -2.6 13.0 1 0 0 0</string>
         <string>cmount 0.0 -2.6 0.0 1 0 0 0</string>
Could anyone please explain why this does work and what it does?
The quaternion "1 0 0 0" describes the orientation in space. You need 4 parameters for that. Take for example an arrow. To describe the direction it points you need 3 spacial directions (x, y, z). But even when you know its direction, you don't know how it is rotated around its axis. Therefor you need the fourth component.

To describe changing orientation one must constantly translate angles into directions. That is complicated so those four parameters are transformed in something new, called quaternions. With this numbers the computer can calculate much more efficient but they are a bit abstract to us humans. The first digit mainly contains the rotational component while the next three are mainly the x, y, z direction.

The squared sum of the components must be 1 but don't worry about that, because Oolite will lower the values accordingly on loading the values. Only 0,0,0,0 is illegal as that would lead to a division by zero to normalise.
Makara
Dangerous
Dangerous
Posts: 122
Joined: Sat Oct 17, 2009 6:34 pm

Post by Makara »

Ahhhh - so you are saying that the original quaternion (1 0 0 0) was a rotation about an undefined axis. So this is why the cmount subentities caused problems. Still doesn't address all the troubles, but explains this one.
Chrisfs wrote:
How do you shift-launch. I play OOlite on a Ubuntu box. I launch it by choosing it from the application menu . Do I press shift while clicking it on the menu.
Don't know how that style of cache flush is done on a Linux system. But you can start Oolite normally then Retrict to strict play followed by Resetting to Unrestricted play. This seems to flush the cache (or at least has that effect for the Caduceus :wink: )
Post Reply