Space Engineers

Space Engineers

Nincs elegendő értékelés
BlueG_AutoDrones (WIP)
   
Díjazás
Kedvenc
Kedvenc
Törlés
Type: Mod
Mod category: Script
Fájlméret:
Közzétéve:
Frissítve:
32.448 KB
2015. jan. 2., 19:33
2015. jan. 9., 21:24
12 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
BlueG_AutoDrones (WIP)

Leírás
*** Updated 1/10/2015***

About

This mod is still a work in progress (its not even in alpha). It may crash the game. If it does, don't bother sending it to the developers, though I would love to hear about it. At least, I'd love to hear about it if you send me the exception message that appears in Space Engineers' log file. The log file can be found in %AppData%\Roaming\SpaceEngineers. The file is called SpaceEngineers.log and I only need the part near the end where it talks about an exception being found. Knowing what you were doing when you got the exception would help too.

This version is usable in game play, but the drones require careful supervision. The only crash I know of right now (at least, with the personalities that I defined) is if you copy and paste an active drone.

This version implements 4 personalities:

  • [follow] - The drone will follow its owner
  • [dock] - The drone will move to the nearest connector whose names ends with the tag [dock], line itself up, and connect to it. Note that it assumes that the connector is facing to the rear of the ship (relative to the remote control unit).
  • [mine:bore] - Move to the nearest asteroid and drill straight through it.
  • [mine] or [mine:strafe] - Move to the nearest asteroid and drill along its surface. This behavior still needs improvement. The drones frequently hover away from the surface, but will eventually find a place to drill.

Currently, the personalities are hard-coded. If you want to change them, edit the DroneManager.cs file. The place where personalities are defined should be obvious.

I have a plan to allow personalities to be defined in game, but not by in-game script. That feature is still under testing and might not be realized. I'm hoping Keen will release an interface that allows direct communication between in-game script and script mods. If so, then that would be the best solution.

I'm planning on implementing other mining behaviors as well. Other planned mining behaviors include strafe mine, plough mine, and dig mine. I am currently working on the strafe mine behavior, which will move sideways along the surface of an asteroid. The ploughmine behavior will plough along the surface with its drills parallel to the surface of the asteroid. And the dig behavior will simply keep clearing out small holes around it by moving close and then pitching and yawing.

Once those are done, I plan on adding object avoidance to the drone's navigation system. At some point, I'm also going to require a beacon tagged [radar] (the same as in my BlueG_Radar mod) for the drone to sense its world with. that beacon will also determine the maximum range of its sensors. Otherwise, it will only know about the status of its own components and not the world around it.

Don't expect these drones to do everything. Oh, and again, EXPECT PROBLEMS at this stage of development. Please report them if you find them. I'm starting a Bugs discussion under the discussion tab for that purpose.
Népszerű témák Összes megnézése (1)
1
2015. jan. 26., 13:25
Bugs
BlueGM
18 megjegyzés
Dark Penquin 2016. jan. 15., 22:37 
Any recent progress on this mods developement?
Krystal Vixine 2015. okt. 25., 10:58 
How would I change the script to dock, using a connector on the dorsal/ ventral side of the drone. I am making a jump sled that I intend to use for scouting and marking useful asteroids.
BlueGM  [készítő] 2015. máj. 25., 18:06 
This version was broken by an update. I've been working on and off at a new version.
Lathy...or is it 2015. máj. 25., 4:16 
I tried renaming a ship from "Kleig 1" to " Kleig 1 [follow]" but it did not follow me, despite having a remote and engines and gyros and being owned by me. Did I do something wrong?
Maelstrom 2015. márc. 29., 19:11 
cool! hope it goes well thought :P
BlueGM  [készítő] 2015. márc. 28., 21:08 
Yes, I had thought of that, but I want to get the drone's navigating and attacking properly first (now that Keen finally allows scripts to fire weapons). I was close to doing this when life got busy for me again (the school semester got rolling). So that's unlikely to happen before the semester is out. Right now I'm stretching myself thin just to try to get the next version of the radar mod done.
Maelstrom 2015. márc. 28., 20:21 
adding kind of like an NPC behavior to them using scripts, if yes, this mod will become so popular lol
Maelstrom 2015. márc. 28., 20:20 
could you make this behavior apply to random ships which would spawn?
BlueGM  [készítő] 2015. márc. 28., 20:18 
When I get the next version out, that behavior would be possible by using a wander behavior and a move towards behavior. The later would also have to be set to activate when the drone moves too far away from the station. Asteroid avoidance will be autmoatic (in the current version, they don't try to avoid asteroids).

So, in answer to your question, it will be possible to do that in the next version. But, as an adult student, I'm unlikely to put much work into the next version until summer break (which is, I think, 5 weeks away). Though, I suppose I could add a personality like what you describe to the current version easily enough. Is that the only thing you need it to do?
Maelstrom 2015. márc. 27., 19:27 
like flying ships around the station and would avoid asteroids :D