1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 13:20:35 +00:00

898 Commits

Author SHA1 Message Date
Mehdi Yousfi-Monod
ffedd62ea1 Lua: Allow creating arrows and bolt records (#8300) 2025-01-12 18:00:19 +01:00
AnyOldName3
25c19d584f Merge branch 'effectlighting' into 'master'
Apply white ambient lighting to free magic VFX

See merge request OpenMW/openmw!4496
2025-01-05 01:22:28 +00:00
Alexei Kotov
96a05cc72f Merge branch 'fix_vfs_lines_crash' into 'master'
Fix Lua vfs :lines() crash

See merge request OpenMW/openmw!4488
2025-01-03 14:21:59 +00:00
Evil Eye
c9ffd978ec Hoist the FileHandle check and add more tests 2025-01-02 15:55:19 +01:00
Alexei Kotov
d0918ed1f2 Apply ambient lighting to free magic VFX 2024-12-31 17:37:30 +03:00
Sebastian Fieber
5cb6da4b02 add overwriteLighting a toggle option for addVfx 2024-12-31 01:57:09 +00:00
uramer
6d8753e5a8 Fix crash if someone evil calls the .lines method on a non-file 2024-12-21 16:49:11 +01:00
uramer
5f745f4074 Reference the FileHandle Lua object from lines closure tro prevent garbage collection 2024-12-21 16:43:21 +01:00
Alexei Kotov
81f2402e66 Lua: Expose capacity for creatures as well 2024-12-15 03:20:34 +03:00
uramer
1675c74036 Fix findPath returning a raw vector 2024-12-02 21:22:29 +01:00
elsid
22817dd6a1
Use normalized path for correctMeshPath 2024-11-16 12:49:11 +01:00
Evil Eye
6572122acc Use the right deserializer for unloaded scripts 2024-11-09 13:05:39 +01:00
Evil Eye
a8710b7b42 Don't modify base records from Lua 2024-10-25 16:35:23 +02:00
psi29a
cdf7bd74d5 Merge branch 'passivestorage' into 'master'
Activate global storage when setting up the player

See merge request OpenMW/openmw!4413
2024-10-21 11:01:26 +00:00
psi29a
941a6dcf89 Merge branch 'crime-interface' into 'master'
add OFFENSE_TYPE and commitCrime to lua

Closes #8109

See merge request OpenMW/openmw!4319
2024-10-20 09:37:27 +00:00
Calandiel Elende
9248e37156 add OFFENSE_TYPE and commitCrime to lua 2024-10-20 09:37:27 +00:00
Evil Eye
cee373aea8 Don't trigger onStateChanged until the game is in a running state 2024-10-20 10:50:18 +02:00
Evil Eye
a2fb575678 Set SavedDataDeserializer on LocalScripts creation 2024-10-18 18:25:43 +02:00
Evil Eye
68ebefc2dd Fix Lua memory usage 2024-10-15 21:18:13 +00:00
Evil Eye
481e63ffa7 Prevent stale pointers in UI widgets 2024-09-29 22:36:31 +02:00
Evil Eye
772a0b3711 Merge branch 'vfs_normalized_path_14' into 'master'
Use normalized path in multiple places (#8138)

See merge request OpenMW/openmw!4383
2024-09-22 16:38:55 +00:00
elsid
3475a166e5
Use normalized path for World::spawnEffect 2024-09-19 00:31:16 +02:00
Evil Eye
d9c16328dd Deselect magic item before selecting a spell 2024-09-17 21:16:41 +02:00
elsid
b4f77e8bd7
Store Lua script path as VFS normalized 2024-09-15 13:53:20 +02:00
Evil Eye
2978b32f51 Fix vfs bindings 2024-09-14 10:10:26 +02:00
Evil Eye
a32e006e1c Remove references to temporaries and this_state in properties 2024-09-06 16:57:36 +02:00
psi29a
1e94f53146 Merge branch 'is_starter_spell' into 'master'
Expose starter spells

See merge request OpenMW/openmw!4352
2024-09-06 07:25:09 +00:00
psi29a
b3677d07fd Merge branch 'pcallallthethings' into 'master'
Wrap all memory allocating Lua functions in protected calls

Closes #8099

See merge request OpenMW/openmw!4336
2024-09-04 07:22:26 +00:00
Mehdi Yousfi-Monod
767d7bfecd fixed indent 2024-09-01 15:36:53 +02:00
Mehdi Yousfi-Monod
cb2a8c74dd FEAT: Expose starter spells 2024-09-01 15:26:58 +02:00
Andrei Kortunov
b620b9b239 Do not make redundant copies 2024-08-30 17:27:40 +04:00
Mads Buvik Sandvei
f7f282fc48 bolt is not a static 2024-08-26 13:28:29 +02:00
Evil Eye
4529af9b7f Fix the tests 2024-08-23 22:40:39 +02:00
Evil Eye
c9783344a0 Wrap all memory allocating Lua functions in protected calls 2024-08-22 22:22:28 +02:00
psi29a
527fa053c5 Merge branch 'actions_patchup' into 'master'
Lua Actions patchup

See merge request OpenMW/openmw!4311
2024-08-18 10:02:03 +00:00
Mads Buvik Sandvei
cd7017e0e4 use string_view 2024-08-12 21:39:29 +02:00
Mads Buvik Sandvei
7f0f2373ea Use sol::optional for optional table instead of function overloading. 2024-08-12 21:24:50 +02:00
Mads Buvik Sandvei
09f6daf155 Rewrite addvfx and spawnvfx to take a model path instead of a static. Mode vfx from core to world. Add event handlers for AddVfx and SpawnVfx. 2024-08-10 14:56:35 +02:00
uramer
ab628ea12a Fix memory safety of actions/triggers iteration 2024-08-08 00:09:08 +02:00
psi29a
488a05d14c Merge branch 'lua-add-is-fleeing' into 'master'
lua - add isFleeing() to AI interface

See merge request OpenMW/openmw!4256
2024-08-01 09:55:50 +00:00
Sebastian Fieber
234476bdae lua - add isFleeing() to lua AI interface 2024-07-31 20:29:33 +02:00
psi29a
30a844ae71 Merge branch 'how-do-you-ambulate' into 'master'
FEAT(types): Expose creature flags

See merge request OpenMW/openmw!4280
2024-07-29 08:07:36 +00:00
Dave Corley
42060be65c FEAT: Add essential and respawning flags for both NPC and Creature types 2024-07-28 17:14:09 -05:00
Dave Corley
ef9d5270a1 FEAT(types): Expose creature flags 2024-07-28 17:14:05 -05:00
elsid
5c92b18875
Avoid using string_view on a temporary 2024-07-28 23:11:15 +02:00
psi29a
fc2f30dc4a Merge branch 'anim-api-cleanup' into 'master'
Anim api cleanup (close #8081)

Closes #8081

See merge request OpenMW/openmw!4274
2024-07-28 09:17:05 +00:00
Anton Uramer
a5d1db2afd Use new Context helpers for UI bindings 2024-07-24 09:28:51 +02:00
Anton Uramer
6851e6e56a Context helpers for caching packages, split up core bindings into multiple caches, remove getRealFrameDuration in global context 2024-07-24 09:28:50 +02:00
Dave Corley
86f33cb6fe CLEANUP(animationbindings): Lowercase all input groupnames 2024-07-23 11:39:06 -05:00
Dave Corley
6eee6e9468 CLEANUP(animationbindings): camelCase all the things 2024-07-23 05:58:32 -05:00