Morrigan - force a for sale script possible?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Taka
Average
Average
Posts: 15
Joined: Wed Jul 17, 2019 1:09 pm

Morrigan - force a for sale script possible?

Post by Taka » Wed Aug 14, 2019 11:28 am

After numerous hours of play (2.4 million honestly earned credits) there’s one ship that I wish I could try: the Morrigan.

While I don’t think that I want to permanently fly it (not enough cargo, esp with several passenger berths) it sure is one of the nicest ships in the oolite universe. (Though the Constrictor-II is really nice too.)

Roaming the galaxies’ TL15 stations I have yet to find one for sale.

Is it possible to make a script to ‘force’ it to show up for sale at a TL15 station?

Many thanks.


PS: I wonder if it’s worth the effort. Some of the other “old” ships like the Naga (or Falcon) are not enjoyable to fly... IMHO. Why? Because the rear laser is too obscured by the engine.

User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 282
Joined: Mon May 30, 2016 3:54 am

Re: Morrigan - force a for sale script possible?

Post by montana05 » Wed Aug 14, 2019 11:49 am

Taka wrote:
Wed Aug 14, 2019 11:28 am
Is it possible to make a script to ‘force’ it to show up for sale at a TL15 station?
You can easily do yourself by editing the shipyard.plist. There you will find

techlevel = 15
chance = 0.90

If you change the techlevel to 1 and the chance to 2.0 all systems will be flooded with the ship :wink:

Edit: For complete correct syntax it should be techlevel = 0 (any system) and chance = 1.0. My version is working as well but a bit out of the books.
Last edited by montana05 on Thu Aug 15, 2019 12:40 pm, edited 1 time in total.
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:

User avatar
phkb
Commodore
Commodore
Posts: 2438
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Morrigan - force a for sale script possible?

Post by phkb » Wed Aug 14, 2019 11:53 am

If you're willing to give the latest trunk version a try, code has been added to allow for scripts to add ships directly to the shipyard of a station. This post has some details and links to the wiki for more detailed details of the details. Wait... that sounded a lot better in my head.

Taka
Average
Average
Posts: 15
Joined: Wed Jul 17, 2019 1:09 pm

Re: Morrigan - force a for sale script possible?

Post by Taka » Wed Aug 14, 2019 2:38 pm

phkb...
Thank you for the suggestion and link. It might be beyond my ‘programming’ abilities but I will have a look.

montana05:
Thank you for that tip. I’ll give it a try.

Many thanks to both for the advice!!!


PS:
This evening, by chance, I actually found a Vortex for sale. Been shooting System Vessels (Vipers and cloaked Romulan Bird Of Prey) without taking much of a scratch; or at least nothing that the autorepair system can’t fix quickly. In other words... it’s an uber-ship and really not much fun. :(

She’s not much to look at, some might say her backside is a bit too big... but I like my Boa Clipper. ;)

User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 282
Joined: Mon May 30, 2016 3:54 am

Re: Morrigan - force a for sale script possible?

Post by montana05 » Thu Aug 15, 2019 2:33 pm

Congratulations to your new ship Taka, enjoy the flight. :wink:

Out of curiosity, is actually anybody in charge for this OXP now ? It still seems kind of popular and since I already included it in my own WIP I wouldn't mind yo take it over for future support.
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:

Bernd1983
Average
Average
Posts: 13
Joined: Fri Jun 29, 2018 6:49 pm

Re: Morrigan - force a for sale script possible?

Post by Bernd1983 » Thu Dec 05, 2019 8:22 pm

montana05 wrote:
Wed Aug 14, 2019 11:49 am
Taka wrote:
Wed Aug 14, 2019 11:28 am
Is it possible to make a script to ‘force’ it to show up for sale at a TL15 station?
You can easily do yourself by editing the shipyard.plist. There you will find

techlevel = 15
chance = 0.90

If you change the techlevel to 1 and the chance to 2.0 all systems will be flooded with the ship :wink:

Edit: For complete correct syntax it should be techlevel = 0 (any system) and chance = 1.0. My version is working as well but a bit out of the books.
montana05:
I have as described the shipyard.plist edited from the folder "Confi" of the OXP. But without success. Is there anything else to consider?

Thank you for your help

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13693
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Morrigan - force a for sale script possible?

Post by Cody » Thu Dec 05, 2019 9:17 pm

Bernd1983 wrote:
Thu Dec 05, 2019 8:22 pm
I have as described the shipyard.plist edited from the folder "Confi" of the OXP. But without success.
When restarting the game after the edit, did you hold the shift key down until the spinning Cobra appeared?
Their dreams a tattered sail in the wind

Post Reply