Space Engineers

Space Engineers

Systems Manager
10 条留言
erik 2023 年 3 月 20 日 下午 10:36 
hello could you make a script for the hydrogen filling rate and ice stock because the scripts that I find no longer work thank you in advance
erik 2023 年 3 月 20 日 下午 10:35 
bonjour pourriez vous faire un script pour le taux de remplissage hydrogène et stock de glace car les scripts que je trouve ne fonctionnent plus merci d'avance
kinngrimm 2023 年 3 月 19 日 下午 5:30 
ok thx
cjb  [作者] 2023 年 3 月 19 日 下午 12:07 
Anything can run the script (I run it on bases to manage O2 generators, Hydrogen engines and airlocks) but it is not a carrier script. It only acts on blocks on the same grid as the PB.
kinngrimm 2023 年 3 月 18 日 上午 4:31 
can this be a centralized script on a carrier/station PG or does every drone and ship need a PG with this script?
kinngrimm 2023 年 3 月 17 日 下午 8:16 
ok nice. not all of my ships do rotor docking, but i was about to switch over to it complettly. One needs to be careful with it, but after figuring out f.e. that inertia dampners need to be off when rotor docking, or one shouldn't mix large and small grids with rotors, then one has a stable docking solution. More so even as current server admin told me that having more than 3 ships connected to each other via connectors is heavily influencing server performance and also can end up teleporting my ships away from their position twiching violently(happened on yet another server with a carrier of ours).
cjb  [作者] 2023 年 3 月 17 日 下午 6:29 
In fact supporting stockpiling was easy enough I just added that in.

Update your script and in the [docking] section, add "ManageTanks=true" and tanks will change their stockpile setting when they dock.

Obviously not everyone will want that, so the default is false.
cjb  [作者] 2023 年 3 月 17 日 下午 6:11 
Hi kinngrimm; most of what you describe is exactly what the script does.

It doesn't support rotor docking, but otherwise you would just configure the "docking" section in the Custom Data




- ManageBatteries set to true if you want the batteries to be set to recharge when docking
- ManageDampers set to true if you want inertial dampers to be disabled when docking (this means thrusters & gyros do not fight the parent ship)
- DockingPort -- just the name of the connector to use

The EnableOn* and DisableOn* settings take a group name, so if you have a group of things to enable or disable, just group them together and put it on the matching line.

Once you have your settings configured, Recompile the script (or run it with updateconfig).

When you dock or undock, it will only take the actions if it successfully docked or undocked.

Supporting H2/O2 tank stockpile (forcing them to fill) is a good idea; I'll see about adding that some time.
kinngrimm 2023 年 3 月 17 日 下午 5:33 
At times i have a whole toolbar just for things that need to be deactivated and powered down when connecting to a grid. That then also not nessearily just via connectors, but rotors.
to name some additionals to your list
- deaktivating gyros so they do not counteract the carrier ships gyros
- powering down lights, thrusters to safe power and H2
- o2/h2 generators which can be a performance drag and the carrier has those anyways

on the other hand what needs to be activated is
- charging of batteries
- refueling H2 and O2 tanks (forced fill up ? not sure the correct translation here)

That then all ofcause reveresed when undocking.
cjb  [作者] 2022 年 12 月 10 日 下午 12:58 
Minor update so that Airlock groups on other grids are not listed as auto detected (the script didn't control them anyway; it was just misleading).

Also set the default automatic airlock delay to 0.5 seconds instead of 0 seconds