14 Commits

Author SHA1 Message Date
Ambroise Garel
6658dbecf9 Moved TUM.logger to its own file 2025-08-05 17:04:24 +02:00
Ambroise Garel
52ad4156a4
Merge pull request #12 from VEAF/davidp57/administrative_settings
Introduced administrative settings.
2025-08-05 16:57:28 +02:00
David Pierron
de3e3df840 Enhanced the logging system while maintaining backward compatibility (through the use of the TUM.log function).
The new system defines specific functions:
- TUM.Logger.trace
- TUM.Logger.debug
- TUM.Logger.info
- TUM.Logger.warn
- TUM.Logger.error

These function can be passed any number of arguments additionnally to the message, and they'll safely format these arguments to be passed to `string.format`.

Example of use:
`TUM.Logger.trace("function  DCSEx.world.setUnitLifePercent(unitID=%s, life=%s)", unitID, life)`

Parameters are formatted based on their type (tables are fully printed for example),

This is a reduced port of the VEAF logging system, which has been used for years.
2025-08-01 23:03:27 +02:00
David Pierron
54ff069711 Introduced administrative settings.
They are defined in `TUM.administrativeSettings`.
They have a default value in `TUM.administrativeSettingsDefaultValues`.
They can be overloaded either:
-  by script (with a call like `TUM.administrativeSettings.setValue(TUM.administrativeSettings.USE_SPECIFIC_RADIOMENU, true)`
- by a parameter named after the setting in a trigger zone called `TUM_Administrative_Settings`

Settings that are already implemented:
- USE_SPECIFIC_RADIOMENU: use a specific radio menu for the mission commands, or use the main one?
- INITIALIZE_AUTOMATICALLY: automatically initialize the mission when the script is loaded. If false, you must call TUM.initialize() manually.
- IGNORE_ZONES_STARTINGWITH: if set, ignore all zones starting with this string. This is useful to avoid conflicts with other scripts that use the same zone names.
- ONLY_ZONES_STARTINGWITH: if set, only adds zones starting with this string. This is useful to avoid conflicts with other scripts that use the same zone names.
2025-08-01 18:47:47 +02:00
Ambroise Garel
e20f6360b7 Added warning for missing autoexec.cfg 2025-07-26 22:46:06 +02:00
Ambroise Garel
80af8ef82c Moved wingmen contact management to wingmenContacts table 2025-07-26 20:23:25 +02:00
Ambroise Garel
3f9f07ade2 Checks wingman tasking every tick to make sure target is still alive 2025-07-26 19:45:00 +02:00
Ambroise Garel
86bb698167 Added TUM.wingmen.getContactsAsReportString function 2025-07-25 15:51:29 +02:00
Ambroise Garel
99582fee91 Split TUM.supportWingmen into TUM.wingmen, TUM.wingmenMenu and TUM.wingmenTasking 2025-07-25 15:24:04 +02:00
Ambroise Garel
ddd1332454 Now removes AI aircraft on landing 2025-07-25 13:05:53 +02:00
Ambroise Garel
cfcb772c17 Added TUM.mizCleaner table 2025-07-25 12:20:47 +02:00
Ambroise Garel
05812ba4e4 Added wingmen spontaneous contact reports 2025-07-25 11:55:01 +02:00
Ambroise Garel
baa8d9160d Corrected typo in comment 2025-07-23 21:06:55 +02:00
Ambroise Garel
edb28205cd Initial commit 2025-07-22 10:22:50 +02:00