Space Engineers

Space Engineers

258 valoraciones
TXC Automatic Solar Panels
   
Premiar
Favoritos
Favorito
Quitar
Tamaño
Publicado el
Actualizado el
33.711 KB
3 FEB 2017 a las 19:09
1 ABR 2019 a las 7:08
9 notas sobre cambios ( ver )

Suscríbete para descargar
TXC Automatic Solar Panels

Descripción
TXC Automatic Solar Panels
No setup, no naming, just maximizing solar power by aligning solar panels. Now even self-triggered!


Usage:

Just put the script in a programmable block. One PB is enough to handle all panels. As you add new panels with time or change them, just use the 'recompile' button or 'init' as argument to scan the grid again.
Keep in mind: Any construction which matches one panel type will be treated like one, if you don’t want this please use the ‘EXCLUDESTRING’ (read below). Furthermore, rotor limits are not supported at the moment. Also modded panels are not supported, maybe in the future.

Arguments
  • 'init': scans the panel again and resets their states
  • 'start': starts the aligning again (e.g. after stop)
  • 'stop': stops the aligning
  • 'break X Y': toggles aligning of panels for X seconds after a break of Y seconds. To be used as argument of the timer block. Also keep an eye on your optional cooldown settings! Example: 'break 110 10' will pause aligning for 10 s after 110 s.

If you don’t know how to use a script, follow these short instructions please.
  • Build a programmable block (PB) like in the pictures above. (If you want name it, e.g. PB Solar or similar.)
  • Press ‘Edit’ on your PB, ‘Browse Workshop’ and then double click on the script in the menu on the right.
  • Back in the editor, press ‘Remember & Exit’, run the PB and on the right side you should now get some output about the panels.


Features:

Arranges different predefined layouts of solar panel constructions without any setup needed. How panels are constructed is shown in pictures above. You can use normal rotors or advanced ones. All types of panels must be attached to the grid the programmable block is running on, which is also shown in the pictures. At the moment, there are four different layouts:

I-Panel:
Very basic. From the base grid, there is only one rotor to the solar panels. Mainly used if the panel only need alignment in one axis.

O-Panel:
Like the I panel, it can only align only in one axis. It is more stable, because from the base grid, there are two rotors which hold the grid with the solar panels between them. Of course, they must face each other! (CONSTRUCTION-GUIDE)

U-Panel:
A very stable type. Never had problems with crazy rotors, but trickier to build. From the base grid, there is one rotor to a U-shaped grid. This grid has two rotors which hold the same grid between them. Of course, they must face each other! Good for usage on a roof. (CONSTRUCTION-GUIDE)

T-Panel:
The type most players build first. It’s like the I-panel, just with any number of rotors attached which are connected to different grids containing solar panels. Anyway, in my opinion it’s not a good construction, because it’s very prone to vibration, especially if build asymmetric. Just don’t blame me if you build (Don’)T-panels like in the picture. That one worked well, but remember the game has some sort of physics.


Optional settings:

If you don’t want the script to handle a construction which is identified as a panel, you can add the ‘EXCLUDESTRING’ to the rotor and / or solar panels’ name.
The searched percental amount of power is at least the ‘MINRELATIVEOUTPUT’ value.
In games with very short daytime (e.g. < 1h) it may be better to increase the ‘ROTORVELOCITY’ value. But don’t increase it too much, this could cause vibrations! If you increase this value you can should the ‘MILLISECONDSREVERSECOOLDOWN’. 'ROTORTORQUE' is the value of torque and brake torque rotors use.
Because of a bug in the api, in low simspeed games it may be necessary to increase the values of ‘MILLISECONDSREVERSECOOLDOWN’ and ‘GLOBALPANELRESETTIME‘.



Maybe you are wondering about the nice fay in the pictures. (The better part of the pictures!) My good and very talented friend Daniru made it and is mainly drawing fantasy arts, but Sci-Fi as well. If you like leave a like on deviantart[laurenas.deviantart.com] or better get your own special picture! It’s just some clicks away, contact Daniru here in steam or on deviantart!

If you use or change the script as part of your creation, please give a link back to this mod or name me as the author. Also, if you write new panel classes, feel free to include them here in the original.


Planed features:
  • Nice output
  • Align panels according to runtime resources
  • Error handling (destroyed blocks, multiple PBs running this script, ...)
  • Jump over piston and rotors with conditional parameters (e.g. T-panel on top of piston)
Discusiones populares Ver todo (2)
13
28 MAR 2019 a las 5:21
FIJO: [Guide] Building O- and U-panels
Xarniia
13
20 MAY 2017 a las 9:13
FIJO: Not or wrong recognized panels
Xarniia
206 comentarios
Oblivion2012 15 JUN a las 18:41 
Must be a new issue with the signal update but the programming block randomly shuts off and stops running the script idk if its the smart solar rotor conflicting or the Ganymede Solar Array but yeah the panels dont seem to align and the script stops running
Xarniia  [autor] 15 NOV 2022 a las 20:19 
I didn't play the games for years.
Could you please upload some screenshots of a simple setup (maybe extra world) and tell me which blocks you used? I never played with hinges.:steamhappy:
Star_Kindler 15 NOV 2022 a las 10:08 
This script does not appear to work anymore, at least with hinges as part of the setup.
NexusLeader 24 MAY 2022 a las 18:53 
i did, 0.05 seems to be working fine, don't go above it and your perfect, but go above it and it's too wobbly and won't stop at the right time
Xarniia  [autor] 22 MAY 2022 a las 11:12 
It depends a lot on your day legth. I playyed the game alway with very low rotor velocity.
I'm not sure how stable the game at the moment is in terms of wobble and explosions of rotors. give it a try.
NexusLeader 22 MAY 2022 a las 10:12 
dude, i said where, but i already found it in settings anyways, can it be default 0.05? because it's very slow and people won't like that
Xarniia  [autor] 22 MAY 2022 a las 9:44 
ROTORVELOCITY is what you are looking for in the script :selike:
NexusLeader 21 MAY 2022 a las 17:56 
WHERE DO I EDIT ROTOR VELOCITY!?!?
Skallabjorn 13 AGO 2021 a las 13:33 
Thanks
Xarniia  [autor] 13 AGO 2021 a las 11:48 
Yes, change the ROTORVELOCITY paramenter in the code.
There are more settings you can adjust, you can find it under "Optional settings" up here.