Space Engineers

Space Engineers

Freya Battery Management
Vehicle Management
Ahoy and thank you for this truly helpful piece of script! However, I'm having trouble setting up the vehicle interaction. When I connect a battery whose name contains "Vehicle", the script correctly picks it up and sets it to "Recharge". However, it stays that way even after unlocking either of the connectors.

Now I can certainly set it to discharge manually, but this is a little tedious without hotkeys (see below). Furthermore, if I need to disconnect before turning the battery on, it throws me out of the remote control (due to lack of power), rendering hotkeys useless. On the other hand, toggling the battery before disconnecting doesn't work half the time because the script turns it back to recharge immediately.

For the time being I edited the script on my end to simply ignore vehicle batteries completely. In case you want to add a little flexibility, here's a suggestion: Only set vehicle batteries to recharge once after they connect. That way you can automate the docking process without getting in the way afterwards.

Cheers,
Zultar
< >
Menampilkan 1-15 dari 16 komentar
Craig P  [pengembang] 11 Des 2015 @ 1:01pm 
Wait, are you putting Freya ON the vehicle?

There should only be one Freya running, and it should be in the base.
Astus 11 Des 2015 @ 1:25pm 
I think he is not.
...
And my vehicle batteries have the same problem.
...
How is the script supposed to change the vehicle batteries back to discharge after you disconnect the ship?
As far as I know skripts can't easily access grids not connected to their grid; especially if the grids do not have a antenna.
Craig P  [pengembang] 11 Des 2015 @ 2:15pm 
A major issue with programmable blocks is that they CAN access blocks on other grids, as long as the block was once on their grid. Freya detects that a battery disconnected and turns it to discharge, at least in theory.

So you connect, Freya detects the battery, memorizes it, and sets it to recharge. You disconnect, and Freya detects that the memorized block isn't on the local grid, and sets it to discharge.

Do the batteries on the vehicle have the same name as batteries which are still connected directly? For example, two identical copies of the vehicle, one disconnected, one connected?
Astus 11 Des 2015 @ 3:22pm 
The batteries all have unique names and inlude the word Vehicle
for example one of the batteries is called:
Vehicle DD Battery 1

There are neither any copies of any vehicles.
Furthermore none of my three ships is succesfully changed on disconnection of the connector.



P.S. The way blocks can be accessed by scripts on other grids is really interresting. Really useful.
Craig P  [pengembang] 11 Des 2015 @ 5:45pm 
Hm. I'll look into it a bit tomorrow. If you share your world, it'll make it easier on me.
Descryant 12 Des 2015 @ 1:26am 
Yeah, I was only running one Freya on my base and unique battery names.

Still, even if it was working correctly it kind of messes up drones, because if you undock from within the remote control (using hotkeys) with the battery still set to recharge the RC stops working. So you'd need to do it all from the Terminal, which is a little clunky compared to just hitting a few keys on the RC to undock. Not _that_ big of a deal, but something to consider.
Terakhir diedit oleh Descryant; 12 Des 2015 @ 1:26am
Craig P  [pengembang] 12 Des 2015 @ 4:15am 
Well, there's no way for Freya to psychically tell that you're about to undock. The best I could do is have Freya completely ignore Vehicle-labeled battereis.
Descryant 12 Des 2015 @ 6:08am 
I guess what you could do is keep a map/dictionary of all vehicle batteries and whether Freya has already set them to recharge and then only touch the battery if that flag hasn't been set. That way you could automatically set vehicles to recharge when docking and allow the user full flexibility when undocking.
Astus 12 Des 2015 @ 10:30am 
Terakhir diedit oleh Astus; 12 Des 2015 @ 10:31am
Craig P  [pengembang] 12 Des 2015 @ 12:20pm 
@Zultar, not a bad idea.

@Astus, I'll take a look.
Delta99 4 Jan 2016 @ 7:53pm 
Same problem. Freya does not switch battery on ondocked vehicles to Discharge. I've followed all the directions.

As for one poster saying that scripts can control objects on other grids if they have been connected once is false as far as I know.
Buzzel 13 Jan 2016 @ 10:38am 
I just started to run this script on my station. And it's really nice for monitoring en switching battery settings, but i experience the same issue.

My mining ship with 2 unique named battery's gets switch to recharge accordingly, but indeed it does not switch back. due the fact my mining ship uses a gazilion pistons it explodes on powerdown... so thats no good :)

It does contain a backup reactor, maby that is causing an issue with the script?
Delta99 13 Jan 2016 @ 6:33pm 
No response from the author. Probably has abandoned this.
Craig P  [pengembang] 23 Jan 2016 @ 3:57pm 
It's fixed, by the way.
Astus 23 Jan 2016 @ 4:03pm 
Thank you.
< >
Menampilkan 1-15 dari 16 komentar
Per halaman: 1530 50