Commit Graph
37 Commits
Author SHA1 Message Date
Simeon Manolov 3aea57024f fix masks for moats 2026-03-24 12:32:33 +02:00
Simeon Manolov 93f874d2b1 [MMAI] ignore BattleStacksAttacked when no such stack exists 2026-01-23 22:42:28 +02:00
Simeon Manolov 25bfab8aa8 Fix MMAI action mask bug 2026-01-07 17:31:08 +02:00
Simeon Manolov 2bdbcf0250 run clang-tidy 2026-01-07 17:28:22 +02:00
Simeon Manolov 8dae53dd94 Fix temperature-based sampling in MMAI 2026-01-07 16:51:47 +02:00
Simeon Manolov 7b5fbc162d Make cloned units more valuable 2026-01-06 02:29:29 +02:00
Simeon Manolov 19b413c523 Handle RETREAT action returned by the model as invalid
This can only happen if the model is in a corrupted state and returns
garbled outputs
2026-01-06 02:00:40 +02:00
Simeon Manolov 20b6f93ac0 Fix UB in MMAI model causing invalid action errors 2026-01-06 01:04:12 +02:00
Simeon Manolov 95286cde44 address sonarcloud suggestions 2025-12-26 05:39:28 +02:00
Simeon Manolov 16eda69f48 use dynamic input shapes
1. prevents errors on crowded battlefields (e.g. more than 20 stacks per hero)
2. improves compute efficiency (no more input padding)

To make use of the dynamic shapes, a new set of MMAI models is needed
(the new models will be released via an update through the mmai mod)

This code change is designed to be backward-compatible, so if we have:
- new VCMI + new mod: the dynamic and more efficient models will be used
- new VCMI + old mod: non-dynamic (less efficient) models will be used
- old VCMI + new mod: same as above
- old VCMI + old mod: same as above
2025-12-26 05:13:19 +02:00
Simeon Manolov f52c35c84d Ensure fallback triggers on any MMAI error; remove risky Render() 2025-12-25 12:13:09 +02:00
Simeon Manolov fe4b77f16e Temporarily disable temperature
This is a workaround to an issue where a non-greedy primary action
leads to incorrectly sampled sub-actions
2025-12-16 04:28:02 +02:00
Simeon Manolov 9d6ec17f48 MMAI: an ML-powered combat AI 2025-12-15 02:50:32 +02:00
Simeon Manolov 91101d26fa Remove std::vector inheritance 2025-10-05 10:34:06 +03:00
Simeon Manolov cbac4d7ea7 fix error during ios build
`onetbb/2021.10.0` adds a transitive dependency for `hwloc/2.9.1`

The problem is that `hwloc` does not support mobile OS.

```
checking which OS support to include... Unsupported! (aarch64-apple-ios)
configure: WARNING: ***********************************************************
configure: WARNING: *** hwloc does not support this system.
configure: WARNING: *** hwloc will *attempt* to build (but it may not work).
configure: WARNING: *** hwloc run-time results may be reduced to showing just one processor,
configure: WARNING: *** and binding will not be supported.
configure: WARNING: *** You have been warned.
configure: WARNING: *** Pausing to give you time to read this message...
configure: WARNING: ***********************************************************
checking which CPU support to include... unknown
```

...which eventually leads to:

```
ninja: error: '/Users/simo/.conan/data/hwloc/2.9.3/_/_/package/81c684be1f19b5b5aefe294dd826377be1235f07/lib/libhwloc.so', needed by 'appleclang_15.0_cxx17_64_release/libtbbbind_2_5.3.12.dylib', missing and no known rule to make it
onetbb/2021.12.0:
onetbb/2021.12.0: ERROR: Package '9fcc0a90f088a5fd6ea9bf93b3534713b5635296' build failed
```
2024-09-15 17:37:11 +03:00
Simeon Manolov e502853227 address code review comments 2024-08-31 18:14:05 +03:00
Simeon Manolov 20ccc92e6d move shutdown functions in EntryPoint 2024-08-27 13:12:55 +03:00
Simeon Manolov e9131538dd Merge branch 'develop' into split-client+develop 2024-08-27 03:05:07 +03:00
Simeon Manolov d05adfc5d5 Merge branch 'develop' into split-client+develop 2024-08-21 17:40:37 +03:00
Simeon Manolov 5a7dc7b552 Merge branch 'develop' into split-client+develop 2024-08-21 17:39:44 +03:00
Simeon Manolov f500139f8d re-enable github jobs 2024-08-21 17:38:19 +03:00
Simeon Manolov da6bd38a1c fix typo 2024-08-21 17:21:36 +03:00
Simeon Manolov 81c3151c2c TEMP remove unneeded git runs 2024-08-21 16:19:45 +03:00
Simeon Manolov 530c1f2bc1 [SPLIT-CLIENT+DEVELOP] android fix attempt 2024-08-21 16:07:30 +03:00
Simeon Manolov 90931cc3e3 android deploy fix attempt 2024-08-19 13:17:38 +03:00
Simeon Manolov be58f61c35 fix indentation 2024-08-15 10:19:20 +03:00
Simeon Manolov 9b655ac43e ios fix attempt 2024-08-15 00:27:18 +03:00
Simeon Manolov 6767f90066 move ios/ folder 2024-08-14 19:55:22 +03:00
Simeon Manolov bc162f514e fix invalid file ref 2024-08-14 19:41:44 +03:00
Simeon Manolov f2cddaa21b Split vcmiclient in two
Similar to vcmiserver (app) and vcmiservercommon (lib), now
there is vcmiclient (app) and vcmiclientcommon (lib).
2024-08-14 19:20:01 +03:00
Simeon Manolov d997d18438 remove debug line 2024-07-12 15:41:07 +03:00
Simeon Manolov 4be7adbf0a add missing include 2024-07-12 15:26:31 +03:00
Simeon Manolov 5b6bc10131 Code review 2024-07-12 14:54:28 +03:00
Simeon Manolov 941cd6768f Fix battle turn order for current turn 2024-07-12 11:39:57 +03:00
Simeon Manolov 9d73b50979 Bind server to a randomly assigned port 2024-07-12 01:06:36 +03:00
Simeon Manolov 601840eb5f address code review comments 2024-07-08 00:02:01 +03:00
Simeon Manolov 41a19bcdf3 Add TBB in conanfile and CMakeLists 2024-07-03 14:17:11 +03:00