Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
From the workshop, I suggest this one for a mining script:
https://steamcommunity.com/sharedfiles/filedetails/?id=1507646929
Bear in mind that the Space Engineers C# environment is ... primitive compared to a standard programming environment. The script must complete fairly quickly or a "script too complex" message will show up. I suggest not using while loops at all. Thread.Sleep() is not allowed. Almost all scripts end up to be state machines. The programmable block is not good at displaying error messages, so making your own error messages is better than a crash log. Space Engineers uses an older version of C# (version 6 I think), so no tuples allowed.
I suggest you get Microsoft Visual Studio for a C# compiler. There are tutorials on connecting the compiler to the Space Engineers C# library. Makes programming much easier. Google "space engineers C#" to get piles of tutorials. I and others here can help out.
Now for the mining drone:
Essentially its using drills, monitoring ship status (especially cargo container %full), moving, docking to a station, unloading ore, undocking, moving back, rinse and repeat.
I think the hardest part is going to be moving around. This can be done with a remote control block, but sometimes stuff goes wonky.
Some stuff I thought about afterward. Ore detector blocks are intended to provide information to the player and you can't use a script to get information out of it. Same with antennas. If scripts could get info from them, then the game would be called Automation Engineers for script writers only.
Some advanced stuff are getting programmable blocks on different grids to talk to each other, and camera raycasting.