wiki typo or really the case?

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

Moderators: winston, another_commander

User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

wiki typo or really the case?

Post 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
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post 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.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

I think he was asking about the spelling. :-)

The game does in fact expect it to be spelled properly.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post 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 :-)
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post 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
User avatar
drew
---- E L I T E ----
---- E L I T E ----
Posts: 2190
Joined: Fri May 19, 2006 9:29 am
Location: In front of a laptop writing a book.
Contact:

Post 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.
Drew is an author of SF and Fantasy Novels
WebsiteFacebookTwitter
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: wiki typo or really the case?

Post 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'?
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: wiki typo or really the case?

Post 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.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Applies to some equipment anyway...

Post 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!
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: wiki typo or really the case?

Post 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;
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: wiki typo or really the case?

Post 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.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: wiki typo or really the case?

Post 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 :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
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: wiki typo or really the case?

Post 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%.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: wiki typo or really the case?

Post 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?
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: wiki typo or really the case?

Post 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.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
Post Reply