Поиск по STEAMB

Игры и программы по онлайну, скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

Скрипты

AI Mining Drone Script

Положительные голоса97%69 голосов игроков
Подписчики3,9 тыс.3 882 в Steam Workshop
Размер файла13,11 КБЗагрузка через Steam
Обновление автора21 дек. 2016 г.Дата обновления материала
Изображение 1 из 1
Установить через Steam

О материале

«AI Mining Drone Script» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.

Описание автора

Automatic mining drone (using autopilot) (ENGLISH GAME VERSION ONLY - FOR NOW) DerLaCroix && KaTsulChi
Version 1.4 (20.12.2016)

This code enables a mining drone to work (mostly) autonomous. (Or to grind a ship down - see the "manual" Discussion thread)

HOW DO I USE THIS:

  1. Make sure you meet the hardware requirements (see "Full manual" discussion thread). Ship will display error messages through the antenna if you lack something. Make sure to #REINIT ship after an error message - it will not do anything until reinitialized.

  2. Set AI_TIMER up to execute Run without parameters and then restart itself every second, don't start it, yet.

  3. Go into the program editor - edit settings for ship size and thrust. Check code, Save and Exit.

  4. Go into GPS tab and copy the target coords. (Make sure they are within 50m of the asteroid, or the ship will simply return because it can't find it.)

  5. Set up the command line. See commands below. Good template: Example: #REINIT#TARGET GPS:Asteroid:-45.78:-71.36:0.38: #SMART#GARBAGEDUMPON#CARGOLIMIT:5
    Ship is reinitialized for good measure, Initial mining place is set to "Asteroid", Smart mining activated, Garbage dumping is on, Cargolimit set to 5%, which means the ship will return often. If you want to drop cargo instead of docking, use the #THROWOUT parameter, as well.

  6. Position ship so that it is in line with the docking port or at the position it should throw out cargo.

  7. MAKE SURE THE REMOTE CONTROL IS SET TO "ONE WAY".

  8. Start AI_TIMER (1 second interval).

  9. Go do something else while it works, you can check on it via the antenna status displays from afar.

WHAT WILL IT DO? After turning on, it will attempt to reverse into the home position and dock. If docking fails, ship will display an error. (This means the docking was not possible or the ship wasn't lined up well.)

Once docked, it will unload all cargo, and recharge all batteries to at least 99% before moving out. AI will then remember it's home dock for the future, undock from connector and move out for ~10 seconds at low speed. It will remember some waypoints on the way out to be able to park correctly on returning. Don't be alarmed if it doesn't immediately move out after declaring to do so - connectors "stick" sometimes. The drone AI will increase forward thrust until it is let go, and only then start the departing countdown once it is moving.

(When using #THROWOUT to unload, it will simply remember the current position and orientation as home.)

After departing, it will use autopilot to fly to given #TARGET coordinates(Head out). Drone might fly strangely at first - this is the Autopilot collision avoidance behaviour. Collision avoidance will be turned off at 100m from target, for it might not want to get close to the target asteroid.

Once it arrived there, AI will attempt to find an asteroid there.(Within the 50m sensor range.)
It will then proceed to mine that asteroid - for a normal sized asteroid, it will go straight for the centre at first try, and then mine around the edges at further passes. If the cargo is less than #CARGOLIMIT (default 50%) full after the asteroid is cleared, it will turn around and make another pass.

Once it has contact to stone, it will steadily increase thrust to make sure it will push through the asteroid while weight increases. Also, sometimes the drills "stick" to the asteroid. This will also be solved at some point by the steady thrust increase. This has the side effect that the ship will occasionally stop while flying freely in mining mode (holes in asteroid of while approching/after exiting) - speed limiting to soften impacts once we break through with high thrust cannot discern between these states.

Once the container is full enough, it will return to home coordinates. If #SMART mining is active, it will save the last exit point as the next target to return after unloading.

AI will engage autopilot to return to the departing/arrival point, and then attempt to reverse into dock (or just arrive at throwout position.) Don't be alarmed if the ship turns around during docking and heads 'back' - autopilot is a bit overzealous, sometimes. It will get back on course, and if autopilot shuts of for some reason (it does that...) it will resume automatically. If docking cannot be done for some reason (off course/connector off/damaged, etc), the drone will return to arrival point and retry the docking approach. You will notice that the drone is flying circles if that happens - just look what the issue is, pause timer, repair, restart timer. Unless the damage makes a #reinit necessary, the drone will simply resume its work once the timer triggers, again.

After docking (or reaching throwout position) it will unload/charge (or dump cargo), and then head out again.

#RETURN command will cause the drone to return home and stay there (after clearing the asteroid, of course). It will only head out again if given the #GO command.

If average battery charge drops below the #MINCHARGE threshold, it will also return to dock.

Status messages through the antenna will keep you informed.

Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения