Michał Zaremba
61e41b1243
Fix whitespaces
2026-05-17 14:56:55 +02:00
Michał Zaremba
03b096fbea
Move reading settings out of the loop
2026-05-17 14:56:55 +02:00
Michał Zaremba
b54a18a031
Clear stale special action before assigning battle node action
...
Battle nodes may be reused or updated without receiving a new special action
from the destination node. Reset specialAction first so stale actions from a
previous node state are not accidentally preserved.
This keeps generated battle paths from executing unrelated special actions.
2026-05-17 14:56:55 +02:00
Michał Zaremba
4f78f67d8f
Check path target instead of start for remaining turns
2026-05-17 14:56:55 +02:00
Michał Zaremba
98699825d9
Fix case when hero is already on target tile after special action execution
2026-05-17 14:55:12 +02:00
Michał Zaremba
98a03b2e25
Use overloaded howManyReinforcementsCanGet so terrainID for destination tile matters
2026-05-11 22:36:25 +02:00
Ivan Savenko
ea45786ff2
[1.8.0] Mapeditor android ( #7176 )
...
* initial mapeditor fupport for android
* correct scaling
* file dialog; offset fix (mouse, pen)
* fixes
* translation fix
* translation & compile fix
* fix
* cleanup
* cleanup
* cleanup
* code review
* fix
* remaining fix for conflict
* code review
* unify file access
* code review
* code review
* fix translator (merge conflict)
* fix
* fix
* fix lua stuff on android
* revert file stuff
2026-05-08 23:07:17 +03:00
Laserlicht
744ef8c735
revert file stuff
2026-05-05 02:21:38 +02:00
Laserlicht
90878d6111
fix lua stuff on android
2026-05-05 02:05:59 +02:00
Laserlicht
a48237ce19
fix
2026-05-05 01:43:38 +02:00
Laserlicht
24601ec93f
fix
2026-05-05 01:36:49 +02:00
Laserlicht
d21c6ad67e
Merge branch 'mepeditor_android' of https://github.com/Laserlicht/vcmi into mepeditor_android
2026-05-05 01:20:11 +02:00
Laserlicht
2773c32acb
fix translator (merge conflict)
2026-05-05 01:18:47 +02:00
Laserlicht
17c7c62104
Merge branch 'develop' into mepeditor_android
2026-05-05 00:47:39 +02:00
Laserlicht
5f7fa0738c
code review
2026-05-05 00:43:40 +02:00
Laserlicht
ea066d9428
code review
2026-05-05 00:43:29 +02:00
Ivan Savenko
2f1a384be8
Merge pull request #6874 from IvanSavenko/scripting
...
[1.8] Lua scripting support
2026-05-01 09:41:50 +03:00
Ivan Savenko
991b8c90f0
Fix CI
2026-04-30 18:35:48 +03:00
Ivan Savenko
46ac8f642f
Fix possible unchecked nullptr dereference
2026-04-30 18:00:56 +03:00
Ivan Savenko
bc736d8f7a
Fix msvc build
2026-04-30 18:00:56 +03:00
Ivan Savenko
186a57c1ff
Fix non-jut Lua compatibility
2026-04-30 18:00:56 +03:00
Ivan Savenko
07eee98dd3
Fix build
2026-04-30 18:00:56 +03:00
Ivan Savenko
152a79c3e3
Fix markdown formatting
2026-04-30 18:00:56 +03:00
Ivan Savenko
af1db8ff19
Fix sonar, remove no longer used code
2026-04-30 18:00:56 +03:00
Ivan Savenko
6c39711efb
Fix markdown formatting
2026-04-30 18:00:56 +03:00
Ivan Savenko
fa386bf089
Cleanup code, update docs, fix build
2026-04-30 18:00:55 +03:00
Ivan Savenko
2baa0fb8a2
Fixed remaining test failures
2026-04-30 18:00:50 +03:00
Ivan Savenko
308e4cf55b
Drop disabled tests - too many changes to restore them
2026-04-30 18:00:49 +03:00
Ivan Savenko
14c98e2298
Added very WIP Lua docs
2026-04-30 18:00:38 +03:00
Ivan Savenko
d556dd1590
All but 4 summon effect test now pass
...
- Added logging support for Lua
- Added exporting of enums to Lua
- Added few more missing pieces to support summon spell effect
2026-04-30 18:00:38 +03:00
Ivan Savenko
6ad93dd3eb
Reworked Lua API type safety
...
- pushing type that is derived from type registered in Lua will now
correctly push type known to Lua
- Methods of types stored on stack as shared pointers now actually load
this as shared pointer
- It is now possible to return types other than Json from Lua function
2026-04-30 18:00:38 +03:00
Ivan Savenko
1ed8eea7cc
Lua Summon effect partially works
2026-04-30 18:00:38 +03:00
Ivan Savenko
18fe3676ad
Implemented missing methods for Summon spell effect in Lua
2026-04-30 18:00:38 +03:00
Ivan Savenko
7c31d4907c
Add create/update/remove unit API for Lua
2026-04-30 18:00:38 +03:00
Ivan Savenko
d4ed8964fb
More progress with Lua API.
...
Now test script generally works, but has some not implemented callbacks
2026-04-30 18:00:38 +03:00
Ivan Savenko
32630a95b3
Implement resolving string -> entity for Lua
2026-04-30 18:00:38 +03:00
Ivan Savenko
12d9fdceeb
Remove updateUnit method, rename setUnitState to updateUnit
2026-04-30 18:00:38 +03:00
Ivan Savenko
5147053a39
Unit::save now returns value instead of passing it as parameter
2026-04-30 18:00:38 +03:00
Ivan Savenko
a2dacb5784
BattleCallback can now be used by scripts
2026-04-30 18:00:38 +03:00
Ivan Savenko
6462f89239
Implemented passing non-json types into Lua
2026-04-30 18:00:38 +03:00
Ivan Savenko
cee4452e6a
Pass all required fields as parameters to spell effect
2026-04-30 18:00:38 +03:00
Ivan Savenko
aff8f52432
Fix using Lua if LuaJIT is not available, fix build
2026-04-30 18:00:38 +03:00
Ivan Savenko
f2076069b7
Moved all Lua-related code into lua module, instead of weird split
...
between library and lua module
2026-04-30 18:00:37 +03:00
Ivan Savenko
7dd681b2d5
Move lua library from scripting/lua to luascript
2026-04-30 18:00:30 +03:00
Ivan Savenko
826db7e548
Lua refactoring part 1
...
- Scripting module and lua dependency are now required.
- Script context pool now only exists in gamestate
- removed unused pools from client and server
- scripts are now registered in pools on start instead of lazy
registering with caching
2026-04-30 18:00:30 +03:00
Ivan Savenko
1a3b8c7f01
Reorganize & move scripting classes to lib/scripting directory
2026-04-30 18:00:29 +03:00
Ivan Savenko
de98e6c39c
First attempt at using Lua for actual spell effect
2026-04-30 17:45:10 +03:00
Ivan Savenko
24e8c26ec7
Remove unfinished ERM scripting module
2026-04-30 17:45:02 +03:00
Ivan Savenko
03d7d15348
Merge pull request #7283 from IvanSavenko/sonar
...
[1.8] Fix new Sonar warnings
2026-04-30 17:42:14 +03:00
George King
154381518d
[1.8.0] Show all mod names during downloading multiple mods ( #7228 )
...
* Update cdownloadmanager_moc.h
* Update cdownloadmanager_moc.cpp
* Update cmodlistview_moc.cpp
* Update cmodlistview_moc.h
* Update cmodlistview_moc.h
* Implement code advices
* Fix bad file upload
* Revert changes
* Update cdownloadmanager_moc.h
* Turn multi downloads to real queue
2026-04-30 17:40:03 +03:00