Space Engineers

Space Engineers

Whip's Weapon Salvo Script
482 kommentarer
Vladimir Bergholtz 21. aug. kl. 10:23 
Thats an idea I hadnt thought of with the Event Controllers. Thanks for the help!
Whiplash141  [ophavsmand] 20. aug. kl. 18:41 
not via mouse click to my knowledge. At least, not without some event controller/programmable block logic. This script doesnt have any such logic, so it sadly can not solve that issue
Vladimir Bergholtz 20. aug. kl. 16:22 
But as far as I know you cannot fire two different weapons simultaneously right?
Whiplash141  [ophavsmand] 20. aug. kl. 15:01 
If you do not want to fire things in sequence, this script is unnecessary. You can just fire them with your regular mouse click.
Vladimir Bergholtz 20. aug. kl. 14:52 
Yes, I just want to use my mouse to do that for both weapons at once because shooting by pressing hotkeys is horrible.
Any idea where that bugging out with the Assault Cannon could come from? Havent seen anyone mention anything about Industrial Overhaul in the past comments
Whiplash141  [ophavsmand] 20. aug. kl. 9:33 
i dont understand, are you trying to get them to fire all at once and not in sequence?
Vladimir Bergholtz 20. aug. kl. 8:44 
I am not getting it to work as I want.
Im using Industrial Overhaul, which includes an Autocannon and Gatling that are modified. As far as I understand, it uses some Script for bullet drop, but nothing besides that. I mainly just want to use the Script to fire both Weapons simultaneously.
I set up the block and the groups, fire mode default in arguments.
When I group the 6 Gats and the 1 Cannon in a Group the firing cycle will get stuck on the Autocannon, until I manually fire it, then repeats till the next Autocannon shot.

Also, when I just group the Gatlings in default fire mode, should they not just all fire simultaneously? They mimic the fire rate of 1 Gatling, taking turns, but at least it works. Is there a method to let them fire nonstop?
Whiplash141  [ophavsmand] 17. aug. kl. 22:49 
The only real limit is based upon the tick rate of the game and the maximum achievable ROF of the weapon in question. Idk what the 45mm auto cannon is, but if it behaves like the vanilla auto cannon, they really bad for salvo fire because that weapon type has an arbitrary and random spool up interval that the script can't measure. This makes it so those type of guns dont fire consistently for a few seconds of firing which isnt great.
Spocku 17. aug. kl. 18:44 
is there a limit? using a 45mm auto cannon and this works with 4 of them, go up to 6 and it wont fire at all
Whiplash141  [ophavsmand] 10. juli kl. 21:22 
You'd need 2 different salvo groups to support that
Sarge38 10. juli kl. 21:18 
Hey man!

I am trying to make this work with a salvo of small railguns, however rather than fire EVERY railgun in sequence, I want the script to group 2 railguns and see them as one, so it fires 2 at once, at each point of the salvo (12 guns total, so 6 "double" shots) I am wondering if that is possible with this script?
hugossir12 3. juli kl. 5:56 
found the error, is there a way to start the next slavo befor the last one finish?
hugossir12 3. juli kl. 5:51 
*group*
hugossir12 3. juli kl. 5:51 
what im doing wrong?
1: place a programe block
2: put the script in
3: go at the end of the config page for the programe block where the argument bar is
4: enter "Salvo Grop h" --rpm 1 (to try how it work)
5: go inside the cockpit and fire
6: nothing, the autocanon still shoot around 3 rps each and at the same time (there is 3 autocanon)
hugossir12 3. juli kl. 5:44 
ok so its only me not knowing how to use it, my bad
Whiplash141  [ophavsmand] 3. juli kl. 5:43 
The script works.
hugossir12 3. juli kl. 5:41 
its just me not knowing how to use script or that script dont work?
Kara Vaki 20. apr. kl. 21:16 
Holy shit, I just set the custom data for the railguns to be 8 RPS and it went YEET
Kara Vaki 20. apr. kl. 19:10 
neat!
Whiplash141  [ophavsmand] 20. apr. kl. 17:58 
You can certainly change the rate of fire to something faster via arguments or custom data. I personally do a 6 shot burst at 360 RPM for my cruiser
Kara Vaki 20. apr. kl. 17:24 
I do wonder tho if I could make it fire in a rapid pulse of 8 shots per second.
Kara Vaki 20. apr. kl. 17:21 
That I have very much noticed since one of my capital ships has a total of 24 railguns, with 8 being in the bow and the rest as twinrail turrets. all of them being large grid btw.
Whiplash141  [ophavsmand] 20. apr. kl. 11:39 
Lol that tracks. The default ROF that the script computes is what is needed for a "continuous" firing. It just so happens that large grid railguns take around 60 seconds between shots (20 for small grid railguns), so unless you have a bunch, there will be several seconds between shots.
Kara Vaki 20. apr. kl. 11:36 
Nevermind I figured it out, the rate of fire is just SLOW AS MOLASSES XD
Kara Vaki 20. apr. kl. 11:04 
I'm using the latest version
Whiplash141  [ophavsmand] 20. apr. kl. 0:41 
What version are you running? The most recent version should work fine with vanilla railguns with default settings,
Kara Vaki 19. apr. kl. 21:35 
Safe to say it seems like I need to set up a few things for it to get a proper salvo going instead of it sputtering.
Kara Vaki 19. apr. kl. 21:25 
As in when I pull the trigger by holding mouse 1, I have a ship that has a total of 8 railguns on the bow and when I hold down mouse 1 o fire them in sequence they kinda just, turn off way too fast to fire the full salvo.
Whiplash141  [ophavsmand] 19. apr. kl. 21:04 
"from the toolbar" meaning toggle fire?
Kara Vaki 19. apr. kl. 18:19 
If I may ask, how does one get Railguns to fire in a salvo from the toolbar? cause when I tried it with it's base settings it did not seem to work.
McCloud Jr 13. apr. kl. 18:41 
Just throwing this out there but this works great with Vanilla+ Framework and the Star Wars Weapon Pack (Vanilla+)

