Liners OXP

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

Moderators: winston, another_commander

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: Liners OXP

Post by Commander McLane »

One last remark about the Aurora: it should probably have frangible = no like the other liners. As it is now, you can shoot an engine away and still see the exhaust afterwards. That looks a little odd.
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

Re: Liners OXP

Post by pagroove »

Thank you Commander Mc Lane for taking the time and patience to fix all this. Also Thanks to Smivs for support. :)

I'm very interested in the changes you made. Send them to Smivs for the next update. The Aurora was my first ship and at the time little did I know about things like centering. I believe I did better with the Tigershark. But we still found that this liner could/should be in the OXP.

So yes I'm interested and I want to say a big thank you!
And Commander Mc Lane should definitely be in the credit list of this oxp too.

One thing I wish (But I've read elsewhere that it is virtually impossible) is that you could land on a liner and then it would present you with the message that the liner is about to jump to system... so that you could get the choice to hitch a ride.
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
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Liners OXP

Post by JazHaz »

pagroove wrote:
One thing I wish (But I've read elsewhere that it is virtually impossible) is that you could land on a liner and then it would present you with the message that the liner is about to jump to system... so that you could get the choice to hitch a ride.
With the initial release of the OXP, I was flying near a Liner near a witchpoint, when it suddenly (and with no warning) jumped, and I got pulled into its wormhole. When I emerged I flew away and it jumped again. This time, I managed to stay clear.

The wormholes left by these liners are huge, and long lasting. See the screenshot below, check out the time until collapse!

Image
Oolite Liner Wormhole by JazHaz, on Flickr

I had a bit of fun shooting through the wormhole at a constore, and have the defenders come out and make a beeline for me, only to get caught by the wormhole!
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
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

Re: Liners OXP

Post by pagroove »

Yep thats the fun! The wormholes almost fill the entire scanner range :)
It happened to me too. :).

Makes me think about a sort of Black hole.oxp where you have to escape random appearing wormholes that eat everything. Ships are sucked in and appear on the other side in instellar space. Could it be a new Thargoid weapon?
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
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: Liners OXP

Post by SandJ »

pagroove wrote:
Makes me think about a sort of Black hole.oxp where you have to escape random appearing wormholes that eat everything. Ships are sucked in and appear on the other side in interstellar space.
... and when you next dock there is a call for pilots with experience of the phenomenon - i.e. who have been through it and survived - to go to [some planet] to give evidence ...

... where you get given the job of going to [another planet] for a conference where you personally are told to go to [third planet] to meet someone ...

... where you can volunteer to take a specially modified Q-Bomb back to [original planet] ...

... where you are to set it off to destroy the anomaly causing the black holes. Sadly, when you get to [original planet], you find the Thargoid war fleet that created the 'anomaly' and discover the truth that it is a Thargoid weapon, and, having detonated the modified Q-Bomb you return to [third planet] to report it, where you are told your counter-Thargoid-special-weapon activities have only just begun...
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Liners OXP

Post by Smivs »

Progress Report
Commander McLane has kindly sent all the Aurora updates to me, so I will try to incorporate them and issue a re-release shortly.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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

Re: Liners OXP

Post by pagroove »

That's perfect! a big thanks to Commander Mc Lane!
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:

Re: Liners OXP

Post by Commander McLane »

The liners spawning script produces odd results. I'm getting a liner in roughly every second system. Also, I just met one in an Anarchy. Wouldn't the touristic routes be more confined to safer systems?

The script itself doesn't contain a political condition, only productivity and planet radius. And both are rather broad. With two small random values you get a liner everywhere, independent of what they compare to.
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2026
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Liners OXP

Post by maik »

Commander McLane wrote:
Also, I just met one in an Anarchy. Wouldn't the touristic routes be more confined to safer systems?
Unless a fire in your machine room leaves you unable to maneuver and you get into pirate waters :D
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Liners OXP

Post by Smivs »

Commander McLane wrote:
I just met one in an Anarchy. Wouldn't the touristic routes be more confined to safer systems?
The P&Oo Cruises Saga Class liners, which specialise in retirement cruises for the elderly are limited to safer systems. The others, however, can be found more widely as the patrons might like a bit of excitement on their holidays. :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
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: Liners OXP

Post by Eric Walch »

Commander McLane wrote:
The script itself doesn't contain a political condition, only productivity and planet radius. And both are rather broad. With two small random values you get a liner everywhere, independent of what they compare to.
It is a copy of the conditions of the big_ship populator. The only difference is that the big_ship populator has a (fast decreasing) chance of adding a second and third ship.

