25 Commits

Author SHA1 Message Date
David Pierron
adc9aa110b Merge pull request #129 from ciribob/bugfix/BF-2025.01.04
## Bugfix/BF-2025.01.04
- removed unneeded tracing in ctld.i18n_translate() 
- bug: corrected listNearbyCrates() method not returning anything 
- bug: corrected ctld.dropSlingCrate() method crashing before unloading a crate
- bug: corrected the way we handle dynamic slots; it used to cause random CTDs
2025-01-07 13:47:00 +01:00
David Pierron
9d101faf20 updated the test and demo missions 2025-01-07 13:42:05 +01:00
David Pierron
af7e5c5eb4 bug: corrected the way we handle dynamic slots; it used to cause random CTDs 2025-01-07 13:41:56 +01:00
David Pierron
e6e89e2290 bug: corrected ctld.dropSlingCrate() method crashing before unloading a crate 2025-01-04 22:01:50 +01:00
David Pierron
c84b937e99 bug: corrected listNearbyCrates() method not returning anything 2025-01-04 22:01:19 +01:00
David Pierron
a5eb3b2609 removed unneeded tracing in ctld.i18n_translate() 2025-01-04 22:00:53 +01:00
David Pierron
c615ffb644 Merge pull request #128 from ciribob:bugfix/BF-2025.01.04
v1.2.1 - corrected the behavior of the `ctld.dontInitialize` parameter
2025-01-04 11:28:03 +01:00
David Pierron
2b734e61d2 v1.2.1 - corrected the behavior of the ctld.dontInitialize parameter 2025-01-04 11:26:42 +01:00
David Pierron
c16fb56b5c Merge branch 'FEAT-i18n' into develop 2025-01-03 18:37:01 +01:00
David Pierron
725773ffcd Merge pull request #123 from FullGas1/FEAT-i18n
Update dictionaries + translation F10 menu
2025-01-03 18:34:22 +01:00
David Pierron
55eebb921a Merge pull request #127 from ciribob:FEAT-new-initialization
FEAT-new-initialization
2025-01-03 18:21:32 +01:00
David Pierron
22029da35f Merge branch 'develop' into FEAT-new-initialization 2025-01-03 18:21:20 +01:00
David Pierron
efde6f9507 changed version 2025-01-03 18:17:54 +01:00
David Pierron
5acb8e02db Merge branch 'FEAT-i18n' into develop 2025-01-03 18:16:54 +01:00
David Pierron
b9f0712fdf initialization is now immediate (instead of waiting 2 seconds). Caution: this breaks the way the forward configuration worked before, you'll have to change your code and set ctld.dontInitialize to TRUE in your copy of CTLD. 2025-01-01 18:51:11 +01:00
David Pierron
7f63d017ec Merge pull request #125 from ciribob:FEAT-dynamic-slots
Dynamic slots support
2025-01-01 14:38:22 +01:00
David Pierron
c69314b5f0 - added dynamic slots support in MiST v4.5.128-DYNSLOTS-01 (forked from the official MiST 4.5.128)
- added dynamic slots support in CTLD
- added dyn slots in the test mission
2025-01-01 14:37:45 +01:00
David Pierron
eede0809e3 - reset the non-translated parts (in French and Spanish) to nil for clarity
- renamed the Spanish language using the correct ISO-2 code ("sp" -> "es")
2024-12-29 20:37:43 +01:00
David Pierron
b3acdda651 added documentation 2024-12-29 20:27:09 +01:00
FullGas1
2e7b963b98 Update dictionaries + translation F10 menu 2024-12-29 19:44:30 +01:00
David Pierron
74f706115e i18n: first finished version, letting translators work now 2024-12-29 11:02:45 +01:00
David Pierron
a26c0f6a5d Release 202412.01
**Release 202412.01**

Pulled some code from @atcz, @marcos2221, and @Queton1-1.

Added some features developped internally by the Virtual European Air Force (VEAF) team.

