Question about carriers

General discussion for players of Oolite.

Moderators: winston, another_commander

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

Question about carriers

Post by pagroove »

If you land at a carrier. Will it eventually jump into another system?
If so is it then possible to add a counter so that the commander that docks can see an Estimated time before jump with destination shown. In that way the ships that don't have a hyperdrive and regular ships can actually use those liners, and carriers to their advantage.
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
User avatar
Commander McLane
---- E L I T E ----
---- 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:

Post by Commander McLane »

Good question.

First of all it will depend on the carrier's AI, I guess. If it generally doesn't jump, chances are that it won't with you on board.

The special case is of course carriers in interstellar space. It is hardcoded in Oolite that you only can launch into a system. Therefore, if you dock with a carrier (or a station, for that matter) in interstellar space, you will find that upon launch it is suddenly located in one of the adjacent systems. Which may be explained for carriers, but makes no sense for stations, of course. Which is why the spawning of stations in interstellar space is advised against.

But I think it is easy to make a test case. Just modify the AI of any existing carrier so that it jumps out a minute after spawning. Spawn it, dock with it, and wait a minute. Then you'll see what happens.
Last edited by Commander McLane on Sun Aug 08, 2010 8:32 pm, edited 1 time in total.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

But soon to be changed, if I remember well...
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: Question about carriers

Post by Cmdr Wyvern »

pagroove wrote:
If you land at a carrier. Will it eventually jump into another system?
The Behemoths do, at least from Bugspace.
pagroove wrote:
If so is it then possible to add a counter so that the commander that docks can see an Estimated time before jump with destination shown. In that way the ships that don't have a hyperdrive and regular ships can actually use those liners, and carriers to their advantage.
The counter sounds like a good idea. 8)

I may be wrong, but I thought every ship flyable by the player automatically had a witchdrive. On the other hand, if you're too low on fuel to make a jump, then hitching a ride is a damn good idea.
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
User avatar
Commander McLane
---- E L I T E ----
---- 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:

Re: Question about carriers

Post by Commander McLane »

Cmdr Wyvern wrote:
I may be wrong, but I thought every ship flyable by the player automatically had a witchdrive.
Actually every ship in Oolite has a witchdrive, even those which are not supposed to. That's because the witchdrive isn't actually an equipment. Whether an NPC can jump or not is purely a matter of AI and fuel.
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 »

No time to test. I'm curious though.
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
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 »

Commander McLane wrote:
But I think it is easy to make a test case. Just modify the AI of any existing carrier so that it jumps out a minute after spawning. Spawn it, dock with it, and wait a minute. Then you'll see what happens.
I just did out of curiosity. I spawned a dredger, docked with it and changed its AI into an "exitingTraderAI". And I opened a mac-target inspector for easier following the carrier actions.

The ship jumped but I did not see as difference. Going through the F6 screen told me I still was in the old system. Then on launch things started to change. I think I launched in the old system at the location of the wormhole. I saw the wormhole at the centre of the scanner. Than I was immediately sucked in by the wormhole and ended in the system where the carrier jumped to. But because I waited some time, the dredger already had flown off the scanner.

At least it is not handled as launching from the carrier in the new system, but as launching from the carrier in the old system and following him through the hole. And I assume when I would have waited long enough for the wormhole to collapse, I would have stayed in the old system.


When you want to repeat it, get the console and type:

Code: Select all

this.ship=PS.target
this.ship.fuel=70
// (dock now)
this.ship.setAI("exitingTraderAI.plist")
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

As Commander McLane said, if you dock to a carrier/station in interstellar space, when you undock you'll find yourself magically transported to a nearby system - the nearest system to be precise, and this without modifying AIs.

And as Thargoid semi-remembered, from 1.75 (provided we don't discover major - unsolvable - problems with it) there's going to be a new shipdata key: 'interstellar_undocking'.
In future (& in trunk), if you've got

Code: Select all

"interstellar_undocking" = YES;
as part of a carrier/station definition, you can dock in interstellar space secure in the knowledge that you'll undock in the same interstellar space! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
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 »

as part of a carrier/station definition, you can dock in interstellar space secure in the knowledge that you'll undock in the same interstellar space!
So you mean that the situation that Eric describes then doesn't happen anymore and you come out of the 'tube' in the right system?


O EDIT:

And on the subject of counters. Are ETA (Estimated Time of Arival) counters possible in Oolite? Would be also cool if you have an Advanced space compass stage 2 which displays the ETA- countdown to the Station based on your speed.
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
User avatar
tonyhippy
Dangerous
Dangerous
Posts: 90
Joined: Mon Apr 19, 2010 8:23 pm
Location: UK
Contact:

Post by tonyhippy »

Talking of stations in interstellar space, the new wasp stations definately do spawn there I found out last night. On this occasion they mostly seemed to be fighting the Thargoids and I was able to hitch a ride on the station back to normal space.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Only one thing missing then for 1.75: The option of placing suns into interstellar space by script. Or generally placing suns. Could make for 2+ star systems and/or new systems in withdrive routes, i.e.

Why is this not a scripting request already?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: ..

Post by another_commander »

Lestradae wrote:
Only one thing missing then for 1.75: The option of placing suns into interstellar space by script. Or generally placing suns. Could make for 2+ star systems and/or new systems in withdrive routes, i.e.

Why is this not a scripting request already?
Because interstellar space is defined as the absense of sun throughout the code:

Code: Select all

- (BOOL) inInterstellarSpace
{
	return [self sun] == nil;
}
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Yep, no suns are allowed in interstellar space by definition.

However, you can add planets, & sun-shaped ships: if the latter, you can set them to glow in a sun-like manner... :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2279
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

yeah, the whole point of WS having no suns is, of course, you can end up trapped there w/ no scooping ability to fill your tanks and escape.
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 »

Kaks wrote:
However, you can add planets, & sun-shaped ships: if the latter, you can set them to glow in a sun-like manner... :)
But this will lack the main feature of a sun: a :idea: is a light source :!:
That will also be the main reason that multiple suns is unlikely to be added soon. Having just one light source is so waved through the code that adding a new light source will require a lot of rewriting.
Post Reply