Wormhole scanner

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Mauiby de Fug
---- E L I T E ----
---- E L I T E ----
Posts: 847
Joined: Tue Sep 07, 2010 2:23 pm

Wormhole scanner

Post by Mauiby de Fug »

As version 1.75 is now out, I'm in the process of updating/reorganizing my AddOns folder, and as I was clearing it out, I decided to use the time to work on my Wormhole drones, which I've somewhat neglected.
In testing, I noticed this:
Image

Image

The drone has a very high density, so that the wormhole would stay open for a long time while testing. In v1.74.2, this time ended up being about 10 and a half minutes. Here, however...
I also noticed that it doesn't appear to change.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Wormhole scanner

Post by Eric Walch »

Mauiby de Fug wrote:
The drone has a very high density, so that the wormhole would stay open for a long time while testing. In v1.74.2, this time ended up being about 10 and a half minutes. Here, however...
I also noticed that it doesn't appear to change.
Strange, I just tested with a Behemoth. (in the console: PS.target.exitSystem()) It displayed a time of about 254 minutes. This is about the same as I remember from the behemoth in 1.74. And certainly more than the 10 minutes in your example. So there must be more to it for this bug.

For a wormhole you can also make an entity dump by targeting it and pressing Shift-H and looking in your latest log. Maybe that log contains a clue?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole scanner

Post by another_commander »

Same test as Eric, I am testing with a Behemoth and reading Collapsing in: 256:06 as I am writing this.
User avatar
Mauiby de Fug
---- E L I T E ----
---- E L I T E ----
Posts: 847
Joined: Tue Sep 07, 2010 2:23 pm

Re: Wormhole scanner

Post by Mauiby de Fug »

I've tested via the console various ships which were in the system, and they seem to be working fine.

Here's the log dump from 3 of my wormholes, if it helps...:

Code: Select all

[dumpState]: State for <WormholeEntity 0xa7bf7b8>{destination: Learorce ttl: -nans arrival: 2084036:15:38:27}:
  [dumpState.entity]: Universal ID: 495
  [dumpState.entity]: Scan class: CLASS_WORMHOLE
  [dumpState.entity]: Status: STATUS_EFFECT
  [dumpState.entity]: Position: (8473, -9777.32, 7547.14)
  [dumpState.entity]: Orientation: (1 + 0i + 0j + 0k)
  [dumpState.entity]: Distance travelled: 0
  [dumpState.entity]: Energy: 0 of 0
  [dumpState.entity]: Mass: 0
  [dumpState.entity]: Owner: none
  [dumpState.entity]: Flags: isWormhole, isSunlit, collisionTestFilter
  [dumpState.wormholeEntity]: Origin: Isatre
  [dumpState.wormholeEntity]: Destination: Learorce
  [dumpState.wormholeEntity]: Expiry Time: -2147483648:-596524:-15:-8
  [dumpState.wormholeEntity]: Arrival Time: 2084036:15:38:27
  [dumpState.wormholeEntity]: Scanned Time: 2084035:12:36:04
  [dumpState.wormholeEntity]: Scanned State: WH_SCANINFO_ARRIVAL_TIME
  [dumpState.wormholeEntity]: Mass: 307373.94
  [dumpState.wormholeEntity]: Ships: 1
  [dumpState.wormholeEntity.ships]: Ship 1: <ShipEntity 0xacfc2628>{"Wormhole Generator" position: (8473.61, -9777.42, 7550.58) scanClass: CLASS_MINE status: STATUS_ENTERING_WITCHSPACE}  mass 135270.19  arrival time -2147483648:-596524:-15:-8

