Space Engineers

Space Engineers

Control Module Mod - Example Tank
31 Comments
FinXzuOP 22 Dec, 2019 @ 11:24am 
I am very sorry it was only up to my own incompetence. Thanks for the fast response and sorry for wasting your time... I just loaded the wrong map where I had not the mod enabled... works just fine!!
Digi  [author] 22 Dec, 2019 @ 11:17am 
Is the mod installed? Does the PB have errors? Are PBs even enabled?
FinXzuOP 22 Dec, 2019 @ 11:10am 
no errors in code but its simply not moving... neither the tank nor the turret. I dont know what I do wrong
NicoBlast 28 Nov, 2019 @ 1:42pm 
Thx, i wanted the script for my land crawler to turn the 4 steering rotors, did it with pistons and rotors instead.
Digi  [author] 28 Nov, 2019 @ 6:30am 
Oh also, you don't need a programmable block to use the mod, it supports timer blocks too for doing the actions from the timer's toolbar on certain input combination.
Digi  [author] 28 Nov, 2019 @ 5:59am 
Works fine here.
Look at the PBs to see if they have any errors... if it says the mod not found then recompile them (edit then just save).
If it still can't find the mod, did you add the mod to the world?

You've already seen the tutorial, but it sounds like you're asking a tutorial for the game's PB, for that you should start with https://github.com/malware-dev/MDK-SE/wiki/Quick-Introduction-to-Space-Engineers-Ingame-Scripts and any questions you may have you should ask them in the Keen discord on the #programing-ingame channel.
NicoBlast 28 Nov, 2019 @ 4:24am 
i have tried the tank but it dosen't move, i would like to learn how to use script for more advance moving systems in my builds but i can't seem to wrap my head around how this works, could you make a tutorial on the script?
OverlordIcy 11 Mar, 2019 @ 5:33pm 
@Digi Okay!! Update: I tried editing the Script with the block.Enable = true; and such and it threw another separate exception. Not going to bother posting it as you updated this script and I put it into the PB on my Rover and it's working properly again!!! ^.^!!! Thank you so much Digi, I greatly appreciate it, very very much so I do!! <3 I enjoy making my own Suspension and Wheels with Rotors and Hinges and this lovely script of yours makes it infinitely easier to control contraptions as such!! I do have one last quick question; is there a good resource to learn how to make scripts for SE or to learn to make custom scrips using your Control Module? Like I want to make a giant rover with Multiple Rotors and Hinges so each wheel has its own custom suspension and I'd love to learn how to use the Control Module to be able to control not only the wheel rotors turning, but the hinges to turn rather than wheel rotor speed. Again though, thank you SO VERY much again!! :]
OverlordIcy 11 Mar, 2019 @ 12:55pm 
Well it works, yes, kinda. It still turns the rotors, but now it doesn't stop them when you let go of A or D. Before I'd tap A slightly and turn about 45ish degrees, now if I tap A I spin around in a circle about 30+ times. Have to hit spacebar to stop myself altogether making turning while driving almost entirely impossible. I'll try that out though as soon as I land back on Mars and see if it helps. Thanks for the quick response, I appreciate it!
Digi  [author] 11 Mar, 2019 @ 6:55am 
This example still works fine, that warning doesn't really matter but you can just replace it with block.Enable = true; and such.

I've updated this bp to tweak the turret rotor to not clang on itself, and updated the script while at it too.
OverlordIcy 9 Mar, 2019 @ 12:00pm 
Hey Digi, Love this script and all, I think since the last update, SE Broke this Tank Setup I'd been using on my Rover, I noticed you updated the primary script the other day, but how do I fix it in the PB for Tank Controls? I don't know myself how to code this(Yet, though I'm highly interested in learning myself when I have the time.) It keeps throwing the Exception: "Warning: '!MyFuncionalBlock.RequestEnable{bool}' is obsolete.' Use the setter of Enable' Tried replacing RequestEnable with Enabled and it throws the exception that it can't be used as a Method. D; Could you help me? or potentially update the Example Script pretty please? <3 Thank you, love your work.
Zalfeon 31 May, 2017 @ 12:40am 
hi i tryed this script you have in this PB but all i get when i try to run the PB it says no refrece how do i fix
nathan2000 24 Jan, 2017 @ 12:41pm 
You don't even need a script. Al you need to do is toggle Reverse Propulsion on all your left wheels when you press the Strafe Left key and do the same with your right wheels when you press Strafe Right. Same way real tanks work. Unfortunately, the physics in SE aren't prepared for that and the tank doesn't get any torque when opposing wheels turn in different directions. Maybe they'll fix it in the future.
Kaczpur 14 Nov, 2016 @ 2:38am 
:/
Digi  [author] 13 Nov, 2016 @ 6:53pm 
No because suspension wheels can't be controlled through PB.
Kaczpur 13 Nov, 2016 @ 1:42pm 
script for*
Kaczpur 13 Nov, 2016 @ 1:42pm 
Its possible to make a scriptfor stering like this but for normal wheels? :D
Digi  [author] 28 Oct, 2016 @ 7:38pm 
This now works for both branches, please let me know if this breaks in any branch so I can fix it if possible :P
Digi  [author] 8 Jul, 2016 @ 6:05am 
Pff, seems like a method didn't exist in stable, I uploaded a separate version of this blueprint for stable, see description.
FoxHawk 8 Jul, 2016 @ 3:36am 
yes, i do
Digi  [author] 7 Jul, 2016 @ 6:08pm 
Do you have the mod for the stable branch ?
FoxHawk 7 Jul, 2016 @ 4:48am 
i can't drive it on the stabe branch
Digi  [author] 30 Jun, 2016 @ 3:36pm 
Updated to work with 01.142 script changes, just a small thing regarding block groups.

If anyone that was using this blueprint's code needs help fixing theirs just ask :P
Digi  [author] 29 May, 2016 @ 10:01am 
Updated, turret's PB script now ignores if the rotors aren't found, which can happen if the ship gets split (by shooting it, grinding it, etc) while you're rotating the turret.

It can also detach the adv rotor in that scenario, weird game glitches :/
gerokzule 16 Apr, 2016 @ 5:55pm 
something was bugged i just copied my creation and it started workign with the script i have no idea why
gerokzule 16 Apr, 2016 @ 5:43pm 
I'm not sure then i copied all the settings from my vehicle that worked to this larger one and it wont trigger the rotors on this one.
Digi  [author] 16 Apr, 2016 @ 5:37pm 
Grid size shouldn't matter, you're most likely missing something, have a look in the PB script of what blocks it searches for.
gerokzule 16 Apr, 2016 @ 5:27pm 
does this only work on a small grid?
imade a small vehicle and copied your settings it worked but on a large grid it didnot
Soop 4 Apr, 2016 @ 12:50pm 
i like the design
Sleepyhead 4 Apr, 2016 @ 11:44am 
Do you mean control suspension wheels attached to the grid through a rotor?
Sebforce116 3 Apr, 2016 @ 7:15pm 
hmm, could you try to make wheels (suspension) work on rotors?