Liners OXP

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

Moderators: winston, another_commander

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:
I don't see any reason why this shouldn't work for orbiting a planet as well.
The main reason will be that there is no AI command that allows you to set a destination towards the centre of the planet :P And when you need JS you can just as well do it proper.
I just tested my code in game, noticed an error and fixed it now above. With above AI and JS, the ship first flies to the orbit and than follows it. In the meanwhile it scans for hostile ships. The whole fighting, when needed, I leave to an oolite AI.
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 »

Just to let you know that I am currently testing an updated version of this OXP. This version will include Commander McLane's Aurora updates, and should address the issue of liners turning up all over the place far too frequently.
I am testing a new populator script based on Government and Tech Level, so they should never appear in Anarchies, and only in other Gov't types of TL 8 and above.
I have also added another ship, an Inter-system Ferry, based on the Anaconda. This will act as a 'make-weight' so that when the game calls a 'liner', these will be called most commonly, thus reducing the number of 'big' liners appearing. Big Ships does the same with standard Anacondas, so it is a tried and trusted way of limiting numbers.
I will play-test this for a few days to ensure that the big liners are appearing correctly and with a sensible frequency before release.
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 »

way to go Smivs :)
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 other day I came across a liner (can't remember which) that was parked in front of a station and exchanging shuttles with the station. The only problem was that it was parked about 10 km right in front of the station, where you'd usually expect to find a nav buoy. Well, let's just say that the buoy repair ship had a hard time delivering a replacement, because there was this big, freaking liner sitting where he wanted to go.

So perhaps the liner AI should stop the ship in a slightly greater distance to the station, in order to avoid accidents like this.

On the plus side, at least colliding with a station buoy after a recklessly close approach doesn't lead to this. :P
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 other day I came across a liner (can't remember which) that was parked in front of a station and exchanging shuttles with the station. The only problem was that it was parked about 10 km right in front of the station, where you'd usually expect to find a nav buoy. Well, let's just say that the buoy repair ship had a hard time delivering a replacement, because there was this big, freaking liner sitting where he wanted to go.
:lol: :lol: :lol: Something to look at for v1.5. :wink:

Edit:- Looking at the AI it is set to 10Km, which of course is the distance of the buoy from the station :roll: so I will try changing this to 15Km. This is not too close to the planet, but my only concern is that any shuttles might try to fly through the buoy to get from station to liner or vice versa. I'm assuming that the game's in-built collision-detection etc will prevent this. One way to find out... :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 »

Smivs wrote:
I have also added another ship, an Inter-system Ferry, based on the Anaconda.
Brilliant.
Commander McLane wrote:
The other day I came across a liner that was parked in front of a station and exchanging shuttles with the station.
Off-topic trivia story: a few years ago on a cruise ship in the Western Med, after the shore excursions they couldn't get one of the winches working to retrieve one of the launches. We had to sit there in the bay for about 4 hours while two crew members were 'stranded' in this launch. After half an hour of bobbing about they were either authorised - or through their own initiative - decided to put the launch through its paces. They spent the next 2 hours belting round the bay, spinning it, slamming it from full ahead into reverse, zooming round the cruise ship and generally had a whale of a time showing off.

I think they must have been told off in the end; they spent their last hour creeping round the edge of the bay exploring caves and buoys.

(Some people moaned about the winch failing - these launches are also lifeboats. We explained the benefit of using the lifeboats as launches means they get tested every day or two so any faults get found and fixed very quickly. Also, the crew become expert in their handling: this was why we assumed they were allowed to 'play' for a while.)
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
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 »

Saw this in the Latest.log:

Code: Select all

13:57:20.192 [ai.invalid.notAStation]: Attempt to use station AI method "launchShuttle" on non-station <ShipEntity 0x7fd2519abb00>{"Cruise Ship 'Patricia'" position: (-61573.9, 50762.5, 384436) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}.
13:57:36.338 [ai.invalid.notAStation]: Attempt to use station AI method "launchShuttle" on non-station <ShipEntity 0x7fd2519abb00>{"Cruise Ship 'Patricia'" position: (-61573.9, 50762.5, 384436) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}.
I saw the Cruise Ship 'Patricia' and requested to dock; no response so it definitely is not one you can dock with.
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 »

Yes, the 'Patricia' is one of the Saga Class liners and is not dockable. I'll have a look and see if I can work out what is going on there. Thanks for the heads-up.

Edit:- Ah, it's the one of the custom AIs for the liners. There is one part where it looks like a dice-roll can 'launch shuttle' regardless of whether the liner has shuttles or not :roll:
I might need to do a custom AI for the Saga Class ships without this 'feature'. Also the Aurora is no longer dockable due to issues with its dock, so the same problem could apply to that ship as well. Now is a good time as I'm having a serious tidy-up of the OXP. It should be sorted before the update release. :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Liners OXP

Post by Switeck »

Some of these liners seem to have a targeting box problem -- if/when you target them, the targeting box appears much larger than the liner. Might this cause collision and pathfinding issues?
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 »

Switeck wrote:
Some of these liners seem to have a targeting box problem -- if/when you target them, the targeting box appears much larger than the liner. Might this cause collision and pathfinding issues?
Switeck, I suspect you are refering to the issue first discussed here. This has been sorted now thanks to Commander McLane, and the pending re-release will include this fix.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 »

28th May 2012

Update release - v1.4

This update release has an improved populator to reduce the number of big Liners appearing - they should now be quite rare. They now only appear in relatively stable systems (no Anarchies and only TL9 and above). Commander McLanes bounding-box corrections to the Aurora have been included, and three varieties of 'Inter-system Ferries' have been added.
As per discussions elsewhere, the 'readme' is now available as both .txt or .rtf files.
Download
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 »

Update release.
v1.4.1 is now available. This is just a minor AI update to prevent the Aurora liner ariving at a planet and staying indefinitely. It will now head off towards the witchpoint after a short wait.

Edited to add:- Thanks to Commander McLane for the bug alert.
Last edited by Smivs on Mon Sep 10, 2012 12:54 pm, edited 1 time in total.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 »

Smivs wrote:
Update release.
v1.4.1 is now available. This is just a minor AI update to prevent the Aurora liner ariving at a planet and staying indefinitely. It will now head off towards the witchpoint after a short wait.
That bug might be why I found two Auroras at a station, as pictured on the Screenshots thread.
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 »

Very possible. I think the Big Ships populator generated two, but this might explain why they both ended up at the planet together.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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 »

Update version release - v1.5

Just a note to let you all know that v1.5 is now available. This is a cosmetic update.
An issue with the Emerald dock has been addressed - it did not 'fit' properly and was previously set too far back in the ship. To improve matters the dock has been re-positioned. The dock model will be replaced in a future update to improve the fit further.
The Saga Class Liners, their escort Adders and the three Inter-system Ferries all have updated textures and now also have normal and specular maps.

'Ooniversal Ferries' Inter-system ferry
Image
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply