Cloaking device and Feudal States

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

Moderators: winston, another_commander

tenorman1971
Above Average
Above Average
Posts: 25
Joined: Wed May 04, 2011 5:32 pm
Location: Newark-on-Trent, UK - Poor Agricultural Anarchy

Cloaking device and Feudal States

Post by tenorman1971 »

I recently downloaded the Feudal States OXP. When taking part in challenges at the Royal Hunting Lodge, hi-tec devices such as the cloaking device are disabled. Mine now appears to be permanently gone, and since I can't buy a new one, I wondered if there was any way of getting one back. Just tried installing the Cloak Repair OXP, since a few bits of kit were damaged in a particularly heavy fire-fight, but the cloak wasn't listed on them, and isn't available for repair/exchange at a TL15 planet -so I'm guessing that mine is somehow "stripped". Anyone else had this happen?
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: Cloaking device and Feudal States

Post by Eric Walch »

The easiest way would be to add a "asp-cloaked" to the system with the command:

Code: Select all

system.addShips("asp-cloaked", 1);
And than start searching him and start a fight.. :lol:
Malacandra
---- E L I T E ----
---- E L I T E ----
Posts: 473
Joined: Fri Feb 08, 2013 12:12 pm

Re: Cloaking device and Feudal States

Post by Malacandra »

Eric Walch wrote:
The easiest way would be to add a "asp-cloaked" to the system with the command:

Code: Select all

system.addShips("asp-cloaked", 1);
And than start searching him and start a fight.. :lol:
[noob question]How do you do that?[/noob question]
"Sidewinder Precision Pro" and other Oolite fiction is now available for Amazon Kindle at a bargain price.

Sidewinder Precision Pro ||Claymore Mine ||The Russian Creed ||One Jump Ahead

All titles also available in paperback.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Cloaking device and Feudal States

Post by Smivs »

Malacandra wrote:
Eric Walch wrote:
The easiest way would be to add a "asp-cloaked" to the system with the command:

Code: Select all

system.addShips("asp-cloaked", 1);
And than start searching him and start a fight.. :lol:
[noob question]How do you do that?[/noob question]
You'll need to add a small script to your game. Copy the following code and save it as 'script.js' (without the quote marks).

Code: Select all

// Standard attributes 
this.name           = "Cloaked Asp spawning script"; 
this.author         = "Smivs"; 
this.copyright      = "This script is hereby placed in the public domain."; 
this.version        = "1.0"; 
this.description    = "Script to add a cloaked Asp near player after a jump." 



this.shipWillExitWitchspace = function() 
{
         
    system.addShips("asp-cloaked", 1, player.ship.position, 25000);
    
};
then add it to your AddOns folder. Just to be on the safe side, hold down the shift key when starting Oolite to clear the cache. Next time you jump, a cloaked Asp should appear at the edge of your scanner range.
Don't forget to remove the script once you are done :wink:
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Dr.Tripsa
Dangerous
Dangerous
Posts: 84
Joined: Mon Apr 30, 2012 9:33 pm
Location: In your cargo bay, eating your chips.

Re: Cloaking device and Feudal States

Post by Dr.Tripsa »

Malacandra wrote:
Eric Walch wrote:
The easiest way would be to add a "asp-cloaked" to the system with the command:

Code: Select all

system.addShips("asp-cloaked", 1);
And than start searching him and start a fight.. :lol:
[noob question]How do you do that?[/noob question]

Short answer:
install this oxp, when you have recovered the Cloak.. remove this oxp

http://dl.dropbox.com/u/9855374/CloakAdderFix.oxp.zip
No, I'm not a Trumble... that's a speciest and offensive remark!
~munch~
What?.... I'm hungry.
User avatar
Dr.Tripsa
Dangerous
Dangerous
Posts: 84
Joined: Mon Apr 30, 2012 9:33 pm
Location: In your cargo bay, eating your chips.

Re: Cloaking device and Feudal States

Post by Dr.Tripsa »

Ha, you beat me to it Smivs!
No, I'm not a Trumble... that's a speciest and offensive remark!
~munch~
What?.... I'm hungry.
Malacandra
---- E L I T E ----
---- E L I T E ----
Posts: 473
Joined: Fri Feb 08, 2013 12:12 pm

Re: Cloaking device and Feudal States

Post by Malacandra »

Thanks! (Checking my commander's savefile, I see I "completed" the Cloaking mission without knowing it :headdesk: )
"Sidewinder Precision Pro" and other Oolite fiction is now available for Amazon Kindle at a bargain price.

Sidewinder Precision Pro ||Claymore Mine ||The Russian Creed ||One Jump Ahead

All titles also available in paperback.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Cloaking device and Feudal States

Post by Smivs »

Malacandra wrote:
...I see I "completed" the Cloaking mission without knowing it...
Ah, this will be because you have already completed the mission (got the device before). It prevents the mission being triggered again, but should not affect your/our 'hack' to re-acquire one.
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: Cloaking device and Feudal States

Post by Eric Walch »

Smivs wrote:
Malacandra wrote:
...I see I "completed" the Cloaking mission without knowing it...
Ah, this will be because you have already completed the mission (got the device before).
Not quite: "Completed" means you shot the cloaked asp and the asp dropped the cloak. It does not mean you actually scooped the cloak. :mrgreen:
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: Cloaking device and Feudal States

Post by Commander McLane »

Quick-fix scripts aside, there still seems to be a bug in Feudal States OXP. It shouldn't remove the cloaking device without returning it at some point.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Cloaking device and Feudal States

Post by CommRLock78 »

Commander McLane wrote:
Quick-fix scripts aside, there still seems to be a bug in Feudal States OXP. It shouldn't remove the cloaking device without returning it at some point.
I wonder about that - it sounds as though Malacandra didn't have a cloaking device to begin with. As Eric pointed out, "completed" doesn't mean the device was actually picked up.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
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: Cloaking device and Feudal States

Post by Commander McLane »

CommRLock78 wrote:
Commander McLane wrote:
Quick-fix scripts aside, there still seems to be a bug in Feudal States OXP. It shouldn't remove the cloaking device without returning it at some point.
I wonder about that - it sounds as though Malacandra didn't have a cloaking device to begin with. As Eric pointed out, "completed" doesn't mean the device was actually picked up.
Perhaps not Malacandra, but the original post is not by him:
tenorman1971 wrote:
I recently downloaded the Feudal States OXP. When taking part in challenges at the Royal Hunting Lodge, hi-tec devices such as the cloaking device are disabled. Mine now appears to be permanently gone, and since I can't buy a new one, I wondered if there was any way of getting one back.
This seems to indicate that tenorman1971 did have a cloaking device before taking part in challenges at a Royal Hunting lodge, and didn't have it anymore afterwards.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Cloaking device and Feudal States

Post by CommRLock78 »

Commander McLane wrote:
This seems to indicate that tenorman1971 did have a cloaking device before taking part in challenges at a Royal Hunting lodge, and didn't have it anymore afterwards.
My apologies - I didn't realize that Malacandra wasn't the OP :).
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
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: Cloaking device and Feudal States

Post by Eric Walch »

Commander McLane wrote:
Quick-fix scripts aside, there still seems to be a bug in Feudal States OXP. It shouldn't remove the cloaking device without returning it at some point.
The problem is that Feudal states defines a replacement equipment for the cloak and awards it to the player. But that equipment has:

Code: Select all

		<dict>
			<key>available_to_all</key>
			<false/>
		</dict>
False means not available to the player. In the past this was ignored on awarding by script. Oolite 1.77now follows the the defined limits more strict. I know, as UPS-Courier.oxp had the same bug, but that is fixed in the latest release.
So, false should be replaced by true at several places.
Malacandra
---- E L I T E ----
---- E L I T E ----
Posts: 473
Joined: Fri Feb 08, 2013 12:12 pm

Re: Cloaking device and Feudal States

Post by Malacandra »

Yep, the OP's problem is nothing to do with me - I must have blown the original cloaked Asp out of the sky without noticing anything odd about it. The script fix has done the business; I tried the cloaked_adder OXP but, ahem, couldn't see the Adder anywhere :oops: although the message popped up to tell me it was in the system.

Next time a Commander of mine reaches galaxy 5, I'll have to keep a closer eye out for Asps that drop "unusual cargo container"s. 8)
"Sidewinder Precision Pro" and other Oolite fiction is now available for Amazon Kindle at a bargain price.

Sidewinder Precision Pro ||Claymore Mine ||The Russian Creed ||One Jump Ahead

All titles also available in paperback.
Post Reply