1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

886 Commits

Author SHA1 Message Date
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
uramer
80ced23a69 Lua Context: Replace exclusive bools with type enum 2024-07-23 10:39:58 +02:00
psi29a
2c8d657ecb Merge branch 'luaopensesame' into 'master'
Lua door opening api

See merge request OpenMW/openmw!4251
2024-07-15 07:09:44 +00:00
MaxYari
1abe28e797 Lua door opening api 2024-07-15 07:09:44 +00:00
psi29a
cc28396617 Merge branch 'evictthosewindows' into 'master'
Force windows to exit when popping their GUI mode through Lua

Closes #7834

See merge request OpenMW/openmw!4185
2024-07-15 07:07:02 +00:00
Evil Eye
ee653eb2b8 Make mwscript return nil for records that don't have a script 2024-07-07 13:58:34 +02:00
psi29a
061f10bef7 Merge branch 'enchantmentproptorecord' into 'master'
Return nil for absent values in record properties (enchant)

See merge request OpenMW/openmw!4228
2024-07-06 21:33:55 +00:00
Kindi
bf9f5dc2ef dont return empty string for absent value 2024-07-06 00:40:06 +08:00
Kindi
045e6d8c4f move enchant charge and soul to itemdata 2024-07-05 23:33:55 +08:00
psi29a
ef0bb02def Merge branch 'master' into 'master'
An ability to specify attack type in controls.use value

See merge request OpenMW/openmw!4187
2024-07-05 08:12:17 +00:00
psi29a
4da35c7e7f Merge branch 'free_range_containers' into 'master'
FEAT: Add organic/respawning flags to containers (Close #8038)

Closes #8038

See merge request OpenMW/openmw!4205
2024-06-29 09:21:12 +00:00
Dave Corley
77fa41b8c6 CLEANUP(container): Make organic/respawning field names more consistent 2024-06-28 09:26:35 -05:00
Dave Corley
fccf75377d FEAT: Add organic/respawning flags to containers 2024-06-28 09:21:44 -05:00