Split: Custom Shields OXP

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

Moderators: winston, another_commander

Post Reply
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Split: Custom Shields OXP

Post by Zireael »

Moderator: Split from Progress thread.
I am particularly enamoured of the 'shield effects' OXZ
What is the OXZ you're referring to?
User avatar
Bangbangduck
Deadly
Deadly
Posts: 169
Joined: Tue Apr 29, 2014 5:57 pm
Location: My God it's full of stars

Re: Progress

Post by Bangbangduck »

Zireael wrote:
I am particularly enamoured of the 'shield effects' OXZ
What is the OXZ you're referring to?

Custom Shields. Hit an NPC and the shields flash as they 'absorb' the laser fire. Looks fantastic!

BBD
Do not press this button [O].....Oh Bugger!
Cobra MKIII Grendal's Dam
User avatar
mossfoot
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri May 30, 2014 4:07 pm
Contact:

Re: Progress

Post by mossfoot »

Bangbangduck wrote:
Zireael wrote:
I am particularly enamoured of the 'shield effects' OXZ
What is the OXZ you're referring to?

Custom Shields. Hit an NPC and the shields flash as they 'absorb' the laser fire. Looks fantastic!

BBD
Need those better explosions added in OXZ to accompany them :)
--
Image
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean

http://www.noahchinnbooks.com/
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Split: Custom Shields OXP

Post by another_commander »

Custom Shields OXP discussion split to own thread from Progress.
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Split: Custom Shields OXP

Post by UK_Eliter »

I've noticed a problem - pretty much cosmetic - when looking at my logs. It's errors of this type:

[script.javaScript.exception.unexpectedType]: ***** JavaScript exception (customshields 0.83): TypeError: player.ship.position is undefined

I imagine they are generated when they player is docked or has launched the escape pod.

What is needed, I think, is - within the functions in the script that interrogate player.ship.position, something like this:

Code: Select all

if (player.ship.isValid && player.ship.position) { <your code here>
}
It's not necessary to check whether player.ship exists at all, because it always does.
Post Reply