Space Engineers

Space Engineers

[v1.5.4] MECS: Motor Extensible Control Sequencer
47 条留言
ribera1945e 2024 年 6 月 11 日 上午 2:44 
I trained it with the restrictions applied, then edited the sequence to make it work perfectly, but after the signal update it stopped working properly.
Trekki  [作者] 2024 年 6 月 11 日 上午 2:10 
I can only guess, but did you train it with the rotor without any limits set? IIRC, the angles when it has no limits versus when it does have limits are different to the code for some reason, so maybe that would be the reason?
ribera1945e 2024 年 6 月 11 日 上午 1:27 
The problem is step 1, where "fbend" starts after "fbstart" ends. WingBinder R2 and WingBinder L2 go out of limit when moving from 210 degrees to 120 degrees.

0~servo:Hinge WingCannon Yaw R:75:-10:1E+07:False:True`servo:Rotor WingBinder R3:-160:-15:1E+07:False:True`servo:Rotor WingBinder R2:210:15:1E+07:False:True`servo:Rotor WingBinder L2:-210:-15:1E+07:False:True`servo:Hinge WingCannon Yaw L:75:-10:1E+07:False:True`servo:Rotor WingBinder L3:160:15:1E+07:False:True
0~servo:Hinge WingCannon Yaw R:75:-10:1E+07:False:True`servo:Rotor WingBinder R3:-80:15:1E+07:False:True`servo:Rotor WingBinder R2:120:-15:1E+07:False:True`servo:Rotor WingBinder L2:-120:15:1E+07:False:True`servo:Hinge WingCannon Yaw L:75:-10:1E+07:False:True`servo:Rotor WingBinder L3:80:-15:1E+07:False:True
ribera1945e 2024 年 6 月 11 日 上午 1:20 
I am making a wing that can stop in multiple positions.
When moving from the stop angle to the target angle it goes out of limit and stops moving.
Trekki  [作者] 2022 年 10 月 25 日 下午 8:52 
Alright, it seems that the thumbnail being almost 2 megabytes was the cause.
Trekki  [作者] 2022 年 10 月 25 日 下午 8:45 
Okay, I have fixed this problem where it will not know what to do with limbs that are already in a deadzone when it executes a step, however, I can't seem to upload the fix.
Kalinite 2022 年 9 月 9 日 下午 9:01 
i have recompiled the scripts MANY times. they don't budge. any attempt to fix them will not work. stopping, starting, setting it to a walk position.. the specific one im working with is the custom jaeger chassis, of course. probably one of the most popular examples of MECs, although they could've just used AW2. nothing works. its stuck in the position perm. i cant fix it.
Kalinite 2022 年 9 月 9 日 下午 9:00 
the thing is i forgot to add: BLUEPRINTING.

you blueprint this state while you're working on the mech you're done for and you could've gotten very far which is even more pain.
Trekki  [作者] 2022 年 9 月 9 日 下午 8:30 
I am not sure it saves when you copy it. Probably something I should test when I get the chance. If the script isn't restarting and there is no other reason why it stopped, recompiling the script after giving it the command to walk might help? But also, if someone else copies and pastes the thing, they might need to recompile the script anyway because of the ownership change.

I am kind of curious though, by break, do you mean the script just doesn't restart automatically after being copied? That is what I am guessing but I can't be 100% sure.
Kalinite 2022 年 9 月 8 日 下午 9:29 
(i have not read anything, tell me if theres a method to fix it)