Changelog:
- VEAF: multipart AA Systems / AA crates stacking features
- VEAF: hardened legacy code to make it more resilient (less errors)
- Queton1-1: Allow units to CTLD by aircraft type and not by pilot name
- atcz: Use crate headings to spawn units
- marcos2221: multiple crate capability for mi8 and ch-47
- atcz: added pagination to the radio menus
- atcz: smartly used decimals to facilitate having a lot of units to load in our crates
- atcz: added lots of vehicles to transport
- VEAF: use DCS events to register pilots with CTLD
- VEAF: it's now possible to allow both sling, conventional (DCS, CH-47 only for now) and simulated sling (CTLD) loading at the same time, letting players choose
- VEAF: units capable of conventional loading (CH-47) now have the crates spawned at their 6-o'clock
- moved smoke marker randomly away from the JTAC target
- atcz: updated the soldier type for troops transport
- updated the cargo + troops load report (details the weight)
2024-12-17 17:55:18 +01:00
David Pierron
76a6dca72a updated test mission 2024-12-17 17:54:36 +01:00
David Pierron
55846e3109 hardened the code to avoid a nil value in ctld.setGrpROE 2024-12-17 09:02:41 +01:00
David Pierron
ebf72aaa44 updated test mission 2024-12-10 11:30:48 +01:00
7 changed files with 4083 additions and 1013 deletions

1664
CTLD.lua

File diff suppressed because it is too large Load Diff

View File

@@ -20,6 +20,7 @@ This script is a rewrite of some of the functionality of the original Complete C
* [Setup in Mission Editor](#setup-in-mission-editor)
* [Script Setup](#script-setup)
* [Script Configuration](#script-configuration)
* [Internationalization (multiple languages for text)](#internationalization)
* [Pickup and Dropoff Zones Setup](#pickup-and-dropoff-zones-setup)
* [Waypoint Zones Setup](#waypoint-zones-setup)
* [Transport Unit Setup](#transport-unit-setup)
@@ -301,6 +302,32 @@ Example showing what happens if you dont have enough crates:
**Make sure that after making any changes to the script you remove and re-add the script to the mission. **
### Internationalization
CTLD supports multiple languages (English being the base and the reference).
This is done via the `ctld.i18n` table that can be found at the beginning of the script.
#### Changing the language
You can easily switch the language you want CTLD to display its messages and name its radio menus, by changing the `ctld.i18n_lang` parameter to a supported language.
Supported languages are all listed near the parameter in the code, so it's easy to uncomment the line you wish to use.
Example, to set it to French: `ctld.i18n_lang = "fr"`
#### Adding or editing a translation
Translations are referenced by the english text, and can contain numbered parameters that will be replaced (in the calling code) by values.
This allows for different languages placing words at different places in a sentence.
To add a translation, simply copy the complete `ctld.i18n["en"]` table to a new one, and replace the language (`"en"`) with the one you want to add (`"de"` for example).
Then, replace all the `= nil` statements with the translation; for example, `ctld.i18n["de"]["Standard Group"] = "Standard-Kampfgruppe"`.
Finally, switch the CTLD language to the new one you defined (example: `ctld.i18n_lang = "de"`) and test.
Please share your work with the community, contact Zip [on Github](https://github.com/davidp57) or [on Discord](https://discordapp.com/users/421317390807203850).
### Pickup and Dropoff Zones Setup
Pickup zones are used by transport aircraft and helicopters to load troops and vehicles. A transport unit must be inside of the radius of the trigger and the right side (RED or BLUE or BOTH) in order to load troops and vehicles.

BIN
demo-mission.miz Normal file

Binary file not shown.

3405
mist.lua

File diff suppressed because it is too large Load Diff

BIN
test-dev-dynamic.miz Normal file

Binary file not shown.

BIN
test-dev-static.miz Normal file

Binary file not shown.

Binary file not shown.