Space Engineers

Space Engineers

DTI's Mech Driver (MkII) -- Now works with Hinges
 This topic has been pinned, so it's probably important
drag0nsKin  [developer] 10 Mar, 2018 @ 12:24am
Bugs
Please use this thread for entering/tracking any bugs that you find with the script.
< >
Showing 1-6 of 6 comments
SourceStick 3 Mar, 2019 @ 4:26am 
I have a problem:
My mech's rotors and pistons are named like this:

Piston [leg] [left] [mech] [a] vel:10
Piston [leg] [right] [mech] [b] vel:10
Rotor [left] [ankle] [mech] [a] vel:-10
Rotor [left] [hip] [mech] [a] vel:-10
Rotor [right] [ankle] [mech] [b] vel:10
Rotor 2 [right] [hip] [mech] [b] vel:10

and then I have some modded landing pads (that I think work like they should)

PocketGear Large Pad [foot] [left] [a]
PocketGear Large Pad [foot] [right] [b]

When I try to walk left leg starts moving and stops and right leg just stops and doesn't do anything.
Also when I look at the programmable blocks info it says that everything is setup but, when I try stand command it gives me an error from something in the program itself.

Edit: Also the test command in the code editor doesn't notice any errors

Edit 2: The tutorial mech doesn't work either (actually it works but after naming the blocks it stop working)
Last edited by SourceStick; 3 Mar, 2019 @ 5:44am
SourceStick 3 Mar, 2019 @ 9:43am 
Oops. I found what was wrong and now my mech is walking!! :D

Tutorial mech still has a problem and the stand command.
drag0nsKin  [developer] 3 Mar, 2019 @ 5:57pm 
Would you mind posting the fix as well in case anyone comes across the same error?

I think I have updated the script since making the tutorial mech so I can take a peek at it sometime and make sure it is up-to-date as well :).

Also, don't forget to link your mech in a comment on the main page! I would love to see it and I am sure others would too!

Thanks for sharing!
Last edited by drag0nsKin; 3 Mar, 2019 @ 5:58pm
SourceStick 30 Aug, 2020 @ 4:04am 
oh, didn't remember at all that I commented here. Probably because steam didn't sent any massage about this.

Its too late, I scraped that mech. It was just a test to get familiar with this script. Now to the reason why I'm back.

The mech you made and linked to the script's main page doesn't seem to work. Walk command does work, but any other command doesn't. For example "stand" just stops the legs and doesn't return them to position. Luckily because you included a LCD with script info I got this error massage:
_________________________________________________________________________

[13:56:28.202]**********
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at Program.MoveStandComponents(String tag, IMyTerminalBlock block, Dictionary`2 parsedParameters, List`1& velocityBlocks, List`1& velocities, List`1& gearBlocks, List`1& gearSwitches, List`1& gyroBlocks, List`1& gyroValues, List`1& thrusterBlocks, List`1& thrusterValues)
at Program.HandleComponents()
at Program.OnStandTick()
at Program.OnStand()
at Program.Main(String args, UpdateType updateType)
_________________________________________________________________________

It was just spawned in the world. Tried walk command, it worked, it started walking. Tried stand command, legs stopped, but did not return to stand position and the two large thrusters kept pushing it forward. Also "watch" didn't work at all, or "run"

I haven't used this script in a long time cause I encountered these errors too many times while building mech. And when I got a mech working (or at least walking with "watch" or "walk" command) there was still some movement problems that my head couldn't handle.
Last edited by SourceStick; 30 Aug, 2020 @ 4:04am
drag0nsKin  [developer] 18 Sep, 2020 @ 12:35am 
👀

🤓🥰

😋

Translation: These are all fair points and items and I not only appreciate the feedback but I look forward to addressing these as soon as possible. I believe I may have accidentally rolled out updates to some other things when I released other fixes.
mr tau354 8 May, 2022 @ 11:37am 
clicked check code and got this

program(1051,50): warning: 'imytextpanel.writepublictext(string,bool)' is obsolete: 'lcd public text is deprecated'
< >
Showing 1-6 of 6 comments
Per page: 1530 50