can you add a fix feature to the script that basically restarts it from the beginning, because this script fries STUPID easy, copy it when its walking. it breaks. thats whoever did that's fault. but it does it when it stands AFTER a walk aswell.
NoxSova 2022 年 8 月 7 日 上午 10:20 
I cant get the keybindings to activate properly... I have a remote control has the cockpit and the script tells me that there are registered key binds but i only sometimes get the wrong animation to activate, normally it just ignores the fact that a button is being pressed.
sethstaples69 2022 年 5 月 13 日 上午 8:49 
hey i love this script but I'm making a mech and its legs seemed to vaporize when i tried to change sequences, also when it meets any resistance such as a landing rear it seems to just stop and i cant seem to do anything about it.
BCMortis 2022 年 4 月 2 日 下午 5:33 
I have a question. Is it possible to make the sequence wait at a certain point till the PB is activated a second time to run the rest of the sequence? For example, I'm trying to make a set of hangar doors open then lower down a piston lift with the press of a button, then have the lift raise back up and then close the hangar doors when the button is pressed again.
DragoF1sh 2022 年 1 月 24 日 下午 9:52 
cool
Trekki  [作者] 2022 年 1 月 24 日 下午 8:40 
You will be limited to what MoveIndicator will allow, which is 6 different keys, and then there is also the mouse controls which I don't think I have added to MECS. MECS isn't set up to be able to do more than one sequence at a time, however, if you change the names of the groups in another MECS pb, and use those for what you want that MECS to control, then that should work.
DragoF1sh 2022 年 1 月 24 日 下午 7:47 
I am working on an ambitous project, however I am unsure if this script will be able to fulfill what I need. I have 2 questions in regards to this script:

1. Am i able to add additional keybinds for arm controls?
2. Does the script have an option that allows a seperate sequence to work at the same time as another sequence with both sequences completely ignoring each other (moving arms and legs at the same time. without having to stop one or the other)?
Cerenkovv 2021 年 12 月 3 日 上午 12:09 
Are you able to add more rotor groups? I can't seem to figure out how i would do that
Lightmanticore 2021 年 8 月 6 日 下午 8:24 
Ok, Awesome! I assume I just slap em into a servo slot? Also, this script is a feat so thank you so so much for the absolutely fantastic work!
Trekki  [作者] 2021 年 8 月 6 日 下午 8:05 
As far as the code is concerned, a hinge is nothing more than a rotor with different mounting points, and a hard limit on their angles. So to answer your question, yes, this script will work with hinges. In fact, it worked with hinges before they were even officially part of the game.
Lightmanticore 2021 年 8 月 6 日 下午 3:14 
Question, does this work with Hinges or no?
510001 2021 年 3 月 26 日 上午 5:17 
Thanks for the Answer. i prob wont use it on the server bc he restarts every 6h. but i will be happy to try it on the kv2 400 walker in single player thanks. i hope the price gives you something nice :)
Trekki  [作者] 2021 年 3 月 24 日 下午 5:06 
I have not really tested this on a server but it seemed to work well enough for multiplayer. I think there are a lot of things that could be improved with this script though, especially the saving/loading part of the script causing a lot of allocation because it was before I learned about substrings. I think the biggest hit will be when it is loaded, recompiled, and maybe when the server saves.
510001 2021 年 3 月 24 日 下午 12:01 
how hard hitting is that script for a Server? im trying to build a at st walker on a server and i dont want to be hunted by the admins again
Helratz 2020 年 9 月 24 日 下午 2:19 
Okay thanks. My thinking was if I have more points between movement it might make for a smoother action.
Trekki  [作者] 2020 年 9 月 24 日 上午 11:27 
You can have any set of parts move to any number of positions so long as they physically can reach that angle.

However, technically, if I recall correctly, there is a hidden cap for how long the CustomData string can be, but it seems as though no one has hit it yet.
Helratz 2020 年 9 月 24 日 上午 9:25 
Is there a limit to the amount of positions you can record for a leg? Thanks
creature 2020 年 9 月 11 日 下午 1:58 
the reason im asking about rotor offset is bc you can make mini walker bots using rotor offset and rotor angle effectively making 2 joints out of one subgrid
CTH2004 2020 年 8 月 4 日 上午 7:47 
Great!
Trekki  [作者] 2020 年 7 月 31 日 上午 11:52 
It actually does! In fact, the way the code works it has always worked with hinges. I think the reason is because they are also IMyMotorStator, same as the rotor and advanced rotors. The only difference is that the angles are limited to +-90 degrees, which isn't a problem because you can't train the script to move outside of that with a hinge anyway. Just be aware of the limits if you choose to modify the angles in the CustomData.
CTH2004 2020 年 7 月 29 日 上午 9:54 
does it work with hinges?
Sajtgolyó51 2020 年 7 月 16 日 上午 1:52 
Absolute chad script
Trekki  [作者] 2020 年 6 月 24 日 下午 6:41 
Okay, I have yet to test MECS with the new hinges. However I know it works with the hinge mod. I am not certain I will have it capable of controlling rotor offset, but I was thinking of making it control force on rotors at least, so maybe I will add that in when I update it.

Also to the earlier post, I think you can set up groups however you want so long as the rotors are in the right group as well. It shouldn't try to execute any movement commands while recording either. What steps are you taking to have this happen?
creature 2020 年 6 月 24 日 下午 1:27 
when will MECS support the new hinges? also will it ever be able to control rotor offset?
BLUNT 2020 年 1 月 25 日 下午 12:55 
Jeebus, you have to manually adjust every rotor while recording?! Why can't I run a group to capture the servos rotations?? And, when I did run it, it locked all rotors in current position, therefore losing all previous settings. :steamsalty:
Trekki  [作者] 2019 年 8 月 23 日 下午 3:42 
Okay, hotfix is up, and hopefully it works fine. Try automating something with it and tell me if anything goes wrong or doesn't behave in an intended way.
Trekki  [作者] 2019 年 8 月 23 日 下午 1:40 
Uhh, hang tight, I found another problem with it that prevents it from properly saving sequence information. I will have a fix for it soon. Existing sequences should still work properly though.
TheTownWitchDoctor 2019 年 8 月 23 日 下午 12:20 
I didn't realise you'd added keybindings to this. I'll have to do a re-release on my fighter as Vanilla. Good stuff!
Trekki  [作者] 2019 年 8 月 23 日 上午 11:16 
Okay, the patch is up, let me know if you have any problems.
Trekki  [作者] 2019 年 8 月 23 日 上午 9:45 
Okay, just want to point out, I have a major bug I did not anticipate with my script at the moment that causes it to fail to store information. I will be working on a fix that will hopefully go live soon.
TheTownWitchDoctor 2019 年 3 月 9 日 下午 6:36 
This is great, using it with digi's control module on a fighter so the wings and engines pivot when it rolls and maneuvers. No practical reason but it'll look cool when I'm finished. All other scripts left me scratching my head.
Trekki  [作者] 2019 年 1 月 16 日 下午 3:37 
I have been thinking of adding that to the script. I want to find a way to make it so you can set the control schemes from the menu, but I want to be sure how I want it to work before starting. I don't want it to be convoluted to set up, nor do I want it to demand excessive complexity either.

I will look into it the next time I give it a look.
enenra 2019 年 1 月 16 日 上午 4:31 
Hi Trekkerjoe

Does the latest version contain the WASD controls featured in your Bugbear blueprint? If not, any chance for adding those to the script in the future?
Trekki  [作者] 2019 年 1 月 12 日 下午 7:49 
I am so glad that this continues to help people.
Emiricol4Rl 2019 年 1 月 11 日 下午 5:47 
Wow! Imagine what we can do with mechs, now :) Thanks for posting this!
Schmoobledeedoo 2018 年 11 月 14 日 下午 9:19 
Hey! Can you release the WSAD converter? I love this script!
Dr Crow 2018 年 6 月 27 日 下午 8:06 
wow that's super usefull for a lot of things! the walk to run switch was somewhat difficult with timers, mech builders could make some really great things with this!
Keq 2018 年 6 月 25 日 下午 10:34 
Great work you will make mech builders very happy :)