Space Engineers

Space Engineers

CAT Custom Turret Rotor Slaving
24 条留言
Loues.S.Cat  [作者] 2021 年 7 月 26 日 下午 10:13 
This is very old. I will have a look at it again when I have the time, for now I think I will just unlist it.
Turret problems 2021 年 7 月 26 日 下午 7:56 
Im currently trying to user this to slave a MART turret to an exterior rotor turret, the script doesnt seem to run correctly, is there a new version?
Keatosis 2018 年 3 月 1 日 下午 7:39 
Thanks
Loues.S.Cat  [作者] 2018 年 2 月 27 日 下午 3:32 
Gods this is so old...
I'll fix it as soon as I can, but there are better turret scripts out there now.
Keatosis 2018 年 2 月 18 日 上午 11:51 
Doesn't work, what am I doing wrong?
Djelle 2016 年 9 月 13 日 下午 6:53 
Just what I needed. This script solves several problems with my manned turret. My turret is front heavy. So it was very uneven to stear in gravity. I made a simple well balanced main turret of 2 rotors + Remote + 2 x gyros. And a camera on the real (slave) turret. So I can stear the turret remotely. Also, it was imposible to rotate it (yaw) when pointing directly up. I solved this by ofsetting the pitch by 45. So the (simple) main turret can pitch -45 to 45 which is translated to 0 to 90 on the real turret. Works like a charm :steamhappy:

U have a bug in ur code. Probably a leftover line of code which I don't see a use for.
In line 44: "blocks[e].SetValueFloat( "Velocity", 0 );"
It sets ALL rotors to 0 :steamfacepalm:

Keep up the good work.
mrbojinkles 2015 年 8 月 28 日 上午 11:32 
You've done it again you awesome code-master you! I'd love to have an option to have the tagged rotor's angle shown in its name, because my rotor placement is sloppy, and I have to add adjustments to the script.
Loues.S.Cat  [作者] 2015 年 6 月 8 日 上午 7:14 
The fastest you can set a timer to work is to trigger itself rather than to start itself. that lets the script respond very rappidly.
You can do that with this script too. It is how I used it.
kennet0508 2015 年 6 月 7 日 下午 7:09 
Btw, have you tested CMDR Bad_Idea's Turret system?

- http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=378793632

Im curious what makes his rotors move so instant and on track, as it makes small turrets more viable

it seems he has set up the timer block to move faster than its supposed to, could this be implemented into your script? would that mess up with the ability to slow down the rotor movement you implemented? etc

with the setup you have where you can slow down the rotors is Key in my newest Prototype, where im making a set of a 4 huge engine setup on rotors, but the size makes it impossible to use without slowing down the rotors
MrClifford 2015 年 6 月 6 日 下午 1:57 
thats what i have done its even on reapet with a timer
Loues.S.Cat  [作者] 2015 年 6 月 6 日 上午 10:57 
Prefixes are at the start of the block name, (or not if you don't have one set) Keywords appear anywhere in the block name, though I find at the end is best.
kennet0508 2015 年 6 月 6 日 上午 9:39 
Its a little hard to get around when u first set it up. what i did was to copy thenames seen in the screenshot.

but bottom line if u run the script default. you need to name the rotor: [CAT] Rotor [RS1] etc. just look in the script for what you need to name the rotors. and remember, scripting is case sensitive
MrClifford 2015 年 6 月 6 日 上午 8:13 
yeah im confused with this... where do you put the prefix? on the names of rotors or ship name?
Loues.S.Cat  [作者] 2015 年 6 月 6 日 上午 8:11 
No... I should probably start doing those. it would save so much time.
MrClifford 2015 年 6 月 6 日 上午 7:47 
is there a video tutorial?
kennet0508 2015 年 5 月 22 日 下午 2:46 
nevermind, change value from 5 to higher for slower rotation speeds
kennet0508 2015 年 5 月 22 日 下午 2:44 
How does the slow down work in the script? on large ships, i would love it to run extremely slow, due to... game stability?

const float SLOW = 5; // how much to slow down the turret rotation speed by (needed value depends on small or large ship)

do i just change the number here? what do the values mean etc? :)
Loues.S.Cat  [作者] 2015 年 3 月 20 日 下午 12:05 
I'll create a topic in the discussion section to explin the details.
kennet0508 2015 年 3 月 20 日 上午 7:52 
Meeeh... How to set up? i cant get it started. :( Basic Startup tutorial?
What is a prefix? is it the ship name? antenna name? do i name the rotors slave or RS1.
- i suck at these things
That Cat 2015 年 3 月 6 日 上午 11:47 
NM the error isnt gone, it just took a while for it to show up.
That Cat 2015 年 3 月 6 日 上午 11:47 
Well I just set my ship name to that to test it, the error is gone, but it doesnt work at all.
Loues.S.Cat  [作者] 2015 年 3 月 6 日 上午 11:46 
If you don't want to use SHIP_PREFIX make sure it reads SHIP_PREFIX = null;
I have an awful tendancy of leaving SHIP_PREFIX = "[CAT]" since that is the prefix of my test ship.
Loues.S.Cat  [作者] 2015 年 3 月 6 日 上午 11:41 
Sounds like it isnt finding a maser rotor. Did you change SHIP_PREFIX or set it to null?
Loues.S.Cat  [作者] 2015 年 3 月 6 日 上午 11:31 
Can you describe the issue you are having and your setup?