Commit Graph

21148 Commits (7cea0344b28125c5afbff74c234d4c942597f552)

Author SHA1 Message Date
Andrei Kortunov ebb75008f8 Do not use playlist for title music 1 year ago
Alexei Kotov 0fe095303f Rename Controller->NiTimeController, update NiTimeController and related code 1 year ago
Alexei Kotov 05d8975ed1 Revise various NIF controller records
Mostly those that don't require external changes
1 year ago
Evil Eye b59739a529 Replace more sized reads 1 year ago
Andrei Kortunov 655c4442bc Implement isMusicPlaying 1 year ago
Bret Curtis a285408212 small coverity fix 1 year ago
Andrei Kortunov cbb4c1bb9a Fix music during a new game start 1 year ago
Andrei Kortunov e25e867d77 Remove 'music' package 1 year ago
Andrei Kortunov 18fe6a8ae7 Remove default argument 1 year ago
Andrei Kortunov e1cae5a029 Rework music system 1 year ago
psi29a 090da90302 Merge branch 'factions' into 'master'
Implement Lua API for factions

See merge request OpenMW/openmw!3405
1 year ago
psi29a 42b77342c5 Merge branch 'nif' into 'master'
Modernize NIF loader, part 3

See merge request OpenMW/openmw!3418
1 year ago
Andrei Kortunov 02dcf1fb31 Split setFactionRank to separate functions 1 year ago
Andrei Kortunov 6ee86dea82 Implement Lua API for factions (feature 7468) 1 year ago
Petr Mikheev fb8ccf52d8 Add missing argument `force` in UseItem 1 year ago
psi29a 9d186ee2cd
Merge branch 'ptrindex' into 'master'
Fix crash: PtrRegistry can contain pointers to already removed temporary ManualRefs