I've had zero issues
butcherbrood2 13. apr. kl. 16:01 
@Whiplash141
Dang... guess i have to do it all manually then
Whiplash141  [ophavsmand] 13. apr. kl. 15:56 
That is correct. Weapon core is not compatible with the regular script API sadly
butcherbrood2 13. apr. kl. 15:20 
@Whiplash141
I believe so, is weaponcore not compatible?
Whiplash141  [ophavsmand] 13. apr. kl. 11:16 
Are those weapons modded weapon core guns?
butcherbrood2 11. apr. kl. 13:45 
@Whiplash141
it says 'Salvo group 1'
-ERROR: no weapons in group
it seems that the missiles i am trying to use aren't registering as weapon blocks.
WardenWolf 10. apr. kl. 18:35 
Ah, makes sense.
Whiplash141  [ophavsmand] 10. apr. kl. 0:19 
"it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise"

Salvo definitely works with CTCs that don't have extra rotors.

The issues come when you have a salvo group on a CTC that has a extra rotor setup controlled by TCES. Because of the limitations of the script API, I can't determine when the CTC is shooting, only when the individual weapons are being fired. I only give the CTC direct control over the weapons on the main rotors because, otherwise, the CTC could select a weapon on a different rotor as an aiming reference. What this means though is that the CTC only sends fire commands to a subset of your weapons. TCES tries to mirror the firing state of the weapons controlled by the CTC to the weapons on your extra rotors, but this means that the salvo script will not *see* that you have stopped firing until the script cycles to a weapon controlled by the CTC.
WardenWolf 9. apr. kl. 18:50 
@Whiplash141, it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise. I built one recently with 16 small railguns just to test, and it worked flawlessly during a meteor storm, scoring 3 hits in one firing sequence. Absolutely flawless, this and the other times it's fired.
WardenWolf 9. apr. kl. 12:43 
@butcherbrood2, capitalization matters for a lot of things like this. Make sure it's exactly the same everywhere.
Whiplash141  [ophavsmand] 8. apr. kl. 9:02 
that doesnt sound like the script is even running. What does the the script display in terminal? Any errors?
butcherbrood2 8. apr. kl. 5:31 
@Whiplash141 it fires all weapons at the same time; I have done the same thing with other turrets and it fires in bursts of 1, but it fires all weapons at the same time when I only want to fire one weapon when i press left click.
Whiplash141  [ophavsmand] 7. apr. kl. 21:51 
@butcherbrood2:

How many shots does it fire? One from each weapon in your salvo group in sequence? All at once? How many weapons are in the group and does the script see the right number of them?
butcherbrood2 7. apr. kl. 14:21 
how can i fire a single missile (mod weapon not subgrid) with this? the argument is ["salvo group 3" --burst 1] but it fires all missiles. can someone help?
WardenWolf 10. feb. kl. 22:54 
Oh, one thing you might want to add to your description: this works with custom turrets, too. I just tested a railgun turret with SALVO. It worked flawlessly. It fired individual shots instead of the whole thing all at once.
Whiplash141  [ophavsmand] 8. feb. kl. 12:19 
You can absolutely fire both groups simultaneously with the mouse. I do it all the time. You do not need to trigger them with a timer.

Also, even if you did want to manually trigger them, you still don't need a timer. You can create a (non salvo) group that contains both of your salvo groups and fire them using that container group.

My Weapons Group
-- Salvo Group 1
-- Salvo Group 2

My Weapons Group -> shoot once, etc.
WardenWolf 7. feb. kl. 7:10 
Because then you have to trigger them separately and they won't have the same timing. I mean, you could do two groups and trigger them with Shoot on a timer block, but not quite the same as holding down the mouse button and shooting.
Whiplash141  [ophavsmand] 7. feb. kl. 0:45 
What is wrong with two salvo groups? Provided they have the same number if weapons, they should remain in sync
WardenWolf 6. feb. kl. 15:35 
Darn. Was hoping you could do something like 1-1 and 1-2 or 1:0 and 1:1 to group weapons within a salvo.
Whiplash141  [ophavsmand] 6. feb. kl. 1:09 
Just have two separate salvo groups in that instance