[RELEASE] Medical Anaconda 1.0

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

Moderators: another_commander, winston

User avatar
Ranthe
---- E L I T E ----
---- E L I T E ----
Posts: 330
Joined: Sat Oct 13, 2012 7:35 pm
Location: Paraparaumu, New Zealand (TL 8, Rich Agricultural, Multi-Government)

[RELEASE] Medical Anaconda 1.0

Post by Ranthe »

Greetings!

This OXP adds NPC "Medical Anaconda" Hospital Ships and their Moray Medical escorts to the game.

The Medical Anaconda vessels is an Anaconda-class (Smivs variant) heavy bulk transport converted for use as a hospital ship. They are operated by the GalCop Medical Corps as mobile treatment facilities to provide medical relief in planetary-wide natural disasters or war zones. The standard Anaconda cargo bays have been refitted as surgical operating rooms and hospital ward facilities, and the missile launchers have been removed to comply with GalCop interstellar conventions and to provide the required space for a medical laboratory. All Medical Anacondas are fitted with planetary landing capability and a single forward pulse laser for asteroid protection.

Because of GalCop interstellar conventions prohibiting hospital ships from carrying heavy weaponry, Medical Anacondas are completely dependent upon escorts of up to six Moray Medical Boats for protection.

Many thanks to Smivs for his assistance and for letting me use his model.

Sample screenshots:
View from forward
View from aft

What I'd really like is to get the Random Ship Names to pick out "medical"-type names for these vessels, but I haven't managed to work out how to do this. Any ideas?If you have it installed, Random Ship Names OXP will generate "medical"-type names for these vessels.

Download here (v1.0)

Installation: Unzip and move the "Medical Anaconda 1.0.oxp" folder into your AddOns folder.

EDIT: Wiki page added - Medical Anaconda
Last edited by Ranthe on Mon Jun 02, 2014 8:40 am, edited 3 times in total.
Commander Ranthe: Flying the Anaconda-class transport Atomic Annie through Galaxy 2.
Combat Ranking: Dangerous
"Big ships take more booty on your interstellar flights..."
laxori666
Competent
Competent
Posts: 37
Joined: Mon Sep 02, 2013 3:45 am

Re: [WIP] Medical Anaconda 0.1

Post by laxori666 »

Looks nice! Maybe you can do something like this: disable random naming (instructions here), then do

Code: Select all

ship.displayName += ": " + worldScripts.randomshipnames.$typeStandalonePhrase("medical");
to generate a medical-sounding name.
User avatar
Ranthe
---- E L I T E ----
---- E L I T E ----
Posts: 330
Joined: Sat Oct 13, 2012 7:35 pm
Location: Paraparaumu, New Zealand (TL 8, Rich Agricultural, Multi-Government)

Re: [WIP] Medical Anaconda 0.1

Post by Ranthe »

laxori666 wrote:
Looks nice! Maybe you can do something like this: disable random naming (instructions here), then do

Code: Select all

ship.displayName += ": " + worldScripts.randomshipnames.$typeStandalonePhrase("medical");
to generate a medical-sounding name.
Does the above "ship.displayName" code go into shipdata.plist, or somewhere else?
Commander Ranthe: Flying the Anaconda-class transport Atomic Annie through Galaxy 2.
Combat Ranking: Dangerous
"Big ships take more booty on your interstellar flights..."
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [WIP] Medical Anaconda 0.1

Post by spara »

Ranthe wrote:
laxori666 wrote:
Looks nice! Maybe you can do something like this: disable random naming (instructions here), then do

Code: Select all

ship.displayName += ": " + worldScripts.randomshipnames.$typeStandalonePhrase("medical");
to generate a medical-sounding name.
Does the above "ship.displayName" code go into shipdata.plist, or somewhere else?
It's js code and you'll need a ship script with shipSpawned event for it. For example in RandomHits check random_hits_big_boss_fighter_adder's script definition from shipdata.plist and the actual scip script oolite-random-hits-bigboss-fighter.js from Scripts folder.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: [WIP] Medical Anaconda 0.1

Post by Svengali »

But be aware that functionality may change anytime and without notification if you are calling undocumented functions in other OXPs .-)
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [WIP] Medical Anaconda 0.1

Post by cim »

Ranthe wrote:
What I'd really like is to get the Random Ship Names to pick out "medical"-type names for these vessels, but I haven't managed to work out how to do this. Any ideas?
If the ship name contains "medical" or "hospital" (not case-sensitive), and the ship "name role" is "trader" it will get a medical name. So, this should be sufficient:

Code: Select all

"script_info" =         {
    "randomshipnames" = "trader";
};
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: [WIP] Medical Anaconda 0.1

Post by Svengali »

cim wrote:
If the ship name contains "medical" or "hospital" (not case-sensitive), and the ship "name role" is "trader" it will get a medical name. So, this should be sufficient:
Yep, either this or simply talk with Commander McLane. A pm or a post in the Randomshipnames topic is not much work .-)
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: [WIP] Medical Anaconda 0.1

Post by JazHaz »

Nice! Now I wish there was a Griff version!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [WIP] Medical Anaconda 0.1

Post by Smivs »

...and a Neolite version, and a 'core' version, and..... :twisted:
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16052
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [WIP] Medical Anaconda 0.1

Post by Cody »

<chortles> Cool idea, Ranthe - have a cookie!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
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: [WIP] Medical Anaconda 0.1

Post by Commander McLane »

Ranthe wrote:
What I'd really like is to get the Random Ship Names to pick out "medical"-type names for these vessels, but I haven't managed to work out how to do this. Any ideas?
Hi Ranthe, you don't actually need to do anything, randomshipnames.oxp does it all for you already. :wink:

Because your ship has "trader" as its role and the word "Medical" in its name, randomshipnames automatically recognizes it as a medical ship. Thus, it qualifies for medical-type names. However, not every medical ship will get a medical name. It's just one possibility among others (the odds are about 10%). One reason is that there a potentially many medical ships, and not so many purely medical names. Thus, if every medical ship would have a medical name, the names would have to repeat pretty quickly. (For the same reason not every bulk hauler gets a bulk hauler name.)

So long story short: you don't have to do or modify anything. :D
User avatar
Ranthe
---- E L I T E ----
---- E L I T E ----
Posts: 330
Joined: Sat Oct 13, 2012 7:35 pm
Location: Paraparaumu, New Zealand (TL 8, Rich Agricultural, Multi-Government)

Re: [RELEASE] Medical Anaconda 1.0

Post by Ranthe »

v1.0: Release version with licensing (updated link in first post).
Commander Ranthe: Flying the Anaconda-class transport Atomic Annie through Galaxy 2.
Combat Ranking: Dangerous
"Big ships take more booty on your interstellar flights..."
User avatar
Agis Silverfish
Dangerous
Dangerous
Posts: 82
Joined: Wed Apr 11, 2012 9:37 pm
Location: Where the winds of Limbo roar

Re: [RELEASE] Medical Anaconda 1.0

Post by Agis Silverfish »

That's really cool. I like Anacondas a lot. I must admit that I expected the Anaconda to be white. :wink:
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: [RELEASE] Medical Anaconda 1.0

Post by Eric Walch »

One thing you could add to shipdata is the line:

Code: Select all

"cargo_carried" = Narcotics;
It won't change anything though. By default will any ship with "medical' in it's shipname, release narcotics when shot down. By declaring the content explicit, you are not depending on the 'medical' string in its name. (In my opinion we should have done this also with the Oolite's MorayMed)
User avatar
Ranthe
---- E L I T E ----
---- E L I T E ----
Posts: 330
Joined: Sat Oct 13, 2012 7:35 pm
Location: Paraparaumu, New Zealand (TL 8, Rich Agricultural, Multi-Government)

Re: [RELEASE] Medical Anaconda 1.0

Post by Ranthe »

Eric Walch wrote:
One thing you could add to shipdata is the line:

Code: Select all

"cargo_carried" = Narcotics;
It won't change anything though. By default will any ship with "medical' in it's shipname, release narcotics when shot down. By declaring the content explicit, you are not depending on the 'medical' string in its name. (In my opinion we should have done this also with the Oolite's MorayMed)
I had to run that idea through my head a few times to work out why a hospital ship would be carrying Narcotics... then the penny dropped that her pharmaceuticals would be classed as narcotics in the wrong hands.

Interesting concept!
Commander Ranthe: Flying the Anaconda-class transport Atomic Annie through Galaxy 2.
Combat Ranking: Dangerous
"Big ships take more booty on your interstellar flights..."
Post Reply