Space Engineers

Space Engineers

Rotor Torsion Spring
Joshuawood 3 Mar, 2019 @ 9:10am
Script With Hinges Mod
I'm trying to get this to work with the hinges mod because they are really useful. is there a fast way to add them to the used blocks since they are basically the same thing? or are they too different?
< >
Showing 1-5 of 5 comments
uglydisease 15 Mar, 2019 @ 4:49pm 
This is conveyor hinges? You need to know what functions the hinges support, if they support the same functions and variables (with the same names) as rotors then they should work together, but you may need to get into the script and rewrite some of the code. I haven't really looked into either that closely, but I suspect that you will need to do some script editing because the hinge is a rotor turned on its side.

I tried to show this using ascii characters but it didn't format correctly and looked terrible any way.

Anyway my point is that while rotors and hinges perform the same kind of action they do so in different axis so you would have to take this into account.
Last edited by uglydisease; 15 Mar, 2019 @ 4:50pm
Joshuawood 15 Mar, 2019 @ 7:34pm 
Originally posted by uglydisease:
This is conveyor hinges? You need to know what functions the hinges support, if they support the same functions and variables (with the same names) as rotors then they should work together, but you may need to get into the script and rewrite some of the code. I haven't really looked into either that closely, but I suspect that you will need to do some script editing because the hinge is a rotor turned on its side.

I tried to show this using ascii characters but it didn't format correctly and looked terrible any way.

Anyway my point is that while rotors and hinges perform the same kind of action they do so in different axis so you would have to take this into account.


Yes it is. I think all of the functions and variables are identical and i wasn't sure if this script cares about things like the direction thing because it just relies on the rotor being a distance away from the given as in force= f(Desired angle-Actual angle) sort of thing

i know things like whips rotor turrets do care about direction and all that jaz but i'm not sure this one does :p

I figured i would need to at least edit the list of blocks it looks for or something like that if they were functionally identical. maybe the mod author can just add this in real quick. really not a big deal if he can't it would just be cool :)
uglydisease 16 Mar, 2019 @ 1:27pm 
Josh,

I just tested the hinges in game, I had no issues using them with the script. No alterations required. It looks like the only requirements are that the object has "script" in the custom data and inherits from IMyMotorStator interface which the hinges do.

Of topic but, I was thinking of using this with landing gear to make them more resistant to hard landings, but of course they are on subgrids. I might be able to get around this by using the control module, but then I need to add a timer or programming block just to handle basic lock/unlock (damn keen).
Joshuawood 17 Mar, 2019 @ 8:20am 
So i just need to add "script" and "spring" in the custom data and it works fine?

I'll give that a go next time i'm on the ground :)

i tried it before with just "spring" and it didn't seem to work so switched them over to rotors and all was good.




i made a space ship using the landing gear wheels from the plane parts mod pack and used 2 timers to extend/retract then lock the rotors and a script to allow wheel control to make them take more of an impact, veeeeeeery convoluted haha

crashed it on first re-entry due to lack of slowing down thrusters and only the wheels survived ¯\_(ツ)_/¯
uglydisease 17 Mar, 2019 @ 11:34am 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1686056352&fileuploadsuccess=1

It definitely works, but let me know if your having problems. I had to fiddle with the spring constant and default torque some to make them perform well.
Last edited by uglydisease; 17 Mar, 2019 @ 11:35am
< >
Showing 1-5 of 5 comments
Per page: 1530 50