Mads Buvik Sandvei
36e1bdab10
Use a smaller integer type instead of dealing with casting issues.
2024-01-28 14:48:49 +01:00
Mads Buvik Sandvei
a94add741e
Lua: Animation bindings
2024-01-26 21:39:33 +00:00
elsid
067957f57b
Use "" to quote apps/openmw includes and remove unused
...
Using "" makes clangd to find unused includes which makes it quite easy to
remove them.
2024-01-07 17:57:11 +01:00
Evil Eye
e63933efa6
Use NAM9 for stack count
2023-12-31 17:12:46 +00:00
uramer
0e2e386dc9
Lua actions take 3
2023-12-29 18:56:59 +00:00
elsid
1a39ef07c8
Fix build with Lua 5.4.6
...
/home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp: In member function ‘void MWLua::LuaManager::update()’:
/home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp:127:19: error: use of deleted function ‘Settings::SettingValue<T>::SettingValue(const Settings::SettingValue<T>&) [with T = int]’
127 | lua_gc(mLua.sol(), LUA_GCSTEP, Settings::lua().mGcStepsPerFrame);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/elsid/dev/openmw/components/settings/categories/camera.hpp:5,
from /home/elsid/dev/openmw/components/settings/values.hpp:4,
from /home/elsid/dev/openmw/apps/openmw/mwlua/luamanagerimp.cpp:16:
/home/elsid/dev/openmw/components/settings/settingvalue.hpp:355:9: note: declared here
355 | SettingValue(const SettingValue& other) = delete;
| ^~~~~~~~~~~~
2023-12-08 00:46:15 +01:00
Evil Eye
efb819b9d2
Rename to Died
2023-12-04 17:50:18 +01:00
Evil Eye
ad68b7e18b
Turn onDeath the engine handler into OnDeath the regular event
2023-12-04 17:32:38 +01:00
Petr Mikheev
a60726ce35
Fix #7674
2023-11-05 21:32:18 +01:00
Petr Mikheev
4d66679204
Queue Lua handler uiModeChanged
2023-10-21 13:04:02 +02:00
Petr Mikheev
72b8ff82ff
!3362 with safe reloadlua
2023-09-15 19:10:33 +02:00
Petr Mikheev
892f6d1aee
Make LiveCellRef to remove itself from PtrRegistry in destructor (to prevent potential use after free); Update ContainerStore::mPtr after copying container/actor.
2023-09-09 21:54:13 +02:00
Petr Mikheev
42f2ece8b3
Fix bug: UI modes that are added not through Lua don't show windows that were hidden by Lua in other mode.
2023-09-07 02:16:22 +02:00
Petr Mikheev
f1bcf64afb
Dehardcode input.ACTION.Inventory, input.ACTION.Journal, input.ACTION.QuickKeysMenu
2023-08-20 17:49:56 +02:00
Petr Mikheev
87eacf774a
Control GUI modes from Lua
2023-08-20 17:49:56 +02:00
psi29a
e21e3a0d46
Merge branch 'time' into 'master'
...
Pause/resume the game in Lua scripts
See merge request OpenMW/openmw!3317
2023-08-18 08:22:04 +00:00
Petr Mikheev
efe2dfc056
Minor fix of error message in LuaManager::DealyedAction::apply
2023-08-12 11:08:19 +02:00
Petr Mikheev
87912065fd
Rename MWLua::WorldView -> MWLua::ObjectLists
2023-08-08 22:57:28 +02:00
Petr Mikheev
6c4e1f4e8f
Lua commands world.pause / world.unpause
2023-08-08 22:57:28 +02:00
Petr Mikheev
91c7585c8b
Move some time-related function from World and WorldView to DateTimeManager
2023-08-08 22:57:28 +02:00
psi29a
0c5faf8fbb
Merge branch 'save_apply_lua_actions' into 'master'
...
Apply delayed Lua actions before making a save
See merge request OpenMW/openmw!3294
2023-08-06 16:13:33 +00:00
Petr Mikheev
f344c26465
Apply delayed Lua actions before making a save
2023-07-30 02:50:22 +02:00
elsid
c9c32d9a0d
Cleanup includes
2023-07-29 00:16:43 +02:00
Petr Mikheev
4016e8b383
Lua engine handler onTeleported
2023-07-19 10:42:58 +02:00
Petr Mikheev
086fdb1f37
Run onNewGame handler in LuaManager::synchronizedUpdate
2023-07-19 10:07:30 +02:00
Petr Mikheev
b583aad14a
Fix bug in LuaManager::reloadAllScripts
2023-07-17 02:21:46 +02:00
psi29a
429e911da1
Merge branch 'lua_journal' into 'master'
...
Add Lua bindings for journal (second iteration of !3133 )
See merge request OpenMW/openmw!3189
2023-07-11 07:37:13 +00:00
Tobias Tribble
c792582376
Add Lua bindings for journal
2023-07-08 13:37:39 +02:00
elsid
f6fce5ee15
Cleanup includes
2023-07-08 11:28:56 +02:00
psi29a
6601b0cb15
Merge branch 'fastandloose' into 'master'
...
Drop support for --fs-strict
Closes #7394
See merge request OpenMW/openmw!3093
2023-07-02 19:24:14 +00:00
Petr Mikheev
8ca7770d56
Fix #7439 : world.players and nearby.players returns "0_-1" instead of "1_-1"
2023-06-27 23:56:45 +02:00
Petr Mikheev
9d15629ae2
[Lua] Add nearby.players
and world.players
2023-06-17 19:56:25 +02:00
Petr Mikheev
790ddcf32e
Fix #7420 (Local scripts on items cause the game to crash when activated)
2023-06-12 21:25:48 +02:00
Evil Eye
eeda48ec50
Drop support for --fs-strict
2023-06-08 21:10:09 +02:00
elsid
9012207e32
Make WorldModel a front-end for PtrRegistry
2023-05-31 21:44:27 +02:00
elsid
ce91784085
Move Ptr registry into a separate type
...
There is no dependency on the rest of the WorldModel state.
2023-05-28 13:04:17 +02:00
Petr Mikheev
31eb3e6f5d
Use typed settings storage for Lua settings
2023-04-25 23:51:37 +02:00
Petr Mikheev
003f611bdb
Remove LuaManager::Action
2023-04-25 23:51:37 +02:00
Petr Mikheev
4562b8c06b
Add headers for all .cpp
files in mwlua; move packages initilaization from LuaManager to luabindings.cpp
2023-04-25 23:24:51 +02:00
Petr Mikheev
f1beaa7b8c
Put ESMStore to Environment
2023-04-20 21:45:49 +02:00
psi29a
cace3e6566
Merge branch 'fix_teleporting' into 'master'
...
Fix bugs related to Lua commands `obj:teleport` and `obj:moveInto`
See merge request OpenMW/openmw!2937
2023-04-20 11:28:02 +00:00
Petr Mikheev
75e47f859c
Restore logic that was accidentally removed in !2852 . Because of it onUpdate
handler in local Lua scripts doesn't work.
2023-04-18 23:31:44 +02:00
Petr Mikheev
60a8d08e66
Refactor teleporting in Lua; fix a bug in worldmodel.cpp
2023-04-17 19:07:30 +02:00
Petr Mikheev
8d1e52ed51
Extract engine handlers processing from LuaManager to a new class EngineEvents
2023-03-26 03:38:40 +02:00
Petr Mikheev
7ef759c78b
Refactor mwlua/eventqueue and extract some code out of LuaManager
2023-03-26 03:38:40 +02:00
Petr Mikheev
4fd07cb58d
Implement MWWorld::Class::isItem(ptr) and remove a hacky MWLua::WorldView::isItem.
2023-03-26 03:38:40 +02:00
Petr Mikheev
0b385d5db9
Create MWWorld::SafePtr
2023-03-13 23:44:00 +01:00
Petr Mikheev
71ba7b88e2
Move asyncpackage from apps/openmw/mwlua to components/lua
2023-02-14 20:03:32 +01:00
psi29a
68b3b90255
Merge branch 'ui_content_leak' into 'master'
...
Move implementation of UI Content to Lua (#7155 )
See merge request OpenMW/openmw!2661
2023-02-01 22:51:47 +00:00
uramer
fb0646dda1
Remove Ui Content counter in Lua profiler
2023-01-31 19:52:28 +01:00