Space Engineers

Space Engineers

AUTO ALIGNING Script - Ingame Programming without mod
43 Comments
Tokamak 15 Feb, 2015 @ 8:50am 
Yes, that's what I meant. Something like dampeners, but it stops me from moving relative to a moving object. Yes, I figured that was impossible currently, but it still would have been cool. Ugh, this relative velocity talk makes me want to go play KSP.
WiDOC  [author] 14 Feb, 2015 @ 9:43am 
***********************IMPORTANT PLEASE READ ****************************************
THE UPDATE IS HERE and because i published just the script this thread will not be updated anymore !!!
PLEASE FIND the new script, updates and videos HERE
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=392448066

- Thanks -
**************************************************************************************************
WiDOC  [author] 14 Feb, 2015 @ 8:55am 
Hi jarod.
I'm not sure to understand. You mean that if a ship1 is going to 10m/s and an other ship2 is going to 15m/s then ship2 will reduce his velocity to 10m/s.
Am I right ? If so, it is still impossible to transfer data from an object to another. so impossible to compare two velocity.
But thanks to antenna and future update from the developpers of space engineers i hope it will be.
Tokamak 14 Feb, 2015 @ 8:01am 
What I want most is a script to kill relative velocity to another object. This sounds awesome too though.
Cirind Chaosdiver 14 Feb, 2015 @ 3:07am 
Nice :D
ImDerp 13 Feb, 2015 @ 2:55pm 
cool man
WiDOC  [author] 13 Feb, 2015 @ 2:54pm 
in fact if u do not create all the control panel for the GPS coordinates the script found null and stop working so...but i fixed that for the next update
ImDerp 13 Feb, 2015 @ 2:53pm 
okey, thank you very much :D
WiDOC  [author] 13 Feb, 2015 @ 2:51pm 
Hi ImDerp. I think I know why but still i'm not sure this first version was just to show the project and it is not simple to put so much timer block. I'm doing the second update right now and i'm explaining step by step how to put it on a ship so stay tuned ;)
ImDerp 13 Feb, 2015 @ 2:28pm 
i really cant get this to work on my own ship, i got the script the gyros and the timers, what have i done wrong (the timers is also in the right possition)
Cirind Chaosdiver 13 Feb, 2015 @ 1:59pm 
Ok :D.
And well. I can tests next relace of this script :P.
WiDOC  [author] 13 Feb, 2015 @ 1:13pm 
i put a lot of effort in programming so that you don't have to go inti the script for setting it up. You will se the update and then u will tell me. I'm preparing the video right now :)
Cirind Chaosdiver 13 Feb, 2015 @ 11:53am 
Ok. But well. Maybe addon to this scripts? Addon for that menu :).
Well. Not every one understand how scripting working.
And well. It's will probably made your idea more usefully :P.
WiDOC  [author] 13 Feb, 2015 @ 11:09am 
that's already what i've done: the possibility to create orders!
I prefer vanilla settings because you're sure to make it working on every online server !

And i don't like mod lol :)
Cirind Chaosdiver 13 Feb, 2015 @ 10:56am 
Yes :'3. It's so fucking cool :D.
Well. Maybe this should be mod? :P.
Mod what giving new "orders" screen for ships with AI core. (just idea)
WiDOC  [author] 13 Feb, 2015 @ 10:07am 
hey thanks guys. The first update came in 2 or 3 hours or tomorrow ... time for me to do the video.
But I have to warn you ..... IT IS SO FUCKING COOL
Fogrender 13 Feb, 2015 @ 8:57am 
very well done the video helped a lot and could understand you fine keep up the good work
Cirind Chaosdiver 13 Feb, 2015 @ 7:55am 
Holy shit! It'S AWESOME!!
WiDOC  [author] 12 Feb, 2015 @ 4:40am 
The aim for the moment is just to have a stable program. With all the needed function. Then i will do the rest. Actually for the mining i thought about something that i will explain on the next video
WiDOC  [author] 12 Feb, 2015 @ 4:36am 
Hey i think that for the moment it will also blind drill on asteroid but i'm thinking about an intelligent and simple way to do what you say because this is what i want too.
Etsijä 12 Feb, 2015 @ 2:22am 
OMG this idea blows my mind too, with all its possibilities...would it be possible to search for minable minerals on asteroids with scripting? I have no idea whether the tiny subset of C# that SE has would allow for it. It would be WAY too cool to have a mining drone that actually would intelligently target itself towards minerals and start mining, instead of just drilling a hole blindly into the asteroid, as all the sensor-implementations now do.
WiDOC  [author] 11 Feb, 2015 @ 11:51am 
Okay :( anyway I will probably repost it with JUST the script with a short video that explain how to simply initialize the ship. (yeah the script is analysing missing part, and auto initialize missing parts ).
Draven_Stone 11 Feb, 2015 @ 11:40am 
i really don't know how thats done, sorry that i can't help
WiDOC  [author] 11 Feb, 2015 @ 11:37am 
Hi guy.
The next Update of the script is nearly there :) and it's really cool !
But i want to ask you if I have to repost on the steam workshop or if I have to update this one ?
WiDOC  [author] 10 Feb, 2015 @ 1:15pm 
oh ok. Thanks :)
Draven_Stone 10 Feb, 2015 @ 11:46am 
yes, it would be it the script load menu, when looking at the programmable block's edit screen at the bottom right is a button named "Browse Workshop" it is here where you import and export your scripts, it's set up like the blueprint menu
WiDOC  [author] 10 Feb, 2015 @ 11:38am 
lol :)
WiDOC  [author] 10 Feb, 2015 @ 11:37am 
Just a question anyway. Is there a way to just upload the script on the steam Workshop ? Or do i have to always create/upload a ship with the script on it ?
Draven_Stone 10 Feb, 2015 @ 11:34am 
i'll be more then happy to be a tester for you, i mean, whats the worst that can happen, my 12year old computer blowing up
WiDOC  [author] 10 Feb, 2015 @ 11:27am 
For the moment I will do it in one script BUT with the idea that i have, i think that you will not be disapointed. Anyway, it is largely easier for me to do it in one script and continue my job for the moment.
But after the next update you will give me your feeling about it and if it's too complicated for people i'll do it another way. But the way i'm thinking, and the way i'm programming, it is easier for me to do what i have in my head and then split it if i have to.
But yeah, I think that the idea that I have for the next will be very good. Trust me, i'm sure that :
1 it will work
2 it will be simple to use
3 it will be easily reusable
4 It will be flexible