[dumpState]: State for <WormholeEntity 0xaaaf798>{destination: Xeaqu ttl: -nans arrival: 2084036:19:38:43}:
  [dumpState.entity]: Universal ID: 562
  [dumpState.entity]: Scan class: CLASS_WORMHOLE
  [dumpState.entity]: Status: STATUS_EFFECT
  [dumpState.entity]: Position: (15271.9, 9809.38, 14296.9)
  [dumpState.entity]: Orientation: (1 + 0i + 0j + 0k)
  [dumpState.entity]: Distance travelled: 0
  [dumpState.entity]: Energy: 0 of 0
  [dumpState.entity]: Mass: 0
  [dumpState.entity]: Owner: none
  [dumpState.entity]: Flags: isWormhole, isSunlit
  [dumpState.wormholeEntity]: Origin: Learorce
  [dumpState.wormholeEntity]: Destination: Xeaqu
  [dumpState.wormholeEntity]: Expiry Time: -2147483648:-596524:-15:-8
  [dumpState.wormholeEntity]: Arrival Time: 2084036:19:38:43
  [dumpState.wormholeEntity]: Scanned Time: 2084036:15:38:47
  [dumpState.wormholeEntity]: Scanned State: WH_SCANINFO_SCANNED
  [dumpState.wormholeEntity]: Mass: 312483.02
  [dumpState.wormholeEntity]: Ships: 1
  [dumpState.wormholeEntity.ships]: Ship 1: <ShipEntity 0xa6a60e8>{"Wormhole Generator" position: (15271.9, 9809.38, 14296.9) scanClass: CLASS_NEUTRAL status: STATUS_ENTERING_WITCHSPACE}  mass 135270.19  arrival time -2147483648:-596524:-15:-8

[dumpState]: State for <WormholeEntity 0xace9718>{destination: Usatqura ttl: -nans arrival: 2084037:03:29:27}:
  [dumpState.entity]: Universal ID: 631
  [dumpState.entity]: Scan class: CLASS_WORMHOLE
  [dumpState.entity]: Status: STATUS_EFFECT
  [dumpState.entity]: Position: (5585.94, -5632.81, -21641.4)
  [dumpState.entity]: Orientation: (1 + 0i + 0j + 0k)
  [dumpState.entity]: Distance travelled: 0
  [dumpState.entity]: Energy: 0 of 0
  [dumpState.entity]: Mass: 0
  [dumpState.entity]: Owner: none
  [dumpState.entity]: Flags: isWormhole, isSunlit, collisionTestFilter
  [dumpState.wormholeEntity]: Origin: Xeaqu
  [dumpState.wormholeEntity]: Destination: Usatqura
  [dumpState.wormholeEntity]: Expiry Time: -2147483648:-596524:-15:-8
  [dumpState.wormholeEntity]: Arrival Time: 2084037:03:29:27
  [dumpState.wormholeEntity]: Scanned Time: 2084036:19:39:09
  [dumpState.wormholeEntity]: Scanned State: WH_SCANINFO_ARRIVAL_TIME
  [dumpState.wormholeEntity]: Mass: 290355.51
  [dumpState.wormholeEntity]: Ships: 1
  [dumpState.wormholeEntity.ships]: Ship 1: <ShipEntity 0xaa9e260>{"Wormhole Generator" position: (5585.94, -5632.81, -21641.4) scanClass: CLASS_NEUTRAL status: STATUS_ENTERING_WITCHSPACE}  mass 135270.19  arrival time -2147483648:-596524:-15:-8
(That Shift+H thing could be useful - I didn't know about that!)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Wormhole scanner

Post by Eric Walch »

I now took another ship. Actually the station buoy because that was in front of me. I added fuel to it and send it in to the next system. And now I also got the wrong display. At least a start to work on.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole scanner

Post by another_commander »

Problem is a division by zero in -suckInShip:. More specifically, this:

Code: Select all

float d = distance(position, [ship position]);
float afterburnerFactor = [ship hasFuelInjection] && [ship fuel] > MIN_FUEL ? [ship afterburnerFactor] : 1.0;
float shipSpeed = [ship maxFlightSpeed] * afterburnerFactor;
now += d / shipSpeed; // <------- CRASH BANG KABOOOMMM!!!! Buoys and other immobile entities don't have speed
if( now > expiry_time)
	return NO;
Post Reply