Cosmetic Lasers

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

Moderators: winston, another_commander

Post Reply
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Cosmetic Lasers

Post by Commander Wilmot »

I was wondering if it would be possible to add dual lasers for cosmetic purposes; the player's ship would have only one laser still. I was thinking that for oxp ships which have dual lasers, the player should have two, because on some ships it would look better; Could someone adjust the laser position variable so that you can have two values that would show the laser beam twice.
Like so:
Image
(borrowed the picture from another game I play)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Cosmetic Lasers

Post by Smivs »

'fraid not, sorry.
The reasons why have been covered many times elsewhere on this forum, but the bottom line is, as the game stands, player twin lasers cannot be done.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Cosmetic Lasers

Post by Commander Wilmot »

Clarifying Statement:
Ok, but my understanding was that multiple lasers for player ships were impossible, I was not talking about twin lasers for the player, I was wondering if it would be possible, in a future version, to make the laser appear twice. I'll take your word for it that it's in the source code.
(Don't respond if the last statement is true)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Cosmetic Lasers

Post by Smivs »

As a cosmetic idea it's quite nice....it certainly would look cool. The single laser is sort of hard-coded in as far as I know, but it might be changeable.
You can change your laser colour, if you want to improve the look a bit.
Open your shipdata.plist (in the 'Config' folder of your ship's OXP) and add the line

Code: Select all

"laser_color" = magentaColor;
which will give you a magenta laser (like the Vipers).

You can find a list of the available colours here.
A word of warning:- if changing plists, always make a copy before you start so you have a record of the original (in case anything goes wrong), and DON'T use notepad as it breaks them by adding un-wanted characters. Use Notepad++ or gedit or something else.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Cosmetic Lasers

Post by Commander Wilmot »

Thanks, everyone's been every helpfull. I have a custom skin on my diamondback, maybe I should change the laser color as well... I always back up my mods and the original files,
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Cosmetic Lasers

Post by DaddyHoggy »

There was, briefly, talk of splitting the output for a single laser into two beams, as per the original C64 (and others?) version of Elite - but as, I think Ahruman, pointed out, how would it work? Where would the beam focus? Would there have to be a convergent sweet spot? Would the beams cross (and look silly?) What if one beam hit and the other didn't - half damage? Therefore = too complicated for the sake of cosmetics?

(I was wondering with all this new whizzing scripting stuff in 1.75 if the beam position couldn't be rapidly moved between positions either side of the centre line thus giving the impression of two beams - although I suspect this would happen at a much slower than frame rate rate and thus would look silly and at best make even a mil laser look like two pulse lasers...)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Cosmetic Lasers

Post by JensAyton »

Smivs wrote:
You can find a list of the available colours here.
Lasers can have any colour whose HSV brightness is ≥ 50 %.
DaddyHoggy wrote:
(I was wondering with all this new whizzing scripting stuff in 1.75 if the beam position couldn't be rapidly moved between positions either side of the centre line thus giving the impression of two beams - although I suspect this would happen at a much slower than frame rate rate and thus would look silly and at best make even a mil laser look like two pulse lasers...)
It wouldn’t work. Laser entities don’t track the parent ship at all.
User avatar
Commander Wilmot
Deadly
Deadly
Posts: 206
Joined: Thu Mar 17, 2011 10:12 pm
Location: Somewhere in galaxy 1, flying my Diamondback

Re: Cosmetic Lasers

Post by Commander Wilmot »

Two questions.
  • One, is it possible to have a custom texture for the laser? I think this was done for the kamikaze drone in the armoury oxp.
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Cosmetic Lasers

Post by JensAyton »

No, and explicitly no.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Cosmetic Lasers

Post by Kaks »

Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Cosmetic Lasers

Post by DaddyHoggy »

Kaks wrote:
Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P
That would fall into the same category as "Black Flashers" that I asked before a few years ago before Ahruman carefully explained just how the flasher code worked...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
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: Cosmetic Lasers

Post by Commander McLane »

Kaks wrote:
Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P
Both blackColor and clearColor are supported colour names in Oolite. So you can very simply try them out. You'll be disappointed with the result, though.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Cosmetic Lasers

Post by Kaks »

Yep, nothing better than a bit of personal experimentation, quite a few times it's faster than this already pretty fast forum! :)

I suppose the next question would be 'what about dark grey?' - it might well work, if 'somewhat' brighter than what you were hoping for! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Cosmetic Lasers

Post by JensAyton »

Ahruman wrote:
Lasers can have any colour whose HSV brightness is ≥ 50 %.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Cosmetic Lasers

Post by Kaks »

& anything darker gets automatically bumped up to said 50% brightness.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply