Space Engineers

Space Engineers

Whip's Turret AI Slaving Script
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Whiplash141  [udvikler] 28. maj 2017 kl. 13:23
Bug Reports
Place your bug reports here.

Tell me:
  1. What code version you are using.
  2. What precisely isn't working. "It doesn't work" helps no one. Provide as much info as possible in order to resolve the issue promptly.
Sidst redigeret af Whiplash141; 13. jan. 2019 kl. 13:03
< >
Viser 1-15 af 359 kommentarer
stentor 30. maj 2017 kl. 15:20 
dosent work at all, the interior turet works fine tho
Whiplash141  [udvikler] 30. maj 2017 kl. 15:44 
Oprindeligt skrevet af ichabod the tardigrade:
dosent work at all, the interior turet works fine tho
Does the code register your rotor turrets?
stentor 30. maj 2017 kl. 20:19 
i got it to work, i was useing the script incorecly
V 15. juni 2017 kl. 10:56 
I am having an issue where one elevation rotor does not respond despite the other working and they are both tagged with "Elevation" I am not sure what the issue is here but it also happens in your MART script.

Edit: It was my poor spelling lol, i put Elavation in on accident for one of them. Fantastic script btw, everything is working perfectly now :)
Sidst redigeret af V; 15. juni 2017 kl. 10:57
Mork 23. juni 2017 kl. 16:13 
Version 40. For some reason spotlights or cameras as part of the turret group attached to the elevation part grid is not turning on when the turret is lined up. The first elevation rotor will also setup to turn the second elevation rotor as they both rotate the same part.

I haven't tested any of the other tools as part of the turret group. While I do have welders on the turret part there not in the turret group as I'm using a separate program to manage them.

The scripts detailed info is showing that it has a complete rotor turret. So it is picking up the spotlight or camera in the turret group. There are no actual gatlings or launchers, just the spotlight or camera(s).

I'm using the spotlight or camera being on as an input for a custom program to activate easy LIDAR homing script based missile, to make an automated homing SAM turret with built in reloading.
Sidst redigeret af Mork; 24. juni 2017 kl. 20:26
Kira 14. juli 2017 kl. 7:38 
For some reason my 11inch naval guns modded turrets do not work. They move back and forth over and over like they are looped in a gif. This also happens with vanilla turrets.
Whiplash141  [udvikler] 14. juli 2017 kl. 10:47 
Oprindeligt skrevet af Kira:
For some reason my 11inch naval guns modded turrets do not work. They move back and forth over and over like they are looped in a gif. This also happens with vanilla turrets.

That is intentional; it is a sweeping convergance point. You can set a fixed convergance point by changing:
useStaticConverganceRange(Line 96) to true and then setting staticConverganceRange(Line 99) to the range that you want the guns to converge :)
Sidst redigeret af Whiplash141; 14. juli 2017 kl. 10:49
Whiplash141  [udvikler] 14. juli 2017 kl. 10:50 
Oprindeligt skrevet af Mork:
Version 40. For some reason spotlights or cameras as part of the turret group attached to the elevation part grid is not turning on when the turret is lined up. The first elevation rotor will also setup to turn the second elevation rotor as they both rotate the same part.

I haven't tested any of the other tools as part of the turret group. While I do have welders on the turret part there not in the turret group as I'm using a separate program to manage them.

The scripts detailed info is showing that it has a complete rotor turret. So it is picking up the spotlight or camera in the turret group. There are no actual gatlings or launchers, just the spotlight or camera(s).

I'm using the spotlight or camera being on as an input for a custom program to activate easy LIDAR homing script based missile, to make an automated homing SAM turret with built in reloading.
Can you post a blueprint or world for me to troubleshoot with?
Kira 14. juli 2017 kl. 12:07 
Oprindeligt skrevet af Whiplash141:
Oprindeligt skrevet af Kira:
For some reason my 11inch naval guns modded turrets do not work. They move back and forth over and over like they are looped in a gif. This also happens with vanilla turrets.

That is intentional; it is a sweeping convergance point. You can set a fixed convergance point by changing:
useStaticConverganceRange(Line 96) to true and then setting staticConverganceRange(Line 99) to the range that you want the guns to converge :)

Ahhh I see. Thanks!
Smokey da Burrr 10. aug. 2017 kl. 4:10 
One little problem. The player-made turrets are firing for about 5 seconds after the designator turret has stopped firing, OR after exiting manual control of the designator turret, whether or not it was being fired.
Info:
Using latest version of the script, all vanilla, no other scripts running. All small grid parts. Two player-made gatling turrets with one elevation rotor each, guided by two seperate ingame gatling turrets.
Otherwise it's working well and it's an awesome script. Thanks in advance.
Whiplash141  [udvikler] 10. aug. 2017 kl. 15:57 
Oprindeligt skrevet af Smokey da Burrr:
One little problem. The player-made turrets are firing for about 5 seconds after the designator turret has stopped firing, OR after exiting manual control of the designator turret, whether or not it was being fired.
Info:
Using latest version of the script, all vanilla, no other scripts running. All small grid parts. Two player-made gatling turrets with one elevation rotor each, guided by two seperate ingame gatling turrets.
Otherwise it's working well and it's an awesome script. Thanks in advance.
Update your code to version 47 :)

This shoulf fix the issues you were having. Please tell me how it works.
Smokey da Burrr 11. aug. 2017 kl. 1:32 
Updated to the revision you posted today, and it changed some things. The turrets are still firing for no reason when I take MANUAL control of the designators. But now, when the turrets fire automatically from the desginator firing, the don't continue to fire afterward. Instead, all of the gatling guns on the player-made turrets are spinning infinitely. Forever. Tested it all on a new save, rebuilt the turret and everything. Large grid missile turrets appear to work as intended during manual control and autonomous fire, but my small ship gatling turrets are acting strange.
Whiplash141  [udvikler] 11. aug. 2017 kl. 13:01 
Oprindeligt skrevet af Smokey da Burrr:
Updated to the revision you posted today, and it changed some things. The turrets are still firing for no reason when I take MANUAL control of the designators. But now, when the turrets fire automatically from the desginator firing, the don't continue to fire afterward. Instead, all of the gatling guns on the player-made turrets are spinning infinitely. Forever. Tested it all on a new save, rebuilt the turret and everything. Large grid missile turrets appear to work as intended during manual control and autonomous fire, but my small ship gatling turrets are acting strange.
Oddly enough I can not replicate that behavior. Can you post a blueprit for me to troubleshoot with?
Whiplash141  [udvikler] 11. aug. 2017 kl. 13:04 
Oh, also, are you sure that the designator isnt actively targeting anything?
Smokey da Burrr 11. aug. 2017 kl. 16:30 
Okay! I got the manual misfires to stop by rebuilding the turrets again. And the barrels spinning forever after firing appears to be a game issue. Normal gatling guns don't do it but apparently gatling guns on rotors do. Time to file another report to keen, yay. Anyway thanks for the help, everything's working as intended again. Also you're awesome, never stop coding.
< >
Viser 1-15 af 359 kommentarer
Per side: 1530 50