Laser Booster OXP
Moderators: winston, another_commander
Laser Booster OXP
The R&D department of the Aquarian Shipbuilding Corp present their newest piece of equipment - the laser booster.
This upgrade introducing two new dynamics to combat. Firstly it offers a switchable laser booster, which doubles the laser damage inflicted when activated (for a small energy drain).
However it also introduces the risk of the lasers breaking under the stress - there is a base 1% chance of a laser breaking on use, with increased chance if the booster is brought into play and the lasers pushed beyond their specified heat tolerances.
If lasers do break they can be repaired either at the station equipment screen or by repair bots/systems.
It requires Oolite version 1.77 or above to work. Downloads are via the box or wiki links below.
This upgrade introducing two new dynamics to combat. Firstly it offers a switchable laser booster, which doubles the laser damage inflicted when activated (for a small energy drain).
However it also introduces the risk of the lasers breaking under the stress - there is a base 1% chance of a laser breaking on use, with increased chance if the booster is brought into play and the lasers pushed beyond their specified heat tolerances.
If lasers do break they can be repaired either at the station equipment screen or by repair bots/systems.
It requires Oolite version 1.77 or above to work. Downloads are via the box or wiki links below.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: Laser Booster OXP
A little update in this OXP to version 1.01. Adds a small block to prevent the boost inflicting extra damage on main stations, to help prevent the bug for awarding incorrect kills discovered by Plisken. Note that this fix will only correct the laser, not any other weapon used on your ship (missiles or particularly turrets).
Download via box or wiki links below as normal.
Download via box or wiki links below as normal.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Laser Booster OXP
I am confident that your fix will also cure the turret problem as both turret and laser go through the same handler in your script.Thargoid wrote:Note that this fix will only correct the laser, not any other weapon used on your ship (missiles or particularly turrets).
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Laser Booster OXP
After having tried out this OXP I realised that, without having bought the equipment, my less than stellar pulse laser on my tine little used Adder would constantly break.
It was really weird since first of all I never bought the Laser Booster (I had just started a new game to test the "start choices" OXP) and every 10 shots or so would result in the laser breaking. It was kind of frustrating since I started the game with 0 credits and needed it for destroying asteroids to get bounties ^_^
Second of all, after quickloading, the same Krait would keep appearing right outside the space station and attack me, and the laser would also keep breaking after having fired it.
I looked through the code and your random generator seems random, however, this happened every time I quickloaded (4 times in a row).
Is the random number generator tied to a certain global variable that seems random but will actually be the same based on the space clock, save game or someting else?
It was really weird since first of all I never bought the Laser Booster (I had just started a new game to test the "start choices" OXP) and every 10 shots or so would result in the laser breaking. It was kind of frustrating since I started the game with 0 credits and needed it for destroying asteroids to get bounties ^_^
Second of all, after quickloading, the same Krait would keep appearing right outside the space station and attack me, and the laser would also keep breaking after having fired it.
I looked through the code and your random generator seems random, however, this happened every time I quickloaded (4 times in a row).
Is the random number generator tied to a certain global variable that seems random but will actually be the same based on the space clock, save game or someting else?
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Laser Booster OXP
Do you have the Griff chopped Krait OXP installed?JeX wrote:... the same Krait would keep appearing right outside the space station and attack me...
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Laser Booster OXP
And for the other point, yes the breakability is introduced no matter whether you have the booster active or not, it's just (by code at least) a low chance of breaking if it's not active. That was deliberate, as for me the ship's laser not being breakable has never seemed that realistic. Before we couldn't do anything about it via script, but now we can.
Your experiences do sound somewhat odd though, although as you say the randomness in the script is pure Javascript and not influenced by anything other than the scaling factor to make it a low chance.
Your experiences do sound somewhat odd though, although as you say the randomness in the script is pure Javascript and not influenced by anything other than the scaling factor to make it a low chance.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: Laser Booster OXP
Yes, I had the Griff Krait installed at that time. Found it so weird that it kept attacking me so I removed it later.
I will try the laser booster again and see if I notice any weirdness with it.
I will try the laser booster again and see if I notice any weirdness with it.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Laser Booster OXP
Ah, I thought so - a cool ship to pick apart slowly, is that. It's easily fixed:JeX wrote:Yes, I had the Griff Krait installed at that time. Found it so weird that it kept attacking me so I removed it later.
Wiki wrote:Note that the OXP contains test code which spawns a few aggressive Griff Kraits right outside your station whenever you leave.
Remove script.js from the Config folder in the OXP to stop this.
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Laser Booster OXP
I never understood why some OXPs are leaving test-scripts in their release versions.El Viejo wrote:Wiki wrote:Note that the OXP contains test code which spawns a few aggressive Griff Kraits right outside your station whenever you leave.
Remove script.js from the Config folder in the OXP to stop this.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Laser Booster OXP
Heh... in Griff's case, I reckon it's all part of a fiendish plot to fool us into believing he's a scatter-brained artist!Svengali wrote:I never understood why some OXPs are leaving test-scripts in their release versions.
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Laser Booster OXP
It's probably just an oversight. I know from personal experience just how much work is involved getting from a 'final development' version of an OXP to a release version, and human nature (and fallability) being what it is, these things will happen from time to time.Svengali wrote:I never understood why some OXPs are leaving test-scripts in their release versions.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Re: Laser Booster OXP
Yes, could beEl Viejo wrote:Heh... in Griff's case, I reckon it's all part of a fiendish plot to fool us into believing he's a scatter-brained artist!
No, I don't think it's an oversight. It was common practice in some OXPs to give players easy access to the new stuff. It's only a bit annoying that you have to remove these scripts for your standard game sessions. Otherwise you'll end up with 100 entities waiting for you on launching and exiting witchspaceSmivs wrote:It's probably just an oversight. I know from personal experience just how much work is involved getting from a 'final development' version of an OXP to a release version, and human nature (and fallability) being what it is, these things will happen from time to time.
Re: Laser Booster OXP
Kinda like discussing one OXP in the thread of another one...
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: Laser Booster OXP
WHAT! WHERE!??Thargoid wrote:Kinda like discussing one OXP in the thread of another one...
-
- Harmless
- Posts: 1
- Joined: Sun Jan 05, 2014 4:10 pm
Re: Laser Booster OXP
Oolite 1.79
Laser Booster 1.01 does not work:
./Scripts/laserBooster_worldScript.js
contains string
if(player.ship.equipmentStatus("EQ_LASERBOOSTER") !== "EQUIPMENT_OK" || missionVariables.laserBooster !== "ACTIVE" || this.laserString === "NONE" || !other || !other.isMainStation || !other.isValid) { return; }
is valid?
Laser Booster 1.01 does not work:
./Scripts/laserBooster_worldScript.js
contains string
if(player.ship.equipmentStatus("EQ_LASERBOOSTER") !== "EQUIPMENT_OK" || missionVariables.laserBooster !== "ACTIVE" || this.laserString === "NONE" || !other || !other.isMainStation || !other.isValid) { return; }
is valid?