Laser Mount Switching System (LMSS)

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

Moderators: another_commander, winston

dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: Laser Mount Switching System (LMSS)

Post by dybal »

phkb wrote: Mon Mar 09, 2020 5:36 am
dybal wrote: Fri Mar 06, 2020 5:28 pm
In a fight my primary forward laser (Military) was damaged, I switched to the secondary (PewPew). Sometime latter during the fight the primary forward laser turned to Military, and the secondary forward position had no laser.
As lasers aren't normally damagable in the core game, I'm thinking this must be an unintended consequence of RepairBots and whatever the OXPis that's allowing for damage on lasers .
I guess that would be BattleDamage (oolite.oxp.smivs.BattleDamage.oxz)
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4644
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Laser Mount Switching System (LMSS)

Post by phkb »

dybal wrote: Mon Mar 09, 2020 12:09 pm
I guess that would be BattleDamage (oolite.oxp.smivs.BattleDamage.oxz)
I don't think that's the one. There's no mention of lasers anywhere in the equipment plist or scripts. I'd suggest instead [EliteWiki] Laser Booster. Breakable lasers are part of that one.
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: Laser Mount Switching System (LMSS)

Post by dybal »

phkb wrote: Mon Mar 09, 2020 8:36 pm
phkb wrote: Mon Mar 09, 2020 5:36 am
dybal wrote: Fri Mar 06, 2020 5:28 pm
In a fight my primary forward laser (Military) was damaged, I switched to the secondary (PewPew). Sometime latter during the fight the primary forward laser turned to Military, and the secondary forward position had no laser.
As lasers aren't normally damagable in the core game, I'm thinking this must be an unintended consequence of RepairBots and whatever the OXPis that's allowing for damage on lasers .
dybal wrote: Mon Mar 09, 2020 12:09 pm
I guess that would be BattleDamage (oolite.oxp.smivs.BattleDamage.oxz)
I don't think that's the one. There's no mention of lasers anywhere in the equipment plist or scripts. I'd suggest instead [EliteWiki] Laser Booster. Breakable lasers are part of that one.
You are right, BattleDamage damages just the hull... but I don't have Laser Booster installed in my ship, it should not damage my lasers.

It happens often... about 20% of my fights... quite annoying ! :evil:

I unziped every OXZ in my MannagedAddons and Addons directory and searched for 'setEquipmentStatus(<variable>, "EQUIPMENT_DAMAGED")'... the only viable candidates were MissileandBombs (if hit by a missile), FuelTweaks (during fuel transfer), RandomHits (if docked at a bar) and InterstellarTweaks...
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: Laser Mount Switching System (LMSS)

Post by dybal »

Upgraded the OXP to version 2.2
Had a Military Laser in main position and an Uber laser from NewLasers in the secondary position at the forward mount.
Activated LMSS at the forward mount, now have the Uber laser at the primary position and nothing at the secondary.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4644
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Laser Mount Switching System (LMSS)

Post by phkb »

Dang it. Ok, I’ll debug and release a patch shortly
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4644
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Laser Mount Switching System (LMSS)

Post by phkb »

OK, v2.3 has been released which should fix the issue with lasers not switching successfully.
dybal
---- E L I T E ----
---- E L I T E ----
Posts: 499
Joined: Mon Feb 10, 2020 12:47 pm

Re: Laser Mount Switching System (LMSS)

Post by dybal »

Thanks!
Will give it a try as soon as I dock :lol:
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 466
Joined: Mon Sep 17, 2018 5:01 pm

Re: Laser Mount Switching System (LMSS)

Post by Milo »

Very minor feedback, but activating the LMSS primeable equipment when you have no alternate laser for the current slot (forward/side/aft) does nothing. It should probably show a console message that there is no secondary weapon set up there, or that you don't have LMSS installed there (as appropriate). In my case, I had set up an LMSS secondary earlier, then reverted to an earlier save which didn't have it, forgot to re-do it, and was later confused when I tried to switch during flight and the activate function did nothing.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4644
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Laser Mount Switching System (LMSS)

Post by phkb »

V2.4 has been released, which makes a "boop" sound if you attempt to switch lasers in a position where it's not possible to switch.
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 466
Joined: Mon Sep 17, 2018 5:01 pm

Re: Laser Mount Switching System (LMSS)

Post by Milo »

Nice, but what if sound is off?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4644
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Laser Mount Switching System (LMSS)

Post by phkb »

Picky, picky! :D
Version 2.5 adds a console message as well.
Post Reply