I think i'm kinda like you. I mean I don't like when there is too many differents buttons or things to do. Like start script first then start timer then tadada then tadada for making it works. Mine will just work, and it will do just what you order the ship to do :)
Thanks for the feedback anyway ;)
Draven_Stone 10 Feb, 2015 @ 10:59am 
your more then welcome, i look forward to seeing your script fully working, but can you make the mining and auto-navigation parts separate form each other, because i have seen everyone that has tried to make something like this is trying to get it to do too much, things like this don't need to do it all in one script, sensor guided auto-miners work good as there are for mining, they just need an auto-docking script for unloading they're cargo
WiDOC  [author] 10 Feb, 2015 @ 10:50am 
@Draven_Stone
I tried with the trigger instead of the autostart and it's working perfectly thanks a lot. It is probably taking a lot in CPU execution but less compare that what i was doing. It's amazing i'll do better thanks to this :)
WiDOC  [author] 9 Feb, 2015 @ 11:40pm 
@kam I know that creation . But it was not good enough for me because you have to put your ship in front of the asteroid every time. And his drone was too complicate imo to be use by anyone.
but if course if can help each other...why not :)
Kam Solastor 9 Feb, 2015 @ 7:24pm 
There's a auto-miner that has some pretty nice script - you might want to talk to the author, he might have some ideas that could help you. ( https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=382495638 )
Draven_Stone 9 Feb, 2015 @ 5:12pm 
your welcome
WiDOC  [author] 9 Feb, 2015 @ 5:09pm 
Oh okay...i'll try. Thx :)
Draven_Stone 9 Feb, 2015 @ 5:00pm 
you can get the same thing with one timer block that your getting with all the timer blocks, all you have to do is set it with "Programmable Block - Start, Timer Block - Trigger Now", this will make it refresh the Programmable Block's programming every 0.1 second, warned though this is very hard on CPU processing time
WiDOC  [author] 9 Feb, 2015 @ 3:35pm 
2nd question
it is not possible to access through antenna or anything else (for the moment) any info that is NOT on the ship / station with the program. But it will be possible to save the coordinates of your main station and then create a button to say "goToStation".
i have an interesting idea for doing it but it will be too long to explain. I will let you wait for the next update and hoping u have fun with the actual version.

Thanks a lot ;)
Hope i was clear enough !
WiDOC  [author] 9 Feb, 2015 @ 3:35pm 
@Buzzed Bear
hey
I'm glad you appreciate the video. I will try to answer your question
Why 44 timers?
This script is made to do REAL TIME programming. So by example when i'm executing only ONCE it will get the current position and activate the moving if necessary. But it needs to refresh to know if i still need to align or if i have to stop or if i went to far so i have to align back. So if you only have 3 timer block you can only have 3 execution per second which is clearly not enough cause your ship will move too far away before stopping and then it will go back but another time too far away so you need at least 20 timers (2 cube of 3x3x3 timer was just fancy with the light i liked it lol).
🍁BuzzedBear🍁 9 Feb, 2015 @ 3:15pm 
PS: You have no need to apologise for not speaking "perfect" english. I thank you for at least doing it. I would have been very dissapointed had I not been able to understand how to set this up. Thumbs up on this one for sure!
🍁BuzzedBear🍁 9 Feb, 2015 @ 3:13pm 
This is beautiful! Your video is excellent as well. I have a couple questions: Why 44 timer blocks? If they all run the program, would not two or three blocks work if they activated each other... I see so many possibilities with this - Would you be able to impliment some kind of system whereas one could name a beacon as "homingbeacon" or something that the program would recognize as the point in space to point to? Through the chat prompt allow us to use a command such as /setcourse "homingbeacon"... would there be a way to set multiple beacons or multiple points that the program can store? I know too little about C# and the restrictions of SE... but boy oh boy oh boy.... this little script has my mind on fire!
WiDOC  [author] 9 Feb, 2015 @ 12:07pm 
thanks guy :)
GrendelPrime 9 Feb, 2015 @ 12:04pm 
This shows a huge amount of potential, and some pretty clean coding, looking forward to picking it apart to integrate into an automated mining craft.