-
Notifications
You must be signed in to change notification settings - Fork 10
Debug console
Since KSP 1.2, the game's debug console (the one you get by pressing Alt+F12) allows entering console commands (these start with a "/" character).
IndicatorLights provides its own console command, /il
, which allows you to do various things with it that can be helpful for debugging purposes. This can be especially useful to modders.
Just open up the debug console window via Alt+F12, and type the command /il
followed by the appropriate arguments to get it to do what you want. It works both in the editor and in flight.
To find out what it can do and what the arguments are, consult the documentation below, or just type /il help
for an in-game guide.
The following functionality is currently supported:
- List all the parts on the ship that have IndicatorLights functionality on them
- Find out the names of the meshes on a part (which you can use in setting up config)
- List detailed info about a particular part (e.g. what meshes, emissives, and controllers there are)
- Make a "live" edit to the color-source syntax controlling a module, and instantly see the effect in-game
- Flip a global on/off switch that controls all indicator lights (when turned off, they all go dark).
More functions may be added over time, if there's demand.
Lists all IndicatorLights-enabled parts on the current vessel.
Example: you type,
/il parts
...and it then displays something like this:
[IndicatorLights] 7 IndicatorLights parts found:
0: Small Inline Reaction Wheel
1: Double-C Seismic Accelerometer
2: 2HOT Thermometer
3: PresMat Barometer
4: Z-400 Rechargeable Battery
5: Z-400 Rechargeable Battery
6: HG-5 High Gain Antenna
Displays information about the specified part. The index is one that you get from the /il parts
command (see above).
Example: Having gotten the parts list above, you decide you want to examine the seismograph. So you type:
/il part 1
...and it displays something like this:
[IndicatorLights] Part 'Double-C Seismic Accelerometer' has 2 meshes, 1 emissives, 2 controllers.
Lists the names of all meshes on the part. This is useful when setting up meshes in part config.
Example: You decide to look at the meshes on the seismograph. So you type:
/il part 1 meshes
...and it displays something like this:
[IndicatorLights] Part 'Double-C Seismic Accelerometer' has 2 meshes:
0: accelerometer
1: IndicatorLights/Meshes/nubbinLamp