Space Engineers

Space Engineers

Control Module Mod - Example Tank
31 条留言
FinXzuOP 2019 年 12 月 22 日 上午 11:24 
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  [作者] 2019 年 12 月 22 日 上午 11:17 
Is the mod installed? Does the PB have errors? Are PBs even enabled?
FinXzuOP 2019 年 12 月 22 日 上午 11:10 
no errors in code but its simply not moving... neither the tank nor the turret. I dont know what I do wrong
NicoBlast 2019 年 11 月 28 日 下午 1:42 
Thx, i wanted the script for my land crawler to turn the 4 steering rotors, did it with pistons and rotors instead.
Digi  [作者] 2019 年 11 月 28 日 上午 6:30 
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  [作者] 2019 年 11 月 28 日 上午 5:59 
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 2019 年 11 月 28 日 上午 4:24 
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 2019 年 3 月 11 日 下午 5:33 
@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 2019 年 3 月 11 日 下午 12:55 
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  [作者] 2019 年 3 月 11 日 上午 6:55 
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 2019 年 3 月 9 日 下午 12:00 
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 2017 年 5 月 31 日 上午 12:40 
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 2017 年 1 月 24 日 下午 12:41 
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 2016 年 11 月 14 日 上午 2:38 
:/
Digi  [作者] 2016 年 11 月 13 日 下午 6:53 
No because suspension wheels can't be controlled through PB.
Kaczpur 2016 年 11 月 13 日 下午 1:42 
script for*
Kaczpur 2016 年 11 月 13 日 下午 1:42 
Its possible to make a scriptfor stering like this but for normal wheels? :D
Digi  [作者] 2016 年 10 月 28 日 下午 7:38 
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  [作者] 2016 年 7 月 8 日 上午 6:05 
Pff, seems like a method didn't exist in stable, I uploaded a separate version of this blueprint for stable, see description.
FoxHawk 2016 年 7 月 8 日 上午 3:36 
yes, i do
Digi  [作者] 2016 年 7 月 7 日 下午 6:08 
Do you have the mod for the stable branch ?
FoxHawk 2016 年 7 月 7 日 上午 4:48 
i can't drive it on the stabe branch
Digi  [作者] 2016 年 6 月 30 日 下午 3:36 
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  [作者] 2016 年 5 月 29 日 上午 10:01 
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 2016 年 4 月 16 日 下午 5:55 
something was bugged i just copied my creation and it started workign with the script i have no idea why
gerokzule 2016 年 4 月 16 日 下午 5:43 
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  [作者] 2016 年 4 月 16 日 下午 5:37 
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 2016 年 4 月 16 日 下午 5:27 
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 2016 年 4 月 4 日 下午 12:50 
i like the design
Sleepyhead 2016 年 4 月 4 日 上午 11:44 
Do you mean control suspension wheels attached to the grid through a rotor?
Sebforce116 2016 年 4 月 3 日 下午 7:15 
hmm, could you try to make wheels (suspension) work on rotors?