287 Commits

Author SHA1 Message Date
Pax1601
3eef91fb24 Add cargo weight and draw argument support
Introduces cargo weight and draw argument properties to units across backend, frontend, and Python API. Adds related commands, data extraction, and registration logic, enabling setting and reading of cargo weight and custom draw arguments for units. Includes new API examples and updates to interfaces, data types, and Lua backend for full feature integration.
2025-09-11 21:47:11 +02:00
Pax1601
4e6701ff01 Refactor API callbacks and improve example scripts
Moved register_on_update_callback in api.py for better code organization. Fixed initialization of units_to_delete and corrected simulate_fire_fight usage in example_disembarked_infantry.py. In example_voice_control.py, added cleanup of generated audio files and fixed callback parameter naming for clarity.
2025-08-08 13:14:59 +02:00
Pax1601
5fa1a26843 Add async callbacks and Kronos integration to API
Introduces async callback support for command execution in spawn methods, adds registration/unregistration for update and startup callbacks, and improves logging and signal handling. Adds a new Kronos module and main entry point for initializing and running the API with Kronos integration. Refactors example scripts and updates VSCode launch configurations for new entry points.
2025-08-08 11:06:53 +02:00
Pax1601
716b0dc48d Refactor unit command methods to use LatLng objects
Updated multiple methods in Unit to accept a LatLng object instead of separate lat/lng floats, improving type safety and consistency. Also made minor improvements and clarifications in the example_disembarked_infantry.py script, and added execution result handling in OlympusCommand.lua for spawned units.
2025-08-08 10:17:46 +02:00
Pax1601
c66c9242b3 Refactor Python API structure and enhance backend command handling
Major refactor of the Python API: moved modules into subdirectories, replaced app.py with api.py, and added new audio and utility modules. Backend C++ code now tracks command execution results, exposes them via the API, and improves command result handling. Also includes updates to the SRS audio handler, random string generation, and VSCode launch configurations.
2025-08-07 17:01:30 +02:00
Pax1601
4bcb5936b4 feat: Add initial API implementation and databases
Introduces a new Python API module with supporting scripts for data extraction, data types, unit management, and utility functions. Adds JSON databases for aircraft, helicopters, ground units, navy units, and mods, as well as configuration and VSCode launch settings. This provides the foundation for interacting with and managing units, spawning, and logging within the application.
2025-08-05 17:26:24 +02:00
MarcoJayUsai
5237dc688a refactor: adding back country, group id and original unit id to the unit data for future uses 2025-04-28 16:14:07 +02:00
MarcoJayUsai
228bb7767e fix(navpoints): added missing navpoint tag information from lua 2025-04-08 22:50:11 +02:00
MarcoJayUsai
43284c46db refactor(map): unit category quick filter now will reset view by ctrl clicking a shown category
Also added the ability to parse drawings sublayer by reading a tag prefixed to drawing name (e.g. [TAGNAME] DrawingName)
2025-03-31 15:05:23 +02:00
Pax1601
1248ffb60b feat: added airborne variable 2025-03-31 08:14:17 +02:00
Pax1601
70b6143fd9 Merge branch 'release-candidate' into features/redgreen-unit 2025-03-24 23:02:04 +01:00
MarcoJayUsai
1622d663bb feat(alarm state): refactor to separe alarm state from radar state. Kown issue: alarm state is not correctly mantained 2025-03-24 18:42:04 +01:00
Pax1601
c66086d64f fix: missing else in mod units code 2025-03-23 16:06:38 +01:00
Pax1601
2fd8752050 feat: better handling of mods payloads 2025-03-22 19:03:02 +01:00
MarcoJayUsai
b7bf89ce2f chore: removed useless code 2025-03-22 09:15:48 +01:00
MarcoJayUsai
3a44608e2b Merge remote-tracking branch 'origin/release-candidate' into features/redgreen-unit 2025-03-21 16:47:47 +01:00
MarcoJayUsai
f1fcabe7f7 feat(alarm state): alarm state command is now working in DCS 2025-03-21 16:21:35 +01:00
MarcoJayUsai
18960ca51e feat(radar state): radar state is now being read from DCS and displayed as a dot (subject to change) 2025-03-19 14:36:40 +01:00
MarcoJayUsai
ee15106be1 feat(radar state): initial scaffolding 2025-03-18 14:42:46 +01:00
Pax1601
dd2856a993 fix: Laser and infrared correctly removed 2025-03-18 10:58:35 +01:00
Davide Passoni
f0826bbdba fix: Fixed multiple errors in scenic AAA modes 2025-03-14 16:45:46 +01:00
MarcoJayUsai
6e7b5b1cc3 feat(navpoints): added navpoint sublayers 2025-03-07 12:36:10 +01:00
MarcoJayUsai
8e20499b92 feat(drawings): added navpoints 2025-03-07 12:00:43 +01:00
Davide Passoni
b2477112b1 Completed first iteration of drawings management on v2 2025-02-26 09:39:30 +01:00
Davide Passoni
9525982161 feat: added laser code change, target move, and delete
Note: deleted lasers are not removed from table and keep being drawn. Also added a cooler looking server page
2025-01-30 16:20:31 +01:00
Davide Passoni
cc902aec04 feat: started adding editable laser/infrared 2025-01-29 17:25:09 +01:00
Davide Passoni
74e2332b17 fix: fixed error in credentials management 2025-01-29 11:13:55 +01:00
Pax1601
5a4a202805 feat: started implementing infrared and laser 2025-01-29 08:03:32 +01:00
Davide Passoni
96415fd087 Feat: added backend ability to set spawn heading 2025-01-24 15:01:25 +01:00
Davide Passoni
e9896963ca Merge branch 'v2' into 961-hotkeys-get-stuck 2024-12-11 14:38:38 +01:00
Pax1601
17c71eb4ed Updated database with Chinook 2024-11-16 11:16:52 +01:00
MarcoJayUsai
5cd566c7ca feat(map): added an option to show human controlled unit original callsign 2024-11-11 12:19:05 +01:00
Pax1601
4946807d88 Switched to using constants for colors 2024-10-20 17:01:28 +02:00
Davide Passoni
c0b43c916e Fixed minor errors in build scripts 2024-07-25 12:35:17 +02:00
Davide Passoni
03de0f9175 Updated build scripts for react website 2024-07-25 10:41:56 +02:00
Davide Passoni
aa7db94750 Merge branch 'v2' into 912-implement-build-scripts-for-reactvite 2024-07-25 10:27:35 +02:00
Davide Passoni
287f634f74 Merge branch 'release-candidate' into v2 2024-07-25 09:14:00 +02:00
Pax1601
854bef15e0 Update OlympusCameraControl.lua 2024-07-23 18:31:48 +02:00
Pax1601
274c16851e Minor update to export scripts and added Kiowa 2024-07-18 10:57:41 +02:00
Pax1601
959b083a60 Added auto installation of VS Redists 2024-07-17 16:49:21 +02:00
Davide Passoni
fb96926d1e Merge branch 'release-candidate' into v2 2024-06-27 11:41:52 +02:00
Pax1601
d7c278b034 Minor bugfix in map creator scripts 2024-06-11 17:55:44 +02:00
Davide Passoni
b089a8cfd8 Merge branch 'react-transition-test' into v2 2024-06-07 11:46:40 +02:00
Pax1601
aa0cca67a1 Added HB F-4 to databases 2024-05-29 16:05:57 +02:00
Pax1601
c477dcd065 Updated python scripts 2024-05-29 15:49:37 +02:00
Pax1601
6db4455d5a Tony's update to unit databases 2024-05-29 09:20:37 +02:00
Pax1601
52833cadee Added configuraiton files for caucasus 2024-05-26 19:27:52 +02:00
Davide Passoni
6a45bc9e79 Added configuration files for syria and caucasus 2024-05-26 19:15:41 +02:00
Pax1601
88d17d1cb3 Merge branch 'release-candidate' of https://github.com/Pax1601/DCSOlympus into release-candidate 2024-05-23 20:21:12 +02:00
Pax1601
8c27fdb53c Improvements in map generator script 2024-05-23 20:21:09 +02:00