See merge request OpenMW/openmw!3411
1 year ago
psi29a d87db1dc5f
Merge branch 'drainfatigue' into 'master'
Uncap Drain Fatigue again (bug #7573)

Closes #7573

See merge request OpenMW/openmw!3414
1 year ago
psi29a 39a209cb78
Merge branch 'settings_values_models' into 'master'
Use settings values for Models settings (#6876)

See merge request OpenMW/openmw!3413
1 year ago
psi29a 9d3eb1a901
Merge branch 'fix_crash' into 'master'
Fix crash on accessing cells settings from non engine binaries

Closes #7572

See merge request OpenMW/openmw!3415
1 year ago
psi29a 4deb012edf
Merge branch 'centeroncell' into 'master'
Reset the rotation for ESM3 door-based COC destinations again (#7471)

Closes #7471

See merge request OpenMW/openmw!3416
1 year ago
Alexei Kotov a7cc4e6ba6 Rename Node->NiAVObject and update everything directly related
Update NiNode
Simplify RootCollisionNode handling in BulletNifLoader
1 year ago
Alexei Kotov 6872c7144e Rename Transformation->NiTransform and update everything directly related 1 year ago
Alexei Kotov ef896faa90 Rename Named->NiObjectNET and update everything directly related to it
BulletNifLoader: properly check if the node has animation controllers
Flatten extra data linked list
1 year ago
psi29a 9791fae2db
Merge branch 'statrecords' into 'master'
Expose skill and attribute records to Lua and deprecate their enums

See merge request OpenMW/openmw!3407
1 year ago
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. 1 year ago
Alexei Kotov 0f2e5f9db6 Uncap Drain effects again (bug #7573) 1 year ago
Alexei Kotov 817078cbea Reset the rotation for ESM3 door-based COC destinations again 1 year ago
elsid 053a3caf7b
Pass cache expiry delay to GenericResourceManager constructor 1 year ago
elsid ad509bb954
Use settings values for Models settings 1 year ago
psi29a bcc3365766
Merge branch 'fix_hidden_window' into 'master'
Fix bug related to !3236

See merge request OpenMW/openmw!3406
1 year ago
psi29a 0a47e927d5
Merge branch 'nif' into 'master'
Modernize NIF loader, part 2

See merge request OpenMW/openmw!3404
1 year ago
psi29a 45a211c098
Merge branch 'lua_nil' into 'master'
Return nil when we try to use an invalid store index from Lua

Closes #7550

See merge request OpenMW/openmw!3410
1 year ago
psi29a cadb166b58
Merge branch 'companion_creatures' into 'master'
Allow creatures to be companions again

See merge request OpenMW/openmw!3409
1 year ago
Andrei Kortunov 5d211d3c93 Return nil when we try to use an invalid store index from Lua 1 year ago
Andrei Kortunov 7c5caec443 Allow creatures to be companions again 1 year ago
Evil Eye cd0e612cb7 Expose skill and attribute records to Lua and deprecate their enums 1 year ago
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. 1 year ago
Alexei Kotov 89774716fb Modernize NiGeometryData 1 year ago
Alexei Kotov cfd37dbcc6 Modernize NiTriShapeData 1 year ago
Alexei Kotov eba0ab444b Modernize NiTriStripsData 1 year ago
Alexei Kotov 5b07a78f2c Modernize skin instance records 1 year ago
psi29a 30f4cd972d
Merge branch 'unbind_control' into 'master'
Ability to unbind controls in settings menu

See merge request OpenMW/openmw!3393
1 year ago
psi29a 938c487684
Merge branch 'time' into 'master'
[Lua] Ability to unpause the game when UI is opened.

See merge request OpenMW/openmw!3398
1 year ago
psi29a df31f947c6
Merge branch 'searchyourfeelingsyouknowittobetrue' into 'master'
Replace find with search

Closes #7566

See merge request OpenMW/openmw!3403
1 year ago
psi29a 5a0a04684a
Merge branch 'nocliffracerschooling' into 'master'
Editor: Remove Training service for creatures

See merge request OpenMW/openmw!3396
1 year ago
Petr Mikheev 0836680e36 Ability to unbind controls in settings menu 1 year ago
Evil Eye 6cec92223e Replace find with search 1 year ago
psi29a 690a237896
Merge branch 'init_field' into 'master'
Init structs to make sure that we do not store a random data

See merge request OpenMW/openmw!3400
1 year ago
Zackhasacat f287b2f436 Merge branch 'master' of gitlab.com:openmw/openmw into lua_record_services 1 year ago
Zackhasacat 7df43f28ed Remove unused include 1 year ago
psi29a 1a4b29f014
Merge branch 'fix_terrain_cache' into 'master'
Terrain cache fixes and optimizations

Closes #7557

See merge request OpenMW/openmw!3388
1 year ago
Andrei Kortunov 5d51f3ea26 Init structs to make sure that we do not store a random data 1 year ago
psi29a 5faf56950b
Merge branch 'lua_files' into 'master'
Implement Lua API for VFS

Closes #6864

See merge request OpenMW/openmw!3373
1 year ago
Zackhasacat 208cd14cfe Use lua table, getESMStore 1 year ago
psi29a ccc465db27
Merge branch 'nif' into 'master'
Modernize NIF loader, part 1

See merge request OpenMW/openmw!3394
1 year ago
psi29a b79c40c11c
Merge branch 'more_coverity' into 'master'
More Coverity fixes

See merge request OpenMW/openmw!3391
1 year ago
Petr Mikheev 65cd518b44 Update camera logic related to paused game / opened UI 1 year ago
Petr Mikheev 23a7661d0b Control UI pause from Lua 1 year ago
Zackhasacat ecc69b5479 Fix line 1 year ago
Zackhasacat 1db236b5fd Fix docs, dependancies 1 year ago
Zackhasacat ee5983f64a Docs fixes 1 year ago
Zackhasacat 6c6885c394 Formatting 1 year ago
Zackhasacat 070c600a83 Formatting 1 year ago
Zackhasacat e139135fdc Revert unneeded changes 1 year ago
Zackhasacat 40925fa912 Add line 1 year ago
Zackhasacat bbe7702dbc Use string_view 1 year ago
Zackhasacat 7d0e140889 Merge branch 'master' of gitlab.com:openmw/openmw into lua_record_services 1 year ago
Zackhasacat e50532691b Fix define endif 1 year ago
Zackhasacat 9c4ffa8256 Map by service name 1 year ago
Zackhasacat 44303ed8ca Move services to new HPP 1 year ago
psi29a b818414d82
Merge branch 'activate_and_use' into 'master'
Handle Use action in Lua in a similar way to Activate action

See merge request OpenMW/openmw!3354
1 year ago
Alexei Kotov 16cc1ad59f Editor: Disable Training service for creatures 1 year ago
Andrei Kortunov 65109b3822 Simplify VFS index iteration 1 year ago
Andrei Kortunov c04a0ca3a5 Implement Lua API for VFS 1 year ago
Zackhasacat 85d47dd715 Add return value 1 year ago
Zackhasacat aba63c0145 Shorten, move to the correct place 1 year ago
Zackhasacat 9f80d68795 add servicesOffered to npc and creature records 1 year ago
psi29a a1828eec29
Merge branch 'lua_spell_fix' into 'master'
Clear selected enchanted item and/or spell with actor.clearSelectedCastable()

See merge request OpenMW/openmw!3315
1 year ago
Zackhasacat 7113db8b97
Clear selected enchanted item and/or spell with actor.clearSelectedCastable() 1 year ago
Andrei Kortunov 7da8f388f5 More Coverity fixes 1 year ago
psi29a 3e99103beb
Merge branch 'rtd' into 'master'
Show OpenMW version and Lua API revision in documentation

Closes #6149

See merge request OpenMW/openmw!3382
1 year ago
Zackhasacat 86c28921ae
Add function to get current disposition, add baseDisposition to NPC record 1 year ago
Alexei Kotov 2edf3399e2 Modernize extra data records 1 year ago
psi29a 4fbf42b145
Merge branch 'no_dpad_movement' into 'master'
Do not bind movement to the Controller DPad, but allow it to be rebound

See merge request OpenMW/openmw!3356
1 year ago
Zackhasacat ce1c78422b
Do not bind movement to the Controller DPad, but allow it to be rebound 1 year ago
Petr Mikheev d39552962f Validate version of resources 1 year ago
Petr Mikheev f260fa006e Show OpenMW version and Lua API revision in documentation. 1 year ago
psi29a 5ba13f7aae Merge branch 'lua_template_new' into 'master'
Support 'template' field in createRecordDraft, to use an existing record as a base in lua

See merge request OpenMW/openmw!3387
1 year ago
Petr Mikheev ea8692a534 Add usehandlers.lua (same approach as activationhandlers.lua) 1 year ago
psi29a 58aeb81e46 Merge branch 'container_ptr' into 'master'
Add `obj.parentContainer` in Lua. Refactor ContainerStore::mPtr, ContainerStore::mActor.

See merge request OpenMW/openmw!3381
1 year ago
Zackhasacat 4b7bf62671 Fix weapon table, and docs 1 year ago
elsid 52ab47771c
Initialize expiry delay for all GenericResourceManager instances 1 year ago
Zackhasacat 0085fb923e Formatting fixes 1 year ago
Zackhasacat 45f25e3f14 Add in initial support 1 year ago
psi29a a0d3313d8d Merge branch 'lua_restock' into 'master'
Add isRestocking to types.Item

See merge request OpenMW/openmw!3383
1 year ago
Zackhasacat 95c736d54e Remove gobjefct 1 year ago
Zackhasacat 5fdaee093a add isRestocking 1 year ago
psi29a 65a15ff0b1 Merge branch 'container_inventory' into 'master'
[Lua] Add alias `types.Container.inventory` = `types.Container.content` for consistency with `types.Actor.inventory`

See merge request OpenMW/openmw!3314
1 year ago
psi29a 15a24a5af6 Merge branch 'formid' into 'master'
Change FormId::toString to be consistent with RefId. Remove FormIdRefId.

See merge request OpenMW/openmw!3378
1 year ago
psi29a 07edabdc75 Merge branch 'optimize_get_land' into 'master'
Optimize Storage::getLand calls

See merge request OpenMW/openmw!3379
1 year ago
psi29a b866483ca1 Merge branch 'fix_cellstore' into 'master'
Fix bug in CellStore::writeReferences (#7542)

Closes #7542

See merge request OpenMW/openmw!3380
1 year ago
Zackhasacat 84987450ee Add baseCount 1 year ago
Petr Mikheev 55a9ab4f52 Add `obj.parentContainer` in Lua. Refactor ContainerStore::mPtr, ContainerStore::mActor. 1 year ago
Petr Mikheev 1143efd46d Fix bug in CellStore::writeReferences (#7542) 1 year ago
Petr Mikheev 32f3a16db3 Change FormId::toString to be consistent with RefId. Remove FormIdRefId. 1 year ago
elsid 816d3772b9
Cache absent land object
This allows to save on lookup in store.
1 year ago
Evil Eye 8f10c8f84a Don't pass obsolete slot parameter to cast 1 year ago
psi29a 5b3e2fbf1c Merge branch 'clickbait' into 'master'
Assign StringRefIds to attributes

See merge request OpenMW/openmw!3256
1 year ago
psi29a 516108691d Merge branch 'record_gold' into 'master'
Add baseGold to NPC and creature lua records

See merge request OpenMW/openmw!3369
1 year ago
psi29a 86f15fa194 Merge branch 'ui' into 'master'
Control GUI from Lua

See merge request OpenMW/openmw!3236
1 year ago
psi29a ef69ec4adf Merge branch 'sound_mapping' into 'master'
Use a separate lookup for sound files

See merge request OpenMW/openmw!3358
1 year ago
psi29a 5df5c37b18 Merge branch 'lua_check_initialized' into 'master'
Fix #7540

Closes #7540

See merge request OpenMW/openmw!3355
1 year ago
psi29a bfb2ae7948 Merge branch 'fix_moveinto' into 'master'
Fix incorrect validation in obj:moveInto

See merge request OpenMW/openmw!3359
1 year ago
Andrei Kortunov 921375a06b Use a separate lookup for sound files 1 year ago
Zackhasacat 1320261eba Add baseGold to NPC and creature records 1 year ago
Petr Mikheev c5ba289bc7 Handle UI modes open/close sounds in Lua 1 year ago
Petr Mikheev 36d22cff1c Improve GUI mode validation 1 year ago
Petr Mikheev f1bcf64afb Dehardcode input.ACTION.Inventory, input.ACTION.Journal, input.ACTION.QuickKeysMenu 1 year ago
Petr Mikheev 87eacf774a Control GUI modes from Lua 1 year ago
Evil Eye 5a8d108852 Cast to size_t 1 year ago
Evil Eye 62f47acf6b Replace more explicitly sized reads and variable width integers 1 year ago
Evil Eye e660a9ca16 Assign StringRefIds to attributes 1 year ago
Petr Mikheev 842e154d8a Fix incorrect validation in obj:moveInto 1 year ago
Petr Mikheev 5bbbeefee7 Fix #7540 1 year ago
psi29a e5d5cbcdd1 Merge branch 'save_safeguard' into 'master'
Add a safeguard to do not use uninitialized value

See merge request OpenMW/openmw!3349
1 year ago
psi29a ebf803a00b Merge branch 'anonymous_namespace' into 'master'
Move some code to unnamed namespace

See merge request OpenMW/openmw!3351
1 year ago
elsid ba1b3ae962
Avoid duplicated addEntryToObjectCache call 1 year ago
elsid b67ecb4e4f
Remove redundant else 1 year ago
elsid 9cebe78a51
Avoid implicit cast to bool for pointers 1 year ago
elsid bda29819cf
Reduce include dependency for land records 1 year ago
elsid 955790dc31
Split ESM::Land::loadData 1 year ago
elsid dc05e9adbb
Avoid redundant check for nullptr 1 year ago
elsid 28614730da
Pass land reference to LandObject constructor 1 year ago
elsid 7c7577a6bd
Do not recreate cache object 1 year ago
elsid 95a39b3281
Use sized types for land records members 1 year ago
psi29a 16628a766f Merge branch 'fallout4' into 'master'
ESM4 Loader: initial Fallout 4 support

See merge request OpenMW/openmw!3347
1 year ago
Andrei Kortunov 1c0ced15c6 Move some code to unnamed namespace 1 year ago
psi29a a1b7c0c3d5 Merge branch 'fix_build' into 'master'
Fix build

See merge request OpenMW/openmw!3350
1 year ago
psi29a 42e7647508 Merge branch 'more_coverity' into 'master'
More Coverity fixes

See merge request OpenMW/openmw!3326
1 year ago
elsid 57bcb3e89d
Fix build
apps/openmw/mwlua/soundbindings.cpp:166:78: error: member access into incomplete type 'MWBase::World'
        const SoundStore* soundStore = &MWBase::Environment::get().getWorld()->getStore().get<ESM::Sound>();
                                                                             ^
apps/openmw/mwlua/../mwbase/environment.hpp:27:11: note: forward declaration of 'MWBase::World'
    class World;
          ^
1 year ago
Petr Mikheev 4211665ede Merge branch 'sounds' into 'master'
Lua bindings for sound functions

See merge request OpenMW/openmw!3247
1 year ago
Andrei Kortunov 88fe328de1 Add a safeguard to do not use uninitialized value 1 year ago
Andrei Kortunov 1555fd8b34 Add assert 1 year ago
psi29a 861b9b215c Merge branch 'moveinto' into 'master'
[Lua] Accept GameObject as destination in obj:moveInto.

See merge request OpenMW/openmw!3318
1 year ago
psi29a adb5774aa9 Merge branch 'optimize_get_blendmaps' into 'master'
Optimize land lookup on blendmaps sampling

See merge request OpenMW/openmw!3333
1 year ago
psi29a e21e3a0d46 Merge branch 'time' into 'master'
Pause/resume the game in Lua scripts

See merge request OpenMW/openmw!3317
1 year ago
psi29a 856262d4c0 Merge branch 'trainingwheels' into 'master'
Use the correct skills for training again

Closes #7536

See merge request OpenMW/openmw!3339
1 year ago
psi29a f9910290e0 Merge branch 'fix_hand_model' into 'master'
Fix #7506

Closes #7506

See merge request OpenMW/openmw!3335
1 year ago
Andrei Kortunov f053188247 Increase Lua API version 1 year ago
elsid 0d4833febb
Fix esmtool dump format 1 year ago