Wormhole scanner
Moderators: winston, another_commander
- Commander McLane
- ---- 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:
Wormhole scanner
Just wanted to tell you all that I used the wormhole scanner for the first time. Came across a wormhole in front of a station, targeted it, and it turns out that it leads to a system 6.8LY away.
Made two shorter jumps and arrived in the target system hours before the ETA of my scanned wormhole. So I spend the next couple of hours finding out how far away I could get from the sun in order to make it look like one of the background stars (turns out a good three hours of straight J-flight don't yet do the trick ), before I have to turn around and get back to the witchpoint.
I arrive in time to spend the last half hour lurking and watching interesting ships come and go. And then, very much at the ETA, a Dark Wheel Cobra III pops out of a blue sphere. The target inspector shows that it has exactly 0.2LY of fuel in its tanks, so I figure that must be my man!
Blew him up, of course, before he could orientate himself.
Very nice new feature!
(Oh, and the time acceleration came in handy, too.)
Made two shorter jumps and arrived in the target system hours before the ETA of my scanned wormhole. So I spend the next couple of hours finding out how far away I could get from the sun in order to make it look like one of the background stars (turns out a good three hours of straight J-flight don't yet do the trick ), before I have to turn around and get back to the witchpoint.
I arrive in time to spend the last half hour lurking and watching interesting ships come and go. And then, very much at the ETA, a Dark Wheel Cobra III pops out of a blue sphere. The target inspector shows that it has exactly 0.2LY of fuel in its tanks, so I figure that must be my man!
Blew him up, of course, before he could orientate himself.
Very nice new feature!
(Oh, and the time acceleration came in handy, too.)
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Keeping track of the ships that have entered scanned wormholes and making sure that they appear in the system they are travelling to at the correct time was the reason why it took a few months of Micha's time to implement.
Also, you can save your game and exit it, then continue at a later time and all scanned wormholes will still be tracked and your DW Cobra will still appear when you expect it to, if you are already there waiting for it.
So, all that's left now is for you to start working on the first ever Oolite ambush missions pack, that will put the Wormhole Scanner to good use. How about that, eh?
Also, you can save your game and exit it, then continue at a later time and all scanned wormholes will still be tracked and your DW Cobra will still appear when you expect it to, if you are already there waiting for it.
So, all that's left now is for you to start working on the first ever Oolite ambush missions pack, that will put the Wormhole Scanner to good use. How about that, eh?
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
- Commander McLane
- ---- 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:
Good idea, although I think there is one necessary feature still missing: The ability to set the destination to an NPC witchjump via script. As it is, NPCs jump randomly into one of the neighbouring systems, therefore there is no guarantee that the player will be able to "overtake" his mark, because there may be no system in-between.another_commander wrote:So, all that's left now is for you to start working on the first ever Oolite ambush missions pack, that will put the Wormhole Scanner to good use. How about that, eh?
That's one of the reasons why I requested more JS-control over the whole witchjump-business some time ago. That would start with a JS-method that returns all systems in reach, and also require a method that could transfer a specific system to the NPC's AI, and of course a modified performHyperspaceExit in the AI itself. Alternatively a JS-method that circumvents the AI and performs a jump to a given system directly in the script.
Oh, and by the way: an ambush mission could always be scripted, and doesn't need the wormhole scanner anyway. Just send the player to a target system, and create his mark with an ordinary addShip after a while. (Of course, using the wormhole scanner gives a nice touch to it. )
I must say I did not expect anybody to actually try to ambush any wormholed ships... at least I guess this validates all the 'extra' work
When I started it I just wanted a way to save fuel...
PS. *g* 'months of Micha's time' thanks for the kind words, but, well, to be honest, most of that was trying to get to grips with debugging Obj-C and fixing that 'one' crash bug. Actual real implementation work was in the order of days, perhaps a week or so at most.
When I started it I just wanted a way to save fuel...
PS. *g* 'months of Micha's time' thanks for the kind words, but, well, to be honest, most of that was trying to get to grips with debugging Obj-C and fixing that 'one' crash bug. Actual real implementation work was in the order of days, perhaps a week or so at most.
The glass is twice as big as it needs to be.
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
I propose an experiment.
Some NPCs carry more than 7.0LY of fuel, so the experiment is to see how far those overfuelled ships can jump.
Jump limits are supposed to be hardcoded at 7LY, and for the player ship that's certainly true. But if NPCs break that limit, then the scanner could expose a potential bug.
Some NPCs carry more than 7.0LY of fuel, so the experiment is to see how far those overfuelled ships can jump.
Jump limits are supposed to be hardcoded at 7LY, and for the player ship that's certainly true. But if NPCs break that limit, then the scanner could expose a potential bug.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
I believe you will find that there is no bug there. The code specifically checks for nearby systems that are less than or equal to 7.0LY distant from the current ship position, independently of the fuel being carried. If no such systems are found, the AI receives a "WITCHSPACE_UNAVAILABLE" message and reacts according to that.Cmdr Wyvern wrote:I propose an experiment.
Some NPCs carry more than 7.0LY of fuel, so the experiment is to see how far those overfuelled ships can jump.
Jump limits are supposed to be hardcoded at 7LY, and for the player ship that's certainly true. But if NPCs break that limit, then the scanner could expose a potential bug.
- Rustybolts
- ---- E L I T E ----
- Posts: 293
- Joined: Sun Jun 07, 2009 6:22 pm
- Location: UK
I second that it is just the feature i was looking for in my next mission oxp. At the moment if you want the player to follow a target through their wormhole you can't specify the system computer ship is witching to.Commander McLane wrote:Good idea, although I think there is one necessary feature still missing: The ability to set the destination to an NPC witchjump via script. As it is, NPCs jump randomly into one of the neighbouring systems, therefore there is no guarantee that the player will be able to "overtake" his mark, because there may be no system in-between.another_commander wrote:So, all that's left now is for you to start working on the first ever Oolite ambush missions pack, that will put the Wormhole Scanner to good use. How about that, eh?
That's one of the reasons why I requested more JS-control over the whole witchjump-business some time ago. That would start with a JS-method that returns all systems in reach, and also require a method that could transfer a specific system to the NPC's AI, and of course a modified performHyperspaceExit in the AI itself. Alternatively a JS-method that circumvents the AI and performs a jump to a given system directly in the script.
Oh, and by the way: an ambush mission could always be scripted, and doesn't need the wormhole scanner anyway. Just send the player to a target system, and create his mark with an ordinary addShip after a while. (Of course, using the wormhole scanner gives a nice touch to it. )
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
- wackyman465
- ---- E L I T E ----
- Posts: 831
- Joined: Thu Nov 06, 2008 10:15 pm
- Location: Currently hunting you down in an Imperial Courier
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
The inspector is a development tool for examining ships during play. Its part of Debug.oxp but only available on the mac.wackyman465 wrote:What's this target inspector?The target inspector shows that it has exactly 0.2LY of fuel in its tanks, so I figure that must be my man!
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- wackyman465
- ---- E L I T E ----
- Posts: 831
- Joined: Thu Nov 06, 2008 10:15 pm
- Location: Currently hunting you down in an Imperial Courier
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
- Zbond-Zbond
- ---- E L I T E ----
- Posts: 410
- Joined: Mon Nov 24, 2008 3:49 am
- Location: Healesville, Australia
inadvertently I set the speed of a ship to 8350 instead of 350Commander McLane wrote:I spend the next couple of hours finding out how far away I could get from the sun in order to make it look like one of the background stars
the vessel exploded on launch: it took a while to work out why!! but eventually I removed the "8" and all was well
but then I wondered what is the upper limit????????? so am experimenting with a kestrel, and have got up to 7500 (7.5C) which generates some appropriate relativistic effects, doesn't explode on launch, and renders suns into semi distant stars quite quickly, I imagine. I've been testing the speed of this ship flying between a couple of gas giants, which come up on the screen like suns during skimming for fuel -- but this speed is completely useless for actual game play, of course. It is possible that when the sun becomes too distant it simply goes out, like a distant station..
later edit: yes, sun goes out (gas giants still visible on my moniter)