[RELEASE] ShipVersion OXP v1.23

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

Moderators: another_commander, winston

User avatar
Marte
Competent
Competent
Posts: 32
Joined: Mon Jan 05, 2015 11:06 am

Re: [RELEASE] ShipVersion OXP v1.1

Post by Marte »

Norby wrote:
The top 10% get jammers which deny to lock it, a fun thing also but vulnerable to the laser attacks as others.
Oh, my! Now I understand why sometime I'm not able to lock a ship!!! :)

By the way, can I suggest you to add a message that announce this occurrence? Something like: "Target scrambled: can't lock it!"...

Without any clue, this feature seems a bug. ;)
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Norby »

Marte wrote:
Norby wrote:
The top 10% get jammers which deny to lock it, a fun thing also but vulnerable to the laser attacks as others.
Oh, my! Now I understand why sometime I'm not able to lock a ship!!! :)

By the way, can I suggest you to add a message that announce this occurrence? Something like: "Target scrambled: can't lock it!"...

Without any clue, this feature seems a bug. ;)
Nice idea, just I can't make it at oxp level due to the event handler is not fired until the target is not locked (like in Catch-22).
I think this is a core feature request.
User avatar
Rorschachhamster
---- E L I T E ----
---- E L I T E ----
Posts: 274
Joined: Sun Aug 05, 2012 11:46 pm
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Rorschachhamster »

I think you could do something like:

Code: Select all

var shipdata = Ship.shipDataForKey("Entity in Crosshairs when you press R");
if(shipdata["has_military_jammer"]==true ) {display message};
... but I'm not sure if this works if it has a percent-chance with the key like "has_military_jammer"=0.75; :?
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Norby »

There is something: the ship.isJamming tell it exactly, but there is no reference to the ship when is not locked. There is a trick to check all ships in range and compare positions with the orientation of player ship to guess if it is in the crosshairs or not, but there is no keypress event handler which can tell when you press the "r" key. So if I make it then it will be displayed always when lined up. A core solution would be much more elegant.
User avatar
Marte
Competent
Competent
Posts: 32
Joined: Mon Jan 05, 2015 11:06 am

Re: [RELEASE] ShipVersion OXP v1.2

Post by Marte »

I understand the point.

What about a visualization workaround, in the meanwhile? Something like a custom blinking lollipop (color/black/color...) if the player has the Scanner Targeting Enhancement?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] ShipVersion OXP v1.2

Post by cim »

The Military Jammer/Filter equipment pair are not supported equipment items - they're only half-implemented and have various subtle (and some less subtle) bugs. If they happen to do something you find useful for an OXP, that's fair enough.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Norby »

Marte wrote:
Something like a custom blinking lollipop (color/black/color...) if the player has the Scanner Targeting Enhancement?
Blinking a bit disturbing imho, maybe a "Jamming reporter" equipment can provide a beliveable solution which display the message and/or blinking if installed.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Smivs »

Isn't the whole point of these to add a 'stealth' element? Anything which alerts the player to a 'jammed' ship surely defeats the whole point of them.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Marte
Competent
Competent
Posts: 32
Joined: Mon Jan 05, 2015 11:06 am

Re: [RELEASE] ShipVersion OXP v1.2

Post by Marte »

Smivs wrote:
Isn't the whole point of these to add a 'stealth' element? Anything which alerts the player to a 'jammed' ship surely defeats the whole point of them.
The "stealth" element is still present (and not ruined), with the incrased aiming difficult and the incapacity of using missiles (jammed ship is not invisible...)

The alert, if any, is useful only to inform the player that the unlockable enemy is an intended feature and not a bug of the game. ;)
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Cody »

Marte wrote:
The alert, if any, is useful only to inform the player that the unlockable enemy is an intended feature and not a bug of the game.
I don't think you need to alert the player - the Green Gecko doesn't.
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
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: [RELEASE] ShipVersion OXP v1.2

Post by Fatleaf »

Having surprises adds a bit of fun into the game.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] ShipVersion OXP v1.22

Post by Norby »

Following the 3. wish in this post, [wiki]ShipVersion[/wiki] is updated in Mechanics category to v1.22:

- Minimal service level will not cause loss of weapons anymore.
- Fixing a bad service level by 1% is cheaper, only 100 Cr.
- Scanner colors refined: red mean a ship targeting the player, orange mean bounty.
- Fixed a bug at automatic bad service level repair after 5 minutes.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] ShipVersion OXP v1.23

Post by Norby »

In v1.23:
-No version number in NPC names if shipversion is -1 in script_info, used by TIE fighters in [wiki]Star Destroyer[/wiki].
-Small fix in scanner color restore.
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 466
Joined: Mon Sep 17, 2018 5:01 pm

Re: [RELEASE] ShipVersion OXP v1.23

Post by Milo »

With pedantic mode enabled in the debug console, these occur frequently:

Code: Select all

Warning (strict mode): reference to undefined property ship.scriptInfo.shipversion
    Active script: shipversion 1.24
    shipversion.js, line 389:
                    var v = parseInt( ship.scriptInfo.shipversion );

Warning (strict mode): reference to undefined property ship.scriptInfo.shipversion
    Active script: shipversion 1.24
    shipversion.js, line 669:
            var v = parseInt( ship.scriptInfo.shipversion );
            

> ps.scriptInfo 
{}
Please also see here.
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 466
Joined: Mon Sep 17, 2018 5:01 pm

Re: [RELEASE] ShipVersion OXP v1.23

Post by Milo »

Lines 464-467 of shipversion.js:

Code: Select all

                if( ship.bounty > 0 ) {
                    ship.awardEquipment("EQ_EEG");
                    ship.awardEquipment("EQ_HTCAT"); //requires EEG and clean status
                }
Shouldn't that be === 0 instead of > 0 based on the comment (requires clean status)?
Post Reply