The conditions do contain government, only not explicit. productivity is defined as:

Code: Select all

productivity = ((economy ^ 7) + 3) * (government + 4) * population * 8;
And even population in above formula increases with government:

Code: Select all

population = (techlevel * 4) + government + economy + 1;
resulting in:

Code: Select all

productivity = ((economy ^ 7) + 3) * (government + 4) * ((techlevel * 4) + government + economy + 1) * 8
And here, even techlevel increases with govenment :)

For the big ship populator the ship addition was mainly triggered by expected trading and than is productivity the main key for addition. At first I also added government as criterium, but checking it separately seemed pointless as it already was part of the productivity.

I agree that for a pure liner population script, testing productivity makes no sense and it should use other criteria of its own.
Last edited by Eric Walch on Fri Mar 16, 2012 11:23 am, edited 1 time in total.
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: Liners OXP

Post by Commander McLane »

Smivs wrote:
Commander McLane wrote:
I just met one in an Anarchy. Wouldn't the touristic routes be more confined to safer systems?
The P&Oo Cruises Saga Class liners, which specialise in retirement cruises for the elderly are limited to safer systems. The others, however, can be found more widely as the patrons might like a bit of excitement on their holidays. :)
Indeed. I'll keep that in mind when I choose a company to book a cruise from. :wink:

I have another issue, however. The blurb in the OXP talks about finding liners either in the main space lane or orbiting the planet. It would be cool if the latter would actually occur. Currently it doesn't.

I think it shouldn't be too difficult. Having an AI that keeps the ship in a certain distance from the planet (say 2.5 times the planet radius) should suffice. Could be called liners_orbitPlanetAI.plist.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Liners OXP

Post by Smivs »

Commander McLane wrote:
The blurb in the OXP talks about finding liners ... orbiting the planet. It would be cool if the latter would actually occur. Currently it doesn't.
It sort of does. You will find them from time to time adjacent to the main station, loading and off-loading passengers and supplies. As the station is in orbit, so are any liners 'parked' near it.
Having said that, I like the idea of an orbitAI and this may be a feature we can add to a future version.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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: Liners OXP

Post by Eric Walch »

Smivs wrote:
[Having said that, I like the idea of an orbitAI and this may be a feature we can add to a future version.
It won't work with AI alone, so you need help of JS to calculate the next point of the orbit. You could do it with something like:

In the AI

Code: Select all

{
    GLOBAL = {ENTER = ("setStateTo: ORBIT_PLANET");
    };
    ORBIT_PLANET = {
        "COURSE_OK" = ("setSpeedFactorTo: 0.65", performFlyToRangeFromDestination);
        "WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
        "TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
        "INCOMING_MISSILE" = ("setAITo: traderInterceptAI.plist", "setStateTo: INCOMING_MISSILE", "randomPauseAI: 0.5 2.0"); 
        ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
        UPDATE = ("sendScriptMessage: newOrbitPoint", "setDesiredRangeTo: 500.0",
            setDestinationFromCoordinates, checkCourseToDestination, "pauseAI: 10");
    }; 
}
In the ship script:

Code: Select all

this.newOrbitPoint = function ()
{
    var v = this.ship.position.add(this.ship.heading.multiply(10000));
    v = v.subtract(system.mainPlanet.position).direction().multiply(2.5 * system.mainPlanet.radius);
    this.ship.savedCoordinates = system.mainPlanet.position.add(v);
}
The script calculates than every AI update a new point 10000 meters in front of the ship on the orbit.
Last edited by Eric Walch on Fri Mar 16, 2012 4:35 pm, edited 2 times in total.
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: Liners OXP

Post by Commander McLane »

@ Eric: I think this isn't necessary. The reason for me thinking that is that we already had neatly orbiting ships in the game.

Back in the days when exitingTraderAI only went to a desired range of 10000 from the station, traders launched by (among others) Superhubs never could jump, because they were still masslocked. Thus they were stuck in the AI state where they flew to a desired range of 10000 from the station. This lead automagically to orbiting the station in an almost perfect circular orbit. Whenever the desired range was reached, the ship would just dive a little bit until its current destination vector was inside the 10000 m radius, and continue its journey. Rinse, repeat. The result was a circular orbit with the ship's belly always pointing to the station. I don't see any reason why this shouldn't work for orbiting a planet as well.
Post Reply