Space Engineers

Space Engineers

AUTO ALIGNING Script - Ingame Programming without mod
43 kommentarer
Tokamak 15. feb. 2015 kl. 8:50 
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  [ophavsmand] 14. feb. 2015 kl. 9:43 
***********************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
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=392448066

- Thanks -
**************************************************************************************************
WiDOC  [ophavsmand] 14. feb. 2015 kl. 8:55 
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 kl. 8:01 
What I want most is a script to kill relative velocity to another object. This sounds awesome too though.
Cirind Chaosdiver 14. feb. 2015 kl. 3:07 
Nice :D
ImDerp 13. feb. 2015 kl. 14:55 
cool man
WiDOC  [ophavsmand] 13. feb. 2015 kl. 14:54 
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 kl. 14:53 
okey, thank you very much :D
WiDOC  [ophavsmand] 13. feb. 2015 kl. 14:51 
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 kl. 14:28 
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 kl. 13:59 
Ok :D.
And well. I can tests next relace of this script :P.
WiDOC  [ophavsmand] 13. feb. 2015 kl. 13:13 
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 kl. 11:53 
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  [ophavsmand] 13. feb. 2015 kl. 11:09 
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 kl. 10:56 
Yes :'3. It's so ♥♥♥♥♥♥♥ cool :D.
Well. Maybe this should be mod? :P.
Mod what giving new "orders" screen for ships with AI core. (just idea)
WiDOC  [ophavsmand] 13. feb. 2015 kl. 10:07 
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 ♥♥♥♥♥♥♥ COOL
Fogrender 13. feb. 2015 kl. 8:57 
very well done the video helped a lot and could understand you fine keep up the good work
Cirind Chaosdiver 13. feb. 2015 kl. 7:55 
♥♥♥♥♥♥♥♥♥! It'S AWESOME!!
WiDOC  [ophavsmand] 12. feb. 2015 kl. 4:40 
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  [ophavsmand] 12. feb. 2015 kl. 4:36 
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 kl. 2:22 
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  [ophavsmand] 11. feb. 2015 kl. 11:51 
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 kl. 11:40 
i really don't know how thats done, sorry that i can't help
WiDOC  [ophavsmand] 11. feb. 2015 kl. 11:37 
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  [ophavsmand] 10. feb. 2015 kl. 13:15 
oh ok. Thanks :)
Draven_Stone 10. feb. 2015 kl. 11:46 
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  [ophavsmand] 10. feb. 2015 kl. 11:38 
lol :)
WiDOC  [ophavsmand] 10. feb. 2015 kl. 11:37 
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 kl. 11:34 
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  [ophavsmand] 10. feb. 2015 kl. 11:27 
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 kl. 10:59 
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  [ophavsmand] 10. feb. 2015 kl. 10:50 
@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  [ophavsmand] 9. feb. 2015 kl. 23:40 
@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 kl. 19:24 
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. ( http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=382495638 )
Draven_Stone 9. feb. 2015 kl. 17:12 
your welcome
WiDOC  [ophavsmand] 9. feb. 2015 kl. 17:09 
Oh okay...i'll try. Thx :)
Draven_Stone 9. feb. 2015 kl. 17:00 
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  [ophavsmand] 9. feb. 2015 kl. 15:35 
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  [ophavsmand] 9. feb. 2015 kl. 15:35 
@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 kl. 15:15 
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 kl. 15:13 
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  [ophavsmand] 9. feb. 2015 kl. 12:07 
thanks guy :)
GrendelPrime 9. feb. 2015 kl. 12:04 
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.