Commit Graph

7186 Commits (6dca3e68a6ecfd4dcabd7d999744ce546c26a12f)

Author SHA1 Message Date
Alexei Kotov 6dca3e68a6 NIFStream: don't read vectors of zero length 1 year ago
Alexei Kotov d078907dcb NIFStream: rewrite loading for everything
Replace overloading with read() template specializations for every type that needs specific handling
Make use of the new read() or get() in all methods
Move complex string-related methods to implementation
1 year ago
Alexei Kotov ce13f05187 NIFStream: clean up comments 1 year ago
Alexei Kotov e8f9a918ae NIFStream: use the right function for readArray 1 year ago
Alexei Kotov 4f549c267f NIFStream: rename input stream and file methods
To conform to modern style conventions
1 year ago
Alexei Kotov 62d643f668 NIFStream: Drop LittleEndian from reading methods
This is just noise. We don't clarify reading endianness for any other file format.
1 year ago
Alexei Kotov aed440ce64 Clean up error handling in NIFStream reading
No particular reason to introduce is_arithmetic specifically for 16-bit floats, there's no significant code duplication
Bypassing getBoolean() could be error-prone for records that are shared between pre-4.2 and post-4.2 formats
1 year ago
psi29a c9f03b4174 Merge branch 'sizeup' into 'master'
Replace more sized reads

See merge request OpenMW/openmw!3322
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
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
Alexei Dobrohotov de50f30645 Read a couple of Bethesda-specific controller records
BSMaterialEmittanceMultController
BSRefractionFirePeriodController
BSRefractionStrengthController
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
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