Commit Graph

25861 Commits (5aaac8e47e90891c3868e88978becf4ff991fe14)
 

Author SHA1 Message Date
jvoisin 5aaac8e47e Reduce a bit the size of getHT
Factoring common code parts outside of a template
is apparently a good practise to reduce code duplication
(and the size of openmw by around 0.5%),
and should improve a bit the performances,
since the whole `std::to_string` * 2 + string concatenation
dance results in quite a lot of code, preventing inlining on my machine.
4 years ago
psi29a ba3d66503f Merge branch 'ci_tests_debug' into 'master'
Add CI jobs to build tests in debug mode

See merge request OpenMW/openmw!1006
4 years ago
elsid 73639a93b6
Avoid CTAD to fix macOS build
../../../apps/openmw/engine.cpp:706:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
                    ? std::function(ScheduleNonDialogMessageBox {})
                      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::ScheduleNonDialogMessageBox'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined
                                               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate function template not viable: requires 0 arguments, but 1 was provided
../../../apps/openmw/engine.cpp:707:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
                    : std::function(IgnoreString {})
                      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::IgnoreString'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined
                                               ^
4 years ago
elsid e1c525914c
Add CI jobs to build tests in debug mode 4 years ago
elsid 5357c67c3e Merge branch 'fix_6151' into 'master'
Disable special processing of Lua errors in debug builds. Fixes #6151.

Closes #6151

See merge request OpenMW/openmw!1008
4 years ago
Petr Mikheev 84721fb58a Disable special processing of Lua errors in debug builds. Fixes #6151. 4 years ago
psi29a 5688b7b4d8 Merge branch 'FixLODIssueWithObjectPaging' into 'master'
LOD issue with object paging

See merge request OpenMW/openmw!1007
4 years ago
Cédric Mocquillon 269cd31059 Use same world coordinates to compute distances 4 years ago
psi29a 83af0402b8 Merge branch 'fix_sol_build' into 'master'
Add missing include from sol/sol.hpp

See merge request OpenMW/openmw!1003
4 years ago
elsid 36ec877a8e
Add missing include from sol/sol.hpp 4 years ago
psi29a 61f3c528d2 Merge branch 'lua' into 'master'
Lua

Closes #5990

See merge request OpenMW/openmw!430
4 years ago
Petr Mikheev c2280ada1d OpenMW Lua, API_VERSION=0 4 years ago
Petr Mikheev 85c441ec9a Refactoring and minor fixes related to active/inactive object state 4 years ago
Petr Mikheev 43b7e6964a Add function World::isCellActive 4 years ago
Petr Mikheev 702eb19271 Fixes and refactoring 4 years ago
Petr Mikheev 25cc884c17 Integrate Lua doc into sphinx doc (issue #5931) 4 years ago
Petr Mikheev 4eb5841c60 Update OpenMW Lua documentation 4 years ago
Petr Mikheev cc7dbabd19 Change argument of `onKeyPress` 4 years ago
Petr Mikheev b1a6441c23 Add LocalScripts::LocalEngineEvent. Add `OnConsume` engine handler. 4 years ago
Petr Mikheev 1268597676 Make loaded but inactive objects available in Lua scripts. 4 years ago
Petr Mikheev 403d31313c New setting "lua num threads". Thread syncronization is changed from std:🧵:yield to std::condition_variable. 4 years ago
Petr Mikheev a8f76260bc A possibility to view actor controls from lua scripts without disabling AI. 4 years ago
Petr Mikheev 7087eb1a4e Add built-in Lua library 'openmw_aux' that extends OpenMW Lua API 4 years ago
Petr Mikheev c463f52390 Add Cell Lua bindings 4 years ago
Petr Mikheev de349962d1 Engine handlers onActive/onInactive and a function self:isActive() 4 years ago
Petr Mikheev d5cda61855 Console command "reload lua" 4 years ago
Petr Mikheev 9d09ecf8ca Add mwlua/actions 4 years ago
uramer 8facf2952a Documentation for lua package 'openmw.query' 4 years ago
Petr Mikheev 9746800eed Documentation for Lua scripting 4 years ago
Petr Mikheev f5722f9ba0 Inventory bindings 4 years ago
Petr Mikheev bdccf161c4 Add lua package 'openmw.query' 4 years ago
Petr Mikheev 32218f6dd5 More Lua bindings 4 years ago
Petr Mikheev 87b5afb9bf Control active Lua scripts from openmw.cfg 4 years ago
Petr Mikheev 8c6d303730 Saving/loading for Lua scripts (saves format is changed) 4 years ago
Petr Mikheev 914e604e06 Interactions between LuaManager and other parts of OpenMW 4 years ago
Petr Mikheev f2d0a702e9 Add Lua timers 4 years ago
Petr Mikheev 3d7e306064 Add apps/openmw/mwlua 4 years ago
Petr Mikheev 7df500c385 Put RefData move constructor to cpp file 4 years ago
Petr Mikheev 6db2450c90 Initial support of generated RefNums with negative mContentFile. 4 years ago
Petr Mikheev b53667d555 Queries. Data structures and lua bindings. 4 years ago
Petr Mikheev 479856f812 Add components/lua/scriptscontainer and components/esm/luascripts 4 years ago
Petr Mikheev 8dbaf6022c Add components/lua/serilalization 4 years ago
Petr Mikheev 4b068b27ca Add components/lua/luastate and components/lua/utilpackage 4 years ago
Petr Mikheev b432a1a1c1 Add a directory for builtin lua scripts. Dehardcoded game mechanics are supposed to live there. 4 years ago
Petr Mikheev 9a5229a821 Temporary fix for MacOS build. Remove this commit after resolving #5990. 4 years ago
Petr Mikheev 9e168fd9cc Add Lua/LuaJit and sol3 to openmw 4 years ago
psi29a c94339f248 Merge branch 'OpenMW_Bug6067_take3' into 'master'
Make Object Paging to ignore moved references.  (Issue #6139)

See merge request OpenMW/openmw!1001
4 years ago
psi29a d8bed73ada Merge branch 'local_crache' into 'master'
Cache failed compilation when getting locals

Closes #6123

See merge request OpenMW/openmw!988
4 years ago
psi29a c774a68439 Merge branch 'system_benchmark' into 'master'
Support system Google Benchmark

See merge request OpenMW/openmw!1000
4 years ago
psi29a 7f3a4315aa Merge branch 'async_screenshot' into 'master'
Write screenshots to file asynchronously (#6143)

Closes #6143

See merge request OpenMW/openmw!907
4 years ago