Space Engineers

Space Engineers

评价数不足
WCCS - Dock
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
98.967 KB
2017 年 3 月 14 日 下午 8:47
2019 年 12 月 26 日 下午 5:52
41 项改动说明 ( 查看 )

订阅以下载
WCCS - Dock

在 Wicorel 的 1 个合集中
Wico Drone Control Scripts
8 件物品
描述
Manages movement and docking on a drone.

Connectors to be used should have [DOCK] in the name or CustomData.

Requires Antenna Receive sub-module to receive docking coordinates.

Note that the 'mother' ship requres my DOCK Manager script running (or replacement)

Handles MODES:
MODE_DOCKED
MODE_DOCKING
MODE_LAUNCH
MODE_RELAUNCH


Arguments:

launch

when docked, launches the ship straight ahead. (same functionality as my MK3 miner)



godock

Drones now remember all bases and their positions.
When asked to dock (godock command), drone picks the 'best' base to try to dock to. (right now, it's just closest)
The drone then asks that base specifically for an 'approach' waypoint.
If it gets no reply, it tries to move into antenna range of the last known position of the base
When it gets to the approach waypoint, it asks the base for a connector
aligns to the docking connector
Moves backward toward the docking connector until connected

all movement except final docking has collision detection and drone performs pathfind around obstacles.


Note: Code is compressed using MDK. See source here: https://github.com/Wicorel/SpaceEngineers/tree/master/Wico%20Dock

Information on MDK Here: https://github.com/malware-dev/MDK-SE

Drone Script Collection
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1436521807

51 条留言
Wicorel  [作者] 2020 年 1 月 23 日 下午 3:28 
This part is the drone side. The mothership is in the Antenna Receive script.

It can be mobile.. however. the ship needs to be non-moving while docking is taking place.
Black.icE 2020 年 1 月 22 日 下午 9:50 
Can this script be used on a mobile mothership, please?
no 2019 年 5 月 31 日 下午 2:04 
I've added the antenna receive script and the master control script, it turns out I only needed to recompile it :steamfacepalm: . I think the instructions should be a bit clearer though since I had to look through some stuff to find the answer, thanks for your help though :steamhappy:
Wicorel  [作者] 2019 年 5 月 31 日 上午 7:44 
The 'base' also needs the Antenna receive script and the master control script so it can tell the drone its available connectors.
no 2019 年 5 月 31 日 上午 6:18 
Hello, I seem to be having a problem with this script. I have followed the instructions and my drone won't move at all. I have an antenna attached to the drone and an antenna attached to the base or "mom" . Is this script not working? Also, could I have access to the world you used for the demo just to compare? Thanks :cozyspaceengineersb:
Vĕnŕøm™ 2019 年 2 月 27 日 上午 4:36 
Thanks for the info.
On our server someone made the docking port inside a tunnel/passage so the ship has to turn before the entrance, because it cant turn inside.

On my carrier i had to rework the whole hangar so it can rotate but if the drone only turned 20m earlier i would not need to do anything.

It would be nice if there was a parameter/variable to change the distance.
Wicorel  [作者] 2019 年 2 月 26 日 上午 9:00 
The docking start position is set to the length of the ship +50%. Are you having a problem with this distance?

The drone will align it's connector to the docking connector no matter which side of the drone the connector is on. This is so it can connect when moved closer.

The rest of the drone is aligned to the base ship if the alignment is set in the target connector.
if align= is not found in CustomData of the target connector, no alignment is done

0 = forward
1 =up
2 = down
3=left
4=right
5=back

These are oriented according to the orientation of the ShipController in the base.
Vĕnŕøm™ 2019 年 2 月 26 日 上午 6:22 
Can i change the distance where the drone turn for docking?
Can I determine how the drone is aligned to the docking port like 90°?
sonicrules1234 2018 年 11 月 19 日 上午 11:39 
I'm having problems with this again. Everything looks fine except for the speed of the spinning progress indicator. The ship doesn't move when I tell it to dock.

Here's a link to the world:

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1569165496
sonicrules1234 2018 年 7 月 24 日 上午 8:11 
I'd love to see this working on planets as well. :D