Commit Graph

7526 Commits (7cea0344b28125c5afbff74c234d4c942597f552)

Author SHA1 Message Date
Alexei Kotov bcaa402315 Maybe load FO4 levelled item records 1 year ago
Alexei Kotov 1b29077206 Maybe load FO4 terminal records 1 year ago
Alexei Kotov 32f8d08dd3 Maybe load FO4 note records 1 year ago
Alexei Kotov cfa19cf719 Maybe load FO4 levelled actor records 1 year ago
Alexei Kotov 4dc4add62d Maybe load FO4 NPC records 1 year ago
Alexei Kotov e9f9da98cf Maybe load FO4 ammunition records 1 year ago
Alexei Kotov dcb791083e Maybe load FO4 weapon records 1 year ago
Alexei Kotov ad8d691352 Load object templates in FO4 NPC and weapon records 1 year ago
Alexei Kotov a188a90023 Maybe load FO4 furniture records 1 year ago
Alexei Kotov 4237da5dfd Maybe load FO4 flora records 1 year ago
Alexei Kotov a9454fdc0a Improve FO3 idle marker record loading 1 year ago
Alexei Kotov 90d4f375b8 Maybe load FO4 moveable static records 1 year ago
Alexei Kotov 4d3edec59f Maybe load FO4 static collection records 1 year ago
Alexei Kotov a3069ea863 Maybe load FO4 misc records 1 year ago
Alexei Kotov f2449df2f7 Maybe load FO4 light records 1 year ago
Alexei Kotov 24d7a096ba Maybe load FO4 door records 1 year ago
Alexei Kotov 2b9b05c010 Maybe load FO4 container records 1 year ago
Alexei Kotov 60813345ae ESM4: Acknowledge all model data records 1 year ago
Alexei Kotov d9ebdc6e41 Maybe load FO4 book records 1 year ago
Alexei Kotov aedcc28294 Maybe load FO4 armor records 1 year ago
Alexei Kotov db6f76fea8 Skip more CIS1/CIS2 and skip all PRTN subrecords
Avoid formatting problems with newly added skipped FO4 blocks
1 year ago
Alexei Kotov 3118800dbd Skip ESM4 destructible data for all relevant records 1 year ago
Alexei Kotov 271c14030a Maybe load FO4 ingestible records 1 year ago
Alexei Kotov 0efc9865f6 Alphabetize SubRecordTypes and include all subrecords used in FO4
SUA_BTXT => SUB_BTXT
1 year ago
Alexei Kotov d15f301193 Load FO4 activator records 1 year ago
Alexei Kotov a2ed295f1f Update ESM4 LTEX loading
Load grasses into a list
Fix FO4 loading
Load Havok parameters for FNV
1 year ago
Alexei Kotov d74df61ce5 Load FO4 acoustic space records 1 year ago
Alexei Kotov 5bce6d8d44 Maybe load some FO4 static records 1 year ago
Alexei Kotov 1a7d68cd33 Skip FO4 SOUN::REPT 1 year ago
Alexei Kotov c706a46dc4 ESM4::RACE: fix loading more than 5 head parts in FO4 1 year ago
Alexei Kotov 426eae3843 ESM4::RACE: don't use current index if it's unset
To be safer. Doesn't help with FO4 segfaults though
1 year ago
Alexei Kotov 4605894a5a Updating RACE for FO4, first pass 1 year ago
Alexei Kotov 0c05bbea37 Skip CTDA target condition subrecords 1 year ago
Alexei Kotov 22fb744751 Skip PRPS object property subrecords 1 year ago
Alexei Kotov 84d693324b ESM4: read texture set material 1 year ago
Alexei Kotov e426dd045f Read string GMSTs correctly in >=TES5 1 year ago
Alexei Kotov 0e94ff4a73 Support unsigned int GMSTs 1 year ago
Alexei Kotov 891be9744d Skip TES4::TNAM 1 year ago
psi29a c9f03b4174 Merge branch 'sizeup' into 'master'
Replace more sized reads

See merge request OpenMW/openmw!3322
1 year ago
Andrei Kortunov 7ce9fc25c5 Implement Lua bindings for sound system 1 year ago
Zackhasacat 3e8a1cce7c Load ESM4 Terminal objects, add lua bindings for them 1 year ago
jvoisin 4cf80cdac2 Merge branch 'fix_esm4_ai' into 'master'
Fix AI in ESM4 cells

See merge request OpenMW/openmw!3338
1 year ago
Kindi d9c102e14d utf8.char 1 year ago
elsid 5abbc56bf2
Use proper cell size for ESM4 cells in CoordinateConverter 1 year ago
Alexei Kotov ee7accf3bd Don't read affected nodes for 10.0.1.0 NiDynamicEffect 1 year ago
Alexei Kotov baefff323c Make some NIF loading messages less confusing 1 year ago
Petr Mikheev f5ddffa087 Fix coverity warning in esm3/globalscript.cpp 1 year ago
elsid 07c1177b0d
Optimize land lookup on blendmaps sampling
Minimize number of getLand calls by grouping samples per cell.
1 year ago
elsid ce6ffba986
Move blendmap sampling logic into separate function 1 year ago
Kindi 8622a6da3b luautf8lib 1 year ago
Alexei Dobrohotov de50f30645 Read a couple of Bethesda-specific controller records
BSMaterialEmittanceMultController
BSRefractionFirePeriodController
BSRefractionStrengthController
1 year ago
Petr Mikheev 87912065fd Rename MWLua::WorldView -> MWLua::ObjectLists 1 year ago
Evil Eye 9e376f3783 Replace explicitly sized reads in cellid, cellref 1 year ago
Evil Eye 48484c9416 Replace explicitly sized reads in aisequence 1 year ago
psi29a 3151452e25 Merge branch 'pandorasbox' into 'master'
Launcher, content selector: support ESM4 files, allow using game files as addon files

See merge request OpenMW/openmw!3219
1 year ago
psi29a 7b4f7b7f07 Merge branch 'adjust_refnum' into 'master'
Adjust FormId in FormIdRefId and for items in containers when loading saves

See merge request OpenMW/openmw!3293
1 year ago
Andrei Kortunov 5cfd21e9ab Do not place deprecated MyGUI property dynamically 1 year ago
Andrei Kortunov f3cf61627c Do not use deprecated MyGUI features for list boxes 1 year ago
elsid 8e7fe44514
Support terrain sample size greater than cell size 1 year ago
elsid 2a49919b53
Move esm3terrain to esmterrain 1 year ago
elsid 28436557b1
Validate fillVertexBuffers arguments 1 year ago
elsid fbd3d1f61d
Rename increment to sampleSize 1 year ago
elsid 0da156bdc2
Skip getLand call when no vertices are used 1 year ago
elsid 5fda4b3cfd
Precompute height cooridnates offsets 1 year ago
elsid 2c2a60b86c
Simplify filling positions 1 year ago
elsid 4a2a320e08
Use const where possible 1 year ago
elsid d3e61e4578
Replace C-style cast by static_cast 1 year ago
elsid e4584ce5dd
Reduce scope for normal and color 1 year ago
elsid 829f325500
Use proper name and scope for vertex coordinate variables 1 year ago
elsid a23c98d468
Use std::size_t type for vertex coordinates 1 year ago
elsid 51b24c2b70
Fix variable name 1 year ago
elsid c10f28a413
Pass references to fillVertexBuffers instead of osg::ref_ptr 1 year ago
psi29a fadfffe22c Merge branch 'settings_values_map' into 'master'
Use settings values for Map settings (#6876)

See merge request OpenMW/openmw!3284
1 year ago
psi29a ba4298f36d Merge branch 'refactor_esm4' into 'master'
Refactor components/esm4 to make it easier to load records to ESMStore

See merge request OpenMW/openmw!3301
1 year ago
psi29a 8d1a19a6f4 [#7358] Make MyGui 3.4.2 required for 0.49 1 year ago
Petr Mikheev 957880d515 Add to ESMStore the records that are needed to render ESM4 actors; cleanup usage of `records.hpp` 1 year ago
Petr Mikheev 5d54ca6fdb Refactor components/esm4 1 year ago
psi29a ed81baf864 Merge branch 'chrono_fix' into 'master'
Simplify file_time_type to time_t conversion

See merge request OpenMW/openmw!3161
1 year ago
psi29a c290754077 Revert "Merge branch 'loadSSEAlchemyTable' into 'master'"
This reverts merge request !3267
1 year ago
psi29a 9c2a2e1946 Merge branch 'nvpp_fixes' into 'master'
Improve safety of NVPP ESM records

See merge request OpenMW/openmw!3307
1 year ago
psi29a 4aaffa72e5 Merge branch 'more_coverity_fixes' into 'master'
More coverity fixes

See merge request OpenMW/openmw!3304
1 year ago
psi29a 4557d20f0b Merge branch 'coverity_strings' into 'master'
Simplify strings construction

See merge request OpenMW/openmw!3310
1 year ago
Andrei Kortunov f5b18d2d5d Do not copy objects twice where possible 1 year ago
Andrei Kortunov b3a981e0fc Simplify strings construction 1 year ago
psi29a 5160fbc2a0 Merge branch 'fixedtimestamp' into 'master'
Move TimeStamp to ESM3 and remove sized reads

See merge request OpenMW/openmw!3295
1 year ago
psi29a c86eecb2ea Merge branch 'movable_objects' into 'master'
Move objects instead of copying where possible

See merge request OpenMW/openmw!3289
1 year ago
psi29a 6ff2bb8aeb Merge branch 'more_esm4_fields' into 'master'
Support ESM4 record FullName, CellFlags, X, Y fields by esmtool

See merge request OpenMW/openmw!3299
1 year ago
psi29a 23671ced33 Merge branch 'fix_use_after_move' into 'master'
Fix use after move in InfoOrder::insertInfo

See merge request OpenMW/openmw!3296
1 year ago
Andrei Kortunov 4e531524be Improve safety of NVPP ESM records 1 year ago
Andrei Kortunov 35561450f1 Do not copy osg::ref_ptr when possible 1 year ago
Andrei Kortunov d3d7a663c6 Move some objects instead of copying 1 year ago
Andrei Kortunov fe10799bfe Add an assert for possible null pointer dereference 1 year ago
Andrei Kortunov b1c8a968ae Do not use invalid iterators 1 year ago
Andrei Kortunov 34ba2068b7 Remove dead code 1 year ago
Andrei Kortunov 1ae2a994f0 Avoid null pointer dereference 1 year ago
psi29a b2f669ca48 Merge branch 'fix_async_load' into 'master'
Fix crash related to async content loading (#7508)

Closes #7508

See merge request OpenMW/openmw!3290
1 year ago
Petr Mikheev 0487bf95d1 Merge branch 'coverity49' into 'master'
Fix some Coverity warnings

See merge request OpenMW/openmw!3286
1 year ago
elsid 798f3cc385
Support ESM4 record FullName, CellFlags, X, Y fields by esmtool 1 year ago
elsid fd01b4cad7
Avoid casts to read cell flags 1 year ago
elsid 66c5944ecf
Fix use after move in InfoOrder::insertInfo
When it->second.mPosition->mPrev != value.mPrev value is first moved into
*mPosition and then used to get mPrev. Since mPrev is RefId and it's copy-only
type there is no real problem but coverity complains about it.

Also enforce contract of insertInfo to support move-only types by adding a test
for a value type with deleted copy constructors.
1 year ago
Evil Eye 79b3855c5b Move TimeStamp to ESM3 and remove sized reads 1 year ago
Petr Mikheev 9a9f9d7081 Adjust FormId in FormIdRefId and for items in containers when loading saves 1 year ago
Petr Mikheev 2b601eea6d Fix crash related to async content loading (#7508) 1 year ago
elsid dd54857610
Add missing array include 1 year ago
elsid c9c32d9a0d
Cleanup includes 1 year ago
Andrei Kortunov d8ec78d732 Fix some Coverity warnings 1 year ago
psi29a 81deb3796b Merge branch 'loadSSEAlchemyTable' into 'master'
Load SSE alchemy table

See merge request OpenMW/openmw!3267
1 year ago
alekulyn d2896945e8 Load SSE alchemy table 1 year ago
psi29a a6d6e16d48 Merge branch 'readsize' into 'master'
Disallow implicitly sized reads of ESM structs

See merge request OpenMW/openmw!3100
1 year ago
elsid 9acb93ab29
Use settings values for Map settings 1 year ago
elsid bdb4808588
Remove unused local map hud widget size setting
Unused since d1a3cc98ff
1 year ago
psi29a e76ce6b696 Merge branch 'fix_find_path' into 'master'
Remove stepping from findSmoothPath and other tweaks (#7241 , #7485)

Closes #7485 and #7241

See merge request OpenMW/openmw!3264
1 year ago
psi29a 3e16ef7445 Merge branch 'esm4_achr' into 'master'
Load ESM4 actors (no rendering yet)

See merge request OpenMW/openmw!3278
1 year ago
psi29a f5677aa352 Merge branch 'settings_values_input' into 'master'
Use settings values for Input settings (#6876)

See merge request OpenMW/openmw!3265
1 year ago
psi29a e073eab05e Merge branch 'more_evade_directions' into 'master'
Use more evade directions and filter by supporting animation (#7450)

Closes #7450

See merge request OpenMW/openmw!3210
1 year ago
Petr Mikheev 9b511fdf7a Load ESM4 actors 1 year ago
Mads Buvik Sandvei 364f2a98e9 Use refnum instead of slot for items during spellcast 1 year ago
psi29a 2c989e4057 Merge branch 'coverityfixes' into 'master'
Correct some things based on Coverity's output

See merge request OpenMW/openmw!3272
1 year ago
psi29a a99aa38d45 Merge branch 'mnam' into 'master'
Read STAT::MNAM

See merge request OpenMW/openmw!3273
1 year ago
psi29a 466b2f1b74 Merge branch 'mantlingtalos' into 'master'
Copy triangle data from NiSkinPartition, a.k.a. SKYRIM TREES

See merge request OpenMW/openmw!3235
1 year ago
Alexei Kotov 32022e9b5c Read STAT::MNAM 1 year ago
Alexei Kotov 353b06325e Fix unintended sign extension in compressed BSA hash generation
Which, however, never happens with non-ASCII characters
1 year ago
Alexei Kotov a8119f3863 Fix vertex color emissive lighting mode handling 1 year ago
Alexei Kotov 0d70ae5028 Clean up primitive set copying 1 year ago
Alexei Kotov 3f252eab5d Copy triangle data from NiSkinPartition 1 year ago
elsid 6c18723bc7
Use settings values for Input settings 1 year ago
elsid e00eb50587
Remove stepping from findSmoothPath
This is not used anyway. There are features like smooth movement which remove
all redundant points.

Use single findStraightPath call instead of multiple.
1 year ago
elsid 767a14587c
Add more debug logging on navmesh generation 1 year ago
elsid b4868c6094
Filter evade directions by supported animations
To avoid trying those which will not lead to any actor movement due to absent
animation.
1 year ago
elsid 9817f4ca9a
Find closest position on navmesh to start and end before poly path
Start and end might not be located on navmesh and findPath may give wrong
results.
1 year ago
elsid 3dfea1dc1b
Make OutputTransformIterator more generic 1 year ago
elsid de3a6ca6e6
Use std::span for findPath pathBuffer 1 year ago
elsid c334176d73
Use std::span for makeSmoothPath polygonPath 1 year ago
elsid 548c38f54d
Remove unused code 1 year ago
elsid 350027c588
Remove redundant NavMesh argument from findSmoothPath 1 year ago
elsid fcea153947
Transform path coordinates outside findSmoothPath 1 year ago
Alexei Kotov d6e420fb48 Handle BSShader specular flag 1 year ago
psi29a 62ef209185 Merge branch 'readingbooksbutnotquite' into 'master'
Read bhkLimitedHingeConstraint

See merge request OpenMW/openmw!3254
1 year ago
psi29a 686281d276 Merge branch 'helgenkeepcalm' into 'master'
NIF additions relevant to Helgen Keep

See merge request OpenMW/openmw!3252
1 year ago
psi29a dc405df0a5 Merge branch 'morrowind_tests' into 'master'
Add Morrowind specific tests

See merge request OpenMW/openmw!2117
1 year ago
Evil Eye 6e5d84ce37 inline 1 year ago
elsid 5a0ad8cdd7
Add Morrowind specific tests 1 year ago
elsid 9bff292a29
Log path to navmesh.db 1 year ago
Evil Eye 9d4877d432 Treat std::array like regular arrays 1 year ago
psi29a c80a8d5293 Merge branch 'amaranth' into 'master'
Add polygon offset to decals in Skyrim models, reducing Z-fighting

See merge request OpenMW/openmw!3237
1 year ago
psi29a 9410eed9e5 Merge branch 'bump-cmake-version' into 'master'
Bump required CMake version to 3.16

See merge request OpenMW/openmw!3242
1 year ago
Evil Eye 45ba05c0ed Disallow implicitly sized reads of ESM structs 1 year ago
Alexei Kotov 6b6a3bcfca Make decal rendering more accurate for Skyrim models, reducing Z-fighting 1 year ago
psi29a ec9b4c4563 Merge branch 'caius4friends' into 'master'
Fix dialogue insertion again

See merge request OpenMW/openmw!3212
1 year ago
psi29a 03dbe1c9f3 Merge branch 'stringrefidskills' into 'master'
Assign StringRefIds to skills

See merge request OpenMW/openmw!3146
1 year ago
Alexei Kotov 6c4957fe4a Read bhkLimitedHingeConstraint 1 year ago
Alexei Kotov d2c797aee9 Read BSDamageStage 1 year ago
Alexei Kotov 5a3dce160c Read NiBoolTimelineInterpolator 1 year ago
Alexei Kotov 4265524ad5 Read BSRangeNode and BSBlastNode 1 year ago
Alexei Kotov fa39f04a3a Read BSBehaviorGraphExtraData 1 year ago
Alexei Kotov e710e94304 Read BSLightingShaderPropertyColorController 1 year ago
Alexei Kotov c34157fc28 Fix bhkConstraintMotorCInfo loading 1 year ago
AnyOldName3 34fcfb63cf Eliminate redundant version checks 1 year ago
psi29a baa67893b6 Merge branch 'settings_values_gui' into 'master'
Use settings values for GUI settings (#6876)

See merge request OpenMW/openmw!3238
1 year ago
psi29a 85822eca45 Merge branch 'darkmagic' into 'master'
Implement the NegativeLight flag

Closes #7477

See merge request OpenMW/openmw!3240
1 year ago
Alexei Kotov 727e5c5af2 Read IDLM model data 1 year ago
Alexei Kotov 1e7fef979a Skip MISC destruction data 1 year ago
Alexei Kotov 09f6032c9b Skip TACT::VMAD/MODS 1 year ago
Alexei Kotov 332f38b7ab Read SCRL::YNAM/ZNAM 1 year ago
Alexei Kotov 7e1e43f9c6 Allow GMSTs with empty EDID 1 year ago
Alexei Kotov 22cc7f3020 Skip LIGH destruction data 1 year ago
Evil Eye 2a1d520c9e Address feedback 1 year ago
Evil Eye 7573004efc Implement the NegativeLight flag 1 year ago
elsid d113f0fc44
Use settings values for GUI settings 1 year ago
Alexei Kotov 25f5c5651d Sort ESM3ExteriorCellRefIds earlier than StringRefIds
Causes inconsistency with the serialized type enumeration, but necessary for COC to work correctly
1 year ago
psi29a 98bb9fc125 Merge branch 'deserializedeez' into 'master'
Make RefId::deserializeText return an empty RefId if no pre-existing StringRefId can be found

See merge request OpenMW/openmw!3226
1 year ago
psi29a abb71eeb53 Merge branch 'plannedobsolescence' into 'master'
Allow compilation with MYGUI_DONT_USE_OBSOLETE

See merge request OpenMW/openmw!3232
1 year ago
psi29a 5bc06b3678 Merge branch 'bhkconstraint' into 'master'
Read bhkRagdollConstraint and bhkHingeConstraint

See merge request OpenMW/openmw!3231
1 year ago
Evil Eye a0127dd7e4 Allow compilation with MYGUI_DONT_USE_OBSOLETE 1 year ago
Alexei Kotov 65fe89d8af Read NiTextureTransformController 1 year ago
Alexei Kotov ed8fd81714 Don't mess with A/B hardcoding in constraints 1 year ago
Alexei Kotov eb3e762c50 Read bhkHingeConstraint 1 year ago
Alexei Kotov 83be42893d Read bhkRagdollConstraint 1 year ago
Alexei Kotov 723f5c58e1 Add bhkConstraint 1 year ago
Alexei Kotov d8f50553af Move Skyrim shader property controllers to controllers 1 year ago
Evil Eye cd8f2355c0 Only allow StringRefId for Skill ids 1 year ago
psi29a ce84fdf5f5 Merge branch 'limitedpower' into 'master'
Cap global map cell size (bug #6222)

Closes #6222

See merge request OpenMW/openmw!3225
1 year ago
Evil Eye 7b909c8d24 Create getRefIds 1 year ago
Evil Eye 967b5d205b Use StringRefId for skills 1 year ago
Evil Eye ac9378fa08 Replace Skill::mIndex with Skill::refIdToIndex 1 year ago
Evil Eye c59032fd66 Make RefId::deserializeText return an empty RefId if no pre-existing StringRefId can be found 1 year ago
psi29a 7952b27c26 Merge branch 'xptl' into 'master'
Skip REFR::XPTL

See merge request OpenMW/openmw!3224
1 year ago
Alexei Dobrohotov 39c84c84da Cap global map cell size (bug #6222) 1 year ago
psi29a 3a1ae9df58 Merge branch 'nsaids-for-shared-memory-structs' into 'master'
Share the dump directory for crash and freeze dumps

See merge request OpenMW/openmw!3221
1 year ago
psi29a 41abbae3e7 Merge branch 'sittingontheoverlap' into 'master'
Allow subrecords to overlap the following record (bug #6025)

Closes #6025

See merge request OpenMW/openmw!3215
1 year ago
Alexei Dobrohotov c6882dbc6b Skip REFR::XPTL
Needed by Yukichigai Unofficial Patch
1 year ago
AnyOldName3 f239988c06 Remove unused function 1 year ago
AnyOldName3 899f0a4633 Remove redundant explicit null terminator 1 year ago
AnyOldName3 677c17530e I don't like reformatting things over and over. 1 year ago
AnyOldName3 1bdcb5d6d9 Share the dump directory for crash and freeze dumps
This means the shared memory struct is just 255 bytes longer than a few
commits ago instead of 32K.

Also introduce a function for putting path strings in the shared memory
as there was too much copied and pasted code and it was error-prone.

Also free some handles once we're done with them so they don't leak.
1 year ago
Evil Eye 4eac137109 Change control flow to be easier to understand 1 year ago
Alexei Dobrohotov 5adda00f5e Content selector: allow using non-primary game files as addon files 2 years ago
psi29a 1268dde8fe Merge branch 'metermarker' into 'master'
Don't discard collision for the entire tree if BSXFlags marker flag is set

See merge request OpenMW/openmw!3216
2 years ago
Alexei Dobrohotov d589b46f96 Launcher, content selector: support ESM4 files
Cell name loader ignores ESM4 files
2 years ago
alekulyn b085a52681 Add template Nif record 2 years ago
alekulyn 4b90352c2f Add RC value to BSLightingShaderPropertyFloatController and change the revelant RC value in niffile 2 years ago
alekulyn 589726d4f8 Enchanting table fully ready 2 years ago
alekulyn ed532b5aca Add BSEffectShaderPropertyFloatController record reading 2 years ago
alekulyn 7ea2ea96b6 Read new nodes pt1 2 years ago
Alexei Dobrohotov 2de8c6b3c0 Don't discard collision for the entire tree if BSXFlags marker flag is set 2 years ago
Alexei Dobrohotov 66fd1f8862 Allow subrecords to overlap the following record (bug #6025) 2 years ago
psi29a d9027f7eef Merge branch 'falloutfalloffnthtimesthecharm' into 'master'
BSEffectShader/NoLighting fixes

See merge request OpenMW/openmw!3211
2 years ago
Evil Eye d3c1928f01 Fix dialogue insertion again 2 years ago
Alexei Dobrohotov 52a16e0e93 BSEffectShader/NoLighting fixes
Don't hijack BSShader::NoLighting for BSEffectShader functionality
(Fallout meshes break if you use the actual emissive color as a base color)
Don't use falloff for textureless NoLighting objects
Use falloff flag for BSEffectShader
2 years ago
psi29a a755fa0f34 Merge branch 'cleanup_includes' into 'master'
Cleanup includes

See merge request OpenMW/openmw!3203
2 years ago
psi29a 81f8d16982 Merge branch 'loadBsTriShape' into 'master'
Load BSTriShape NIF nodes

See merge request OpenMW/openmw!3099
2 years ago
alekulyn 74aa7b947a Load BSTriShape NIF nodes 2 years ago
psi29a da592356f1 Merge branch 'no-crash-dump-in-temp' into 'master'
Don't put crash dumps in Temp on Windows

Closes #7455

See merge request OpenMW/openmw!3200
2 years ago
elsid f6fce5ee15
Cleanup includes 2 years ago
psi29a cab47d0a2a Merge branch 'settings_values_general' into 'master'
Use settings values for General settings (#6876)

See merge request OpenMW/openmw!3198
2 years ago
psi29a 2a534576de Merge branch 'fix-the-comments-again' into 'master'
Restore and clarify comments damaged by !2971

Closes #7350 and #7349

See merge request OpenMW/openmw!2979
2 years ago
AnyOldName3 106dbba086 Restore and clarify comments damaged by !2971 2 years ago
Petr Mikheev fb7ba40385 Merge branch 'lua-bb-once-and-for-all' into 'master'
Lua - Fix BB once and for all

See merge request OpenMW/openmw!3143
2 years ago
AnyOldName3 48368f79b6 Update Windows crash dump path once we know where we're logging
Manual rewrite of 5102f4b11d
2 years ago
AnyOldName3 72d99237e3 This would never have happened had clang format not tried making this function wrogn in the first place 2 years ago
AnyOldName3 1bcbc4f53f Undo clang format change because clang format in CI disagrees with clang format on my computer 2 years ago
AnyOldName3 3bb3f58c73 Don't put crash dumps in Temp on Windows
Well... unless we fail to get the user profile directory.

Also put freeze dumps in a more appropriately-named file.

Discussed in https://gitlab.com/OpenMW/openmw/-/issues/7455

Manual rewrite of c21695c951

As well as that, I found a bug where the crash dump path was being converted from a std::filesystem::path to a utf8-encoded std::string, then passed to the crash catcher, which converted it to a std::filesystem::path implicitly, but using the system eight-bit code page, which wouldn't usually be UTF-8. That's now fixed by passing the function that expects a path a path instead of a string.
2 years ago
elsid ebb8fdc698
Use settings values for General settings 2 years ago
glassmancody.info a659d2eaeb lua - fix bounding box once and for all 2 years ago
elsid a6dbd819a1
Fix writing IndexRefId to ESM3
Use correct enum value.
2 years ago
psi29a 050fc20379 Merge branch 'settings_values_game' into 'master'
Use settings values for Game settings (#6876)

See merge request OpenMW/openmw!3188
2 years ago
psi29a 6601b0cb15 Merge branch 'fastandloose' into 'master'
Drop support for --fs-strict

Closes #7394

See merge request OpenMW/openmw!3093
2 years ago
elsid 6e8dcc16c6
Use settings values for Game settings 2 years ago
elsid 86e5b94ef6
Convert setting value int to CollisionShapeType on initialization 2 years ago
psi29a fc5d73648a Merge branch 'schooled' into 'master'
Merge magic schools into skills

See merge request OpenMW/openmw!3148
2 years ago
alekulyn 683fb0a342 Templated nif reader function modelled after cc9cii's reader 2 years ago
Evil Eye 73c2387708 Merge schools into skills 2 years ago
psi29a 31efad1dd0 Merge branch 'fix_model_path' into 'master'
Fix #7403: incorrect model path for records created by Lua scripts

Closes #7403

See merge request OpenMW/openmw!3151
2 years ago
psi29a dd0d66513d Merge branch 'clickbait' into 'master'
Mostly dehardcode attributes

See merge request OpenMW/openmw!3164
2 years ago
psi29a 558b3cbf60 Merge branch 'particles_fix' into 'master'
Create a stateset for every particle system to create its own defineMap

Closes #7304

See merge request OpenMW/openmw!3162
2 years ago
Andrei Kortunov a08d921c4c Create a stateset for every particle system to create its own defineMap 2 years ago
psi29a 47b1247fa2 Merge branch 'l10n' into 'master'
Make configurable whether GMST strings have priority over built-in interface messages

See merge request OpenMW/openmw!3134
2 years ago
psi29a abdd4f5207 Merge branch 'lua_potion_magic' into 'master'
Lua: Add effects to potionRecord, ingredientRecord

See merge request OpenMW/openmw!3160
2 years ago
Zackhasacat 611a6429a9 Lua: Add effects to potionRecord, ingredientRecord 2 years ago
psi29a 68415a952e Merge branch 'lua_quat' into 'master'
Breaking change in Lua API: change obj.rotation from Euler angles to Quaternion

See merge request OpenMW/openmw!3123
2 years ago
Andrei Kortunov 2ea7eb4ba8 Simplify file_time_type to time_t conversion 2 years ago
Evil Eye bac6777fae Reduce the number of magic numbers 2 years ago
Petr Mikheev 2f16a8d27c Fix incorrect model part for records created by Lua scripts 2 years ago
Bret Curtis d582a26e4c Set the default to CLAMP_TO_EDGE in case it was not explicity called for 2 years ago
Bret Curtis 30da8a27ba small revert, "It is copying a texture, it is not a default initialized one. The source texture may or may not want GL_CLAMP_TO_EDGE." 2 years ago
Bret Curtis 0b1a0ad1a8 only 4 deep 2 years ago
Bret Curtis ff6944701f Be more explicit about use of CLAMP_TO_EDGE instead of defaulting to GL CLAMP 2 years ago
elsid 04215ca9ec
Use settings values for Fog settings 2 years ago
psi29a 1630e04d1b Merge branch 'fix_7423' into 'master'
Fix #7422, #7423, #7424

Closes #7424, #7423, and #7422

See merge request OpenMW/openmw!3136
2 years ago
psi29a 807893eb45 Merge branch 'clickbait' into 'master'
Mostly dehardcode skills

See merge request OpenMW/openmw!3112
2 years ago
Petr Mikheev ab7eebb356 Fix #7423 (too strict fallback validation) 2 years ago
Petr Mikheev 718d5e4a71 Add setting "gmst overrides l10n" 2 years ago
Petr Mikheev 96399b3d23 Add fallbacks to Store<ESM::GameSetting> 2 years ago
Petr Mikheev be45b8199e Whitelist and type validation for fallbacks 2 years ago
Petr Mikheev 3b43cc2aea Lua: change obj.rotation from Euler angles to Quaternion 2 years ago
Evil Eye 3c588900dd Apply elsid's suggestion and revert 3a888ef543 2 years ago
elsid 180dd7dc64
Log worldspace in RecastContext 2 years ago
elsid f9e9368fda
Add operator<< for DetourSettings 2 years ago
elsid dd08154b23
Add operator<< for DetourNavigator::AreaCosts 2 years ago
elsid ce5fbd6b68
Write separator between Detour status flags 2 years ago
psi29a 25a719700b Merge branch 'esmtool_fallout_nv' into 'master'
Support FalloutNV.esm

See merge request OpenMW/openmw!3065
2 years ago
psi29a ec2f0e4645 Merge branch 'fragile' into 'master'
More closely replicate Morrowind.exe's locks

Closes #7415

See merge request OpenMW/openmw!3116
2 years ago
elsid 11204d35d6
Use zlib directly for ESM4
Fallback to decompression by block of fixed size when decompressing the
whole archive fails.
2 years ago
elsid f841a1377f
Skip ATTR subrecord in CLAS record
Present in FalloutNV.esm.
2 years ago
psi29a 2686e586e5 Merge branch 'dev-7019' into 'master'
Fix improper access of stereo manager by other shared components

See merge request OpenMW/openmw!2437
2 years ago
Evil Eye f5a20d1e9c Change include guard name 2 years ago
Evil Eye e8ddccaefe Use std::transform 2 years ago
Evil Eye e791d2b498 Fix unit tests 2 years ago
Evil Eye eeda48ec50 Drop support for --fs-strict 2 years ago
Evil Eye da4e04522b More closely replicate Morrowind.exe's locks 2 years ago
Evil Eye 65b22975c9 Remove SkillEnum 2 years ago
Evil Eye 16c0f0d5cc Use a regular TypedDynamicStore for ESM:Skill 2 years ago
elsid 7d11a18907
Allow any integer number >= 0 for antialiasing level
There is wider support than just specific powers of two. The supported level
will be detected anyway.
2 years ago
psi29a 25c1e6abee Merge branch 'clickbait' into 'master'
Use std::array in various ESM structs

See merge request OpenMW/openmw!3103
2 years ago
psi29a 2f5bfb4df2 Merge branch 'fix-#7410' into 'master'
fix #7410

Closes #7410

See merge request OpenMW/openmw!3104
2 years ago
elsid e8ef1a2a0c
Add default initialization for ESM4::TeleportDest::flags 2 years ago
elsid 67e32abd4f
Add default initialization to ESM::Position members 2 years ago
florent.teppe 04e026c53f getRecNameString now constexpr
getTypeDescription uses a static constexpr variable so we don't return ref to temp memory.
2 years ago
Evil Eye e01a3076dd Use std::array in NpcStats 2 years ago
Evil Eye a5bb6c7d8d Use std::array in NPDTstruct52 2 years ago
Evil Eye dd83da5eba Use std::array in FADTstruct 2 years ago
Evil Eye 7be005c9a5 Use std::array in CLDTstruct 2 years ago
Evil Eye 8a474b9807 Use std::array in RADTstruct 2 years ago
psi29a 55cd30ea3b Merge branch 'string_ref_id_utf8' into 'master'
Support UTF-8 by StringRefId::toDebugString (#7407)

Closes #7407

See merge request OpenMW/openmw!3096
2 years ago
psi29a cc213fb437 Merge branch 'loadBsInvMarker' into 'master'
Load BSInvMarker NIF nodes

See merge request OpenMW/openmw!3092
2 years ago
psi29a 4335667d32 Merge branch 'esm4_cleanup' into 'master'
Clean up components/esm4

See merge request OpenMW/openmw!3086
2 years ago
psi29a 0bb652d7ce Merge branch 'clickbait' into 'master'
Resolve Attribute GMSTs

See merge request OpenMW/openmw!3090
2 years ago
alekulyn dc860ca302 Load BSInvMarker NIF nodes 2 years ago
elsid 78b3f7288a
Support UTF-8 by StringRefId::toDebugString 2 years ago
jvoisin 3152078c7e Restore missing std::endl removed by an overeager regex 2 years ago
jvoisin 0e33730f5d Remove useless logging
As suggested in https://gitlab.com/OpenMW/openmw/-/merge_requests/3086#note_1413234840
2 years ago
jvoisin a58dc6fd30 Use the logging system instead of std::cout in components/esm4
- Remove debug-related includes
- Add some trivial missing includes
- Remove useless {}
- Move the known-but-skipped-records are the end of the switch-cases
- Always throw on unknown records
2 years ago
psi29a 27a879de9a Merge branch 'tree_and_furniture' into 'master'
Load ESM4::Tree and ESM4::Furniture

See merge request OpenMW/openmw!3040
2 years ago
psi29a 83c8312060 Merge branch 'esm4_cell_fixes' into 'master'
A few fixes related to ESM4::Cell

See merge request OpenMW/openmw!3083
2 years ago
Evil Eye 08f35fe839 Add ESM::Skill::mWerewolfValue 2 years ago
Evil Eye 7b0680de5f Resolve attribute GMST members 2 years ago
Evil Eye eea730768b Replace sIconNames with ESM::Skill::mIcon 2 years ago
Evil Eye 9c819b5705 Disallow formatting of UString 2 years ago
Petr Mikheev 5cb4c66266 Avoid using ESM4::Cell with uninitialized fields 2 years ago
Petr Mikheev 19fb9f8e14 Handle editor marker bit in BSXFlags 2 years ago
Petr Mikheev 788a4d32aa Handle DoubleSided and TreeAnim flags in BSLightingShaderProperty. 2 years ago
Petr Mikheev fd90a8c9b4 Hide Nif nodes with name "EditorMarker". 2 years ago
Petr Mikheev 1b669db017 Load ESM4::Tree and ESM4::Furniture 2 years ago
Evil Eye 9c60a6fa4d Replace sSkillNameIds with ESM::Skill::mName 2 years ago
florent.teppe 9f9a6c06e0 Fix get vertex Height for esm4 2 years ago
florent.teppe 5dfa06acf8 removes unused variable
it was already mostly unused, it was usefull only in the constructor, even though it was a paramater of the constructor, so it could have been removed.
2 years ago
florent.teppe 12304d36aa std::cout => Log(Debug::Verbose) 2 years ago
florent.teppe ad8cfde4e0 ESM::LandData no longer a virtual interface
instead it is constructed from ESM::Land or ESM4::Land
2 years ago
fteppe 22dc383f63 fixes errors and warnings
Applies review comments

getWorldspaceTerrain => returns a reference because never null
crashfix in navigator
updateLandPositions fixes naming of it
const ESM4::Land* MWWorld::Store<ESM4::Land>::search(ESM::ExteriorCellLocation cellLocation) const removes useless else
ExteriorCellLocation uses default initializers
get terrain height returns -MAX_FLOAT when there is no esm4 terrain.

applied review comments

use default initlializer when possible
factorise code
uses pattern matching in for loop.
2 years ago
florent.teppe f600730459 fixes functions that were virtual but not tagged as override. 2 years ago
florent.teppe 7d88a240d3 no default terrain for esm4 exterior. 2 years ago
florent.teppe 2bb17279df linux build
clang format 14.0

Arm64 build
2 years ago
florent.teppe a9e0489867 fixes stutters => bugs in the way cells were updated. 2 years ago
florent.teppe 0e4d21a40c takes the right terrain bounds. 2 years ago
florent.teppe 7bc4fc6bf9 Fix issues on terrain change
terrain Preloader now preloads the right terrain
2 years ago
florent.teppe 427b6ea39a fix bug in "fixColour" and "fixNormal"
fix issue in vtx texture selection
2 years ago
florent.teppe c2e652b8a0 getLand taken out of loop where it's value would always be the same. 2 years ago
florent.teppe feb60f5ad8 One landsize variable instead of two.
fixes issues in constant values.
2 years ago
florent.teppe d0211acf9e Fixes bug in terrain loading + collision heightmap works
although terrain rendering is 100% broken right now
2 years ago
florent.teppe c35c7b3640 ESM4::Land loaded, added to store and to land objects
it does not work yet. Some things are displayed, but it looks all wrong.
2 years ago
florent.teppe fffcf52316 land manager cache's key is an ExteriorCellLocation
ESM4::Land is now a ESM::LandData
2 years ago
florent.teppe e0fa15b727 Abstracted Land data that can be used by esm3 and esm4. 2 years ago
florent.teppe 1b718f09c5 adding worldspace info to terrain data structures
Rendering manager can have multiple terrain, one for each queried worldspace
Terrain::World has a worldspace member
storage functions require a worldspace parameter.
2 years ago
florent.teppe 93e7b0d946 Terrain has a mandatory worldspace in constructor
getTerrainHeightAt takes a worldspace.

Doesn't change anything for now => Therrain is created with the default ESM3 worldspace, and is never changed.
2 years ago
Evil Eye 90a3a7b62f Add mWerewolfGMST 2 years ago
Evil Eye a5e1c87fb8 Remove sGmstAttributeIds, sGmstAttributeDescIds, sAttributeIcons 2 years ago
psi29a 16a580eb21 Merge branch 'clickbait' into 'master'
Remove sAttributeIds and sSkillIds

See merge request OpenMW/openmw!3071
2 years ago
psi29a 052972033c Merge branch 'get_rid_of_asserts_in_esm' into 'master'
Replace all asserts in components/esm[34] with throw

See merge request OpenMW/openmw!3069
2 years ago
unknown 14600de185 Remove sAttributeIds and sSkillIds 2 years ago
jvoisin c98c532213 Replace all asserts in components/esm[34] with throw 2 years ago
elsid 235eb65c97
Rename positionToCellIndex to match return type 2 years ago
psi29a 05555947c3 Merge branch 'specialdedup' into 'master'
Deduplicate specialization code

See merge request OpenMW/openmw!3063
2 years ago
jvoisin 44a65512e8 Replace another assert with a throw 2 years ago
Evil Eye 877f6747be Deduplicate specialization code 2 years ago
elsid dc8dfe81ce
Add more details to exceptions 2 years ago
Pierre Mossler e6838cddc7 missing include in attr.cpp 2 years ago
psi29a d3ed04c551 Merge branch 'lua-activeeffects' into 'master'
Lua: Actor api for active effects and active spells

See merge request OpenMW/openmw!3036
2 years ago
Petr Mikheev e74161ea8e Merge branch 'slashrslashmarijuanaenthusiasts' into 'master'
Improve Skyrim tree loading (limited)

See merge request OpenMW/openmw!3054
2 years ago
elsid 89eccab7f1
Add missing include
In file included from /home/elsid/dev/openmw/apps/openmw_test_suite/settings/testvalues.cpp:1:
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp: In function ‘std::string Misc::StringUtils::toHex(std::string_view)’:
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp:139:87: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
  139 |             const std::ptrdiff_t space = static_cast<std::ptrdiff_t>(static_cast<std::uint8_t>(v) <= 0xf);
      |                                                                                       ^~~~~~~
      |                                                                                       wint_t
/home/elsid/dev/openmw/components/misc/strings/conversion.hpp:140:97: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
  140 |             const auto [ptr, ec] = std::to_chars(out + space, out + space + 2, static_cast<std::uint8_t>(v), 16);
      |                                                                                                 ^~~~~~~
      |                                                                                                 wint_t
2 years ago
Mads Buvik Sandvei 410e8b100a Elsid comments 2 years ago
Mads Buvik Sandvei 5a8c6df633 clang'd 2 years ago
Mads Buvik Sandvei 4bf23f152b Revert use of string_view to std::string for effectIdTo* methods. 2 years ago
Mads Buvik Sandvei 6cfc06d7d8 There is no typo 2 years ago
Mads Buvik Sandvei 9a59330561 refactor effect names in loadmgef. Added a map from effect index to non-gmst effect name for use in lua scripts. 2 years ago
Mads Buvik Sandvei b791ce9132 Remove redundant qualifiers 2 years ago
Mads Buvik Sandvei 7ba43c9426 actor.ActiveEffects and actor.ActiveSpells 2 years ago
elsid 2f18da08d7
Add missing include 2 years ago
psi29a 2545185d52 Merge branch 'cs_show_magic_effect_name' into 'master'
Show magic effect name instead of IndexRefId (#7366)

Closes #7366

See merge request OpenMW/openmw!3049
2 years ago
psi29a 64b07ee9f4 Merge branch 'esmtool_dawnguard_dragonborn' into 'master'
Partial support esmtool dump for Dragonborn.esm and Dawnguard.esm from Skyrim

See merge request OpenMW/openmw!3052
2 years ago
psi29a a61f955e9f Merge branch 'case.ext' into 'master'
Fix a regression and use more starts_with and ends_with

See merge request OpenMW/openmw!3051
2 years ago