Page 1 of 2

wiki typo or really the case?

Posted: Sat Nov 29, 2008 9:21 pm
by Lestradae
The wiki says a certain command works like this:

Code: Select all

<key>has_cloacking_device</key>
<real>0.5</real>
... seriously? :wink:

Not cloaking, instead?

:?:

L

Posted: Sat Nov 29, 2008 9:31 pm
by another_commander
This is correct. The has_cloaking_device key takes what is called a fuzzy boolean parameter value. The 0.5 means that the ship that has this entry has 50% chance of carrying a cloaking device. You can do of course

Code: Select all

"has_cloaking_device" = yes/no;
which means 1.0 or 0.0 (100% or 0% respectively) chance of being true, but any float value between 0.0 and 1.0 is acceptable. Note that this applies also to the has_ecm, has_scoop, has_escape_pod, has_energy_bomb, has_fuel_injection, has_military_jammer and has_military_scanner_filter keys.

Posted: Sat Nov 29, 2008 9:37 pm
by JensAyton
I think he was asking about the spelling. :-)

The game does in fact expect it to be spelled properly.

Posted: Sat Nov 29, 2008 9:40 pm
by another_commander
One of these days I'm gonna learn how to read and then everything will be fine. I will, you'll see :-)

...

Posted: Sun Nov 30, 2008 1:46 am
by Lestradae
Hi guys,

thanks for the prompt replies!

Concerning the reading thing, I also noticed the typo only at third glance - and was not sure, if it wasn`t a, sort of, historic typo that aegidian built into the code and now thirty oxps would have to be changed if it was corrected in the core game or somesuch :)

Perhaps the wiki text should be changed, then.

Good n8 8)

L

Posted: Sun Nov 30, 2008 7:59 am
by drew
A cloacking device?

Yes, used only by a subversive militant wing of the Zadies feminist movement. Named after their founder, Chloe Wanabreaker, it allows thus equipped ships to acknowledge each others presence at long range and co-ordinate attacks on any ships piloted by males of any species who havent fed the dog, put out the feline, done the washing up, hoovered the engine room or left bits of witchspace drive injectors in the sink.

Cheers,

Drew.

Re: wiki typo or really the case?

Posted: Sat Apr 28, 2012 6:30 pm
by Smivs
Seemed a bit pointless starting a new thread, and this does concern a suspected Wiki Typo.

If you look here on the 'Player' page of the js section, it describes how the 'addMessageToArrivalReport' method works.
Adds a message to the arrival report. This is the report shown immediately after docking. Oolite is putting its own stuff on the list immediately after shipWillDockAtStation() so it will be a good moment to add the messages at that moment when you know what station will be docked. At shipDockedWithStation() it will be to late as the report is already being shown at that moment. Messages added will be on the list above oolites own arrival messages. Messages added on the list other than during shipWillDockAtStation() will trigged the report screen when using the F5 screen during flight. This will be fixed in future versions but for now, only add them at shipWillDockAtStation().
Should 'shipWillDockAtStation' not be 'shipWillDockWithStation'?

Re: wiki typo or really the case?

Posted: Sat Apr 28, 2012 7:25 pm
by cim
Smivs wrote:
Adds a message to the arrival report. This is the report shown immediately after docking. Oolite is putting its own stuff on the list immediately after shipWillDockAtStation() so it will be a good moment to add the messages at that moment when you know what station will be docked. At shipDockedWithStation() it will be to late as the report is already being shown at that moment. Messages added will be on the list above oolites own arrival messages. Messages added on the list other than during shipWillDockAtStation() will trigged the report screen when using the F5 screen during flight. This will be fixed in future versions but for now, only add them at shipWillDockAtStation().
Should 'shipWillDockAtStation' not be 'shipWillDockWithStation'?
Yes. Also, we are now in future versions, so more general updating of that sentence is needed. Done, and thank you.

Applies to some equipment anyway...

Posted: Sun Apr 29, 2012 4:47 am
by Switeck
another_commander wrote:
Note that this applies also to the has_ecm, has_scoop, has_escape_pod, has_energy_bomb, has_fuel_injection, has_military_jammer and has_military_scanner_filter keys.
Sadly, there doesn't seem to be a has_naval_energy_unit or has_extra_energy_unit (or equivalent?) -- a NPC ship has to be defined with a higher energy_recharge_rate in its shipdata.plist to simulate having that equipment. :(

...And if a NPC ship has a cloaking device, it's probably going to WANT a higher-than-default energy regen rate!

Re: wiki typo or really the case?

Posted: Sun Apr 29, 2012 8:18 am
by Capt. Murphy
Energy enhancing equipment for NPCs is defined in shipdata.plist...
has_shield_booster

Determines if a ship has the shield booster. (enlarges max energy with 256)

Example:

"has_shield_booster" = 0.80;

has_shield_enhancer

Determines if a ship has the coveted shield enhancer. (enlarges max energy with 256 and raises energy recharge rate with 50%)

Example:

"has_shield_enhancer" = 0.45;

Re: wiki typo or really the case?

Posted: Sun Apr 29, 2012 10:02 am
by Switeck
I'm aware of those and use both heavily in Switeck's Shipping OXP.
They can prolong the use of a cloaking device by a NPC ship but their effect on energy regeneration rates isn't so obvious.
Plus, this can mean running into a hostile cloaked NPC ship quickly after arriving at a system makes for a MUCH tougher fight than waiting till it's depleted almost all its energy.

Re: wiki typo or really the case?

Posted: Sun Apr 29, 2012 10:32 am
by Smivs
cim wrote:
Smivs wrote:
Adds a message to the arrival report. This is the report shown immediately after docking. Oolite is putting its own stuff on the list immediately after shipWillDockAtStation() so it will be a good moment to add the messages at that moment when you know what station will be docked. At shipDockedWithStation() it will be to late as the report is already being shown at that moment. Messages added will be on the list above oolites own arrival messages. Messages added on the list other than during shipWillDockAtStation() will trigged the report screen when using the F5 screen during flight. This will be fixed in future versions but for now, only add them at shipWillDockAtStation().
Should 'shipWillDockAtStation' not be 'shipWillDockWithStation'?
Yes. Also, we are now in future versions, so more general updating of that sentence is needed. Done, and thank you.
That's great...thanks for sorting that out, and for updating the text :)

Re: wiki typo or really the case?

Posted: Sun Apr 29, 2012 11:29 am
by Commander McLane
Switeck wrote:
I'm aware of those and use both heavily in Switeck's Shipping OXP.
They can prolong the use of a cloaking device by a NPC ship but their effect on energy regeneration rates isn't so obvious.
I suspect you mean 'not so obvious to observe in-game'? Because the Wiki explanation is obvious: only the latter of the two devices has an effect on energy recharge, and this effect is to increase the recharge rate by 50%.

Re: wiki typo or really the case?

Posted: Mon Apr 30, 2012 5:48 am
by Switeck
Correct, observing it in-game is tricky...because unless you do entity dumps you probably don't know their energy levels (or max). (This too may be different on a Mac, but I'm using Windows so I don't know.)

Would awarding a NPC ship the special npc energy boosters via a script cause them to immediately gain quicker energy regen and much higher energy max, or do they have to have those equipment when spawned?

...Likewise, can you trick a NPC ship into turning on/off its cloak by giving and removing it via .js script?

Re: wiki typo or really the case?

Posted: Mon Apr 30, 2012 6:34 am
by Capt. Murphy
Switeck wrote:

Would awarding a NPC ship the special npc energy boosters via a script cause them to immediately gain quicker energy regen and much higher energy max, or do they have to have those equipment when spawned?

...Likewise, can you trick a NPC ship into turning on/off its cloak by giving and removing it via .js script?
http://wiki.alioth.net/index.php/Oolite ... #isCloaked

isCloaked is read/write so you can turn on/off an NPC's cloak at will. They may turn it back on again depending on the setting of http://wiki.alioth.net/index.php/Oolite ... kAutomatic

I'd have thought awarding "EQ_SHIELD_ENHANCER" would have an immediate effect - why don't you try? Debug console is your friend for this kind of experimentation.