Page 1 of 2
[RELEASE] Medical Anaconda 1.0
Posted: Sat Sep 07, 2013 4:12 am
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
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 5:36 am
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.
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 7:04 am
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?
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 7:58 am
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.
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 9:55 am
by Svengali
But be aware that functionality may change anytime and without notification if you are calling undocumented functions in other OXPs .-)
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 10:01 am
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";
};
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 10:53 am
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 .-)
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 11:42 am
by JazHaz
Nice! Now I wish there was a Griff version!
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 11:44 am
by Smivs
...and a Neolite version, and a 'core' version, and.....
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 12:11 pm
by Cody
<chortles> Cool idea, Ranthe - have a cookie!
Re: [WIP] Medical Anaconda 0.1
Posted: Sat Sep 07, 2013 1:54 pm
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.
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.
Re: [RELEASE] Medical Anaconda 1.0
Posted: Sat Oct 19, 2013 9:09 pm
by Ranthe
v1.0: Release version with licensing (
updated link in first post).
Re: [RELEASE] Medical Anaconda 1.0
Posted: Sun Oct 20, 2013 7:30 am
by Agis Silverfish
That's really cool. I like Anacondas a lot. I must admit that I expected the Anaconda to be white.
Re: [RELEASE] Medical Anaconda 1.0
Posted: Sun Oct 20, 2013 8:47 am
by Eric Walch
One thing you could add to shipdata is the line:
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)
Re: [RELEASE] Medical Anaconda 1.0
Posted: Mon Oct 21, 2013 5:37 am
by Ranthe
Eric Walch wrote:One thing you could add to shipdata is the line:
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!