1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-15 23:43:07 +00:00
Commit graph

23792 commits

Author SHA1 Message Date
Evil Eye
5242610366 Differentiate between invalid and unapplied effects and stop marking unapplied revertable effects as applied in godmode 2025-10-14 21:26:06 +02:00
Evil Eye
34ff702212 Allow skills to be fortified by absorbing from a creature 2025-10-14 20:33:00 +02:00
Andrei Kortunov
ed15542d8b Use abbreviation for GUI stat name 2025-10-14 11:14:00 +04:00
Alexei Kotov
6e8322c466 Merge branch 'focus_unify' into 'master'
Unify focus object terminology

See merge request OpenMW/openmw!4949
2025-10-13 23:19:52 +03:00
Dave Corley
7e41d81c9e Always use squared distance in types.Actor.isInActorsProcessingRange 2025-10-13 23:18:31 +03:00
elsid
7bf1ea32b0
Disable not working tests for MSVC
std::streambuf in MSVC does not support buffers larger than 2**31 - 1:
https://developercommunity.visualstudio.com/t/stdbasic-stringbuf-is-broken/290124

Simple test to check if it works:

TEST(IMemStreamTest, shouldRead)
{
    std::string src(std::numeric_limits<uint32_t>::max() / 2 + 1, '\0');
    Files::IMemStream stream(src.data(), src.size());
    std::string dst(src.size(), '\0');
    stream.read(dst.data(), src.size());
    EXPECT_FALSE(stream.fail()) << std::generic_category().message(errno);
}
2025-10-12 11:11:24 +02:00
elsid
ab4637f6c7
Do not rely on std::string::reserve
Passing an object with capacity through std::ostringstream may change
its capacity. Use malloc instead to make sure the memory is allocated.
2025-10-12 11:11:22 +02:00
Evil Eye
f783993c56 Don't mark skill affecting effects as invalid if the target is a creature 2025-10-11 14:47:45 +02:00
Evil Eye
b905836f45 Remove invalid permanent effects 2025-10-11 13:21:22 +02:00
Andrei Kortunov
48e1ee3ac7 Unify focus object terminology 2025-10-11 13:01:26 +04:00
Alexei Kotov
c75aed5175 Merge branch 'solidlyrooted' into 'master'
Don't break LuaUi::Element's invariant

Closes #8720

See merge request OpenMW/openmw!4930
2025-10-11 11:59:17 +03:00
Alexei Kotov
1afbc6ba63 Fix UB in item view controller refocusing during redraw (#8724)
std::clamp's upper bound goes negative when there are no items
2025-10-11 10:26:41 +03:00
Alexei Kotov
3f6ecc4de1 Merge branch 'shield_sheath' into 'master'
Fix shield equip and unequip animations, add docs for shield sheathing feature

See merge request OpenMW/openmw!4936
2025-10-11 09:13:30 +03:00
Alexei Kotov
afe4edc3c3 Merge branch 'fix_bsatool_afl_findings' into 'master'
Fix AFL findings in bsatool

See merge request OpenMW/openmw!4925
2025-10-11 08:57:48 +03:00
elsid
c87cc643d1
Add tests for BSAFile 2025-10-06 00:02:32 +02:00
elsid
d7f6d7c13c
Add unit tests for CompressedBSAFile 2025-10-06 00:02:32 +02:00
elsid
0bae2b14b1
Do not implicitly convert QByteArray to const char*
Operators supporting this conversion can be disabled via
QT_NO_CAST_FROM_BYTEARRAY breaking the build. For example:

https://koschei.fedoraproject.org//package/openmw
https://kojipkgs.fedoraproject.org/work/tasks/5096/137735096/build.log
2025-10-05 23:52:25 +02:00
AnyOldName3
06cb00bb0b Resolve merge conflicts from !4924 and !4928
luamanagerimp still needs float frameDuration, and reordering a bunch of fields in the scene manager conflicted with changing the type of maxanisotropy.
2025-10-04 23:08:20 +01:00
Andrei Kortunov
d9b441ccaa Fix shield equip and unequip animations, add docs for shield sheathing feature (bug 8734) 2025-10-04 16:07:15 +04:00
Alexei Kotov
ef05e089ab Merge branch 'encucumberance' into 'master'
Update encumbrance unconditionally (#8729)

Closes #8729

See merge request OpenMW/openmw!4934
2025-10-04 11:14:35 +03:00
Alexei Kotov
d9bcc3dc4f Merge branch 'kelapasawit8123' into 'master'
Make weapon usage less restrictive

See merge request OpenMW/openmw!4906
2025-10-03 21:03:14 +03:00
Evil Eye
50ffc908e8 Use vformat_to and add more tests 2025-10-03 17:21:52 +02:00
Evil Eye
5dcb0e19fb Use static_cast for consistency 2025-10-02 18:15:33 +02:00
Alexei Kotov
0eb1a79b00 Update encumbrance unconditionally (#8729)
The flag is only set when items are physically added/removed, which doesn't happen during barter
2025-10-02 08:29:24 +03:00
Alexei Kotov
f60875dd8f Merge branch 'soontm' into 'master'
Bump us up to 0.51

See merge request OpenMW/openmw!4900
2025-10-02 00:01:10 +03:00
AnyOldName3
5b94502c7f Use float directly 2025-09-30 16:49:53 +01:00
AnyOldName3
f5889ba067 Tidying based on review
1.1 was changed to 1.f instead of 1.1f, so that's been fixed.

Reduce the number of casts in RenderingManager::updateProjectionMatrix()
2025-09-29 14:12:29 +01:00
Alexei Kotov
ae0886ae36 Make sure gamepad triggers can be bound (#8721) 2025-09-29 02:19:06 +03:00
Evil Eye
b2beb4a8f8 Don't break LuaUi::Element's invariant 2025-09-28 21:20:40 +02:00
psi29a
98973426a4 Merge branch 'dremoraspearsarepointy' into 'master'
Make Absorb Skill safe for creatures

Closes #8710

See merge request OpenMW/openmw!4926
2025-09-28 16:16:40 +00:00
Evil Eye
000c5d2a08 Ensure error marker assignment is thread safe 2025-09-25 20:47:10 +02:00
AnyOldName3
eb81cc7908 More GCC Ubuntu warnings 2025-09-23 23:47:27 +01:00
AnyOldName3
a433114937 Rearrange extern so includes don't need to start with extern/ 2025-09-23 01:04:45 +01:00
Evil Eye
d2958a17fa Make Absorb Skill safe for creatures 2025-09-22 22:13:03 +02:00
Evil Eye
4847995861 Bump cache keys 2025-09-22 21:28:52 +02:00
Evil Eye
b15ae08a07 Reduce type conversions in books 2025-09-22 20:59:13 +02:00
Evil Eye
5308e22f6d Address more conversion warnings in the engine 2025-09-22 18:10:34 +02:00
Evil Eye
e77ce5a507 Fix KeywordSearch 2025-09-22 17:12:24 +02:00
Evil Eye
478df08433 Address more engine conversion warnings 2025-09-22 13:33:27 +02:00
Evil Eye
bcad4a7fd5 Address more conversion warnings in the engine 2025-09-21 17:45:38 +02:00
Evil Eye
fc700c61fd Resolve various conversion warnings in mwgui 2025-09-21 15:58:38 +02:00
Evil Eye
39f17f5651 Remove scaled GlyphInfo copy 2025-09-21 12:32:31 +02:00
Evil Eye
1caac90e93 Add btVector3 -> osg::Vec3f helper 2025-09-21 12:14:50 +02:00
Evil Eye
b845e07ad6 Address various conversion warnings in openmw 2025-09-21 12:00:59 +02:00
Evil Eye
9523f46409 Address conversion warnings in opencs 2025-09-21 10:45:21 +02:00
elsid
91ccb0fe8d
Use proper naming for BSA File and Hash members 2025-09-20 19:21:17 +02:00
Evil Eye
f181420cce Address conversion warning in the launcher 2025-09-20 16:22:18 +02:00
Evil Eye
ddd614f815 Address conversion warnings in essimporter 2025-09-20 16:20:47 +02:00
Evil Eye
ea2ff63bf6 Address conversion warnings in esmtool 2025-09-20 16:16:01 +02:00
Evil Eye
ff79c2d826 Turn menu.saveGame into a delayed action 2025-09-20 10:39:43 +00:00
Evil Eye
71fa8c9f7d Fix conversion warnings in components_tests 2025-09-20 12:12:31 +02:00
Alexei Kotov
1182004937 Use l10n for inventory gamepad actions 2025-09-14 15:46:02 +03:00
Alexei Kotov
b0055ec8e7 Use l10n for map gamepad actions 2025-09-14 03:23:48 +03:00
Alexei Kotov
baf575e594 Add Sex into OpenMW
...as well as the other lines required to expose the race menu gamepad actions to l10n and use them
2025-09-14 01:41:11 +03:00
Kuyondo
4168b6d02e less restrictive probes and lockpicks equipping too 2025-09-11 22:08:58 +08:00
psi29a
9257beea4e Merge branch 'bmdhacks-controller-deslect-bug' into 'master'
Controller tooltip display preferences survive mouse movement

See merge request OpenMW/openmw!4858
2025-09-09 21:00:56 +00:00
bmdhacks
072504d3b7 fixed a tooltip bug in spell creation and made controller tooltip toggling a helper function in the window manager 2025-09-06 09:50:27 -07:00
Alexei Kotov
9a92904f11 Use l10n for inventory offer action 2025-09-05 10:11:10 +03:00
Alexei Kotov
1740e6bac4 Use l10n for stats window scroll down action 2025-09-05 10:00:15 +03:00
Alexei Kotov
3159c363a1 Use l10n for trading menu offer action 2025-09-05 09:49:05 +03:00
Alexei Kotov
bd4d844b87 Use l10n for repair gamepad actions 2025-09-05 09:33:22 +03:00
Alexei Kotov
b7d9d01cc8 Use l10n for wait dialog gamepad actions 2025-09-05 09:29:34 +03:00
Alexei Kotov
1ab32749ee Use l10n for travel travel window action 2025-09-05 09:20:16 +03:00
Alexei Kotov
43617286fb Use l10n for scroll down scroll gamepad action 2025-09-05 09:16:21 +03:00
bmdhacks
81fc72a5b8 clang-format 2025-09-04 18:30:35 -07:00
bmdhacks
cf51812a6f Controller cursor highlight fixes
This resolves two issues:
1) Ensure that cursor tooltips stay displayed when buying spells or selling or consuming items and any other place where actions can highlight new items.
2) Ignore small mouse movements if we've just warped the mouse pointer a long distance.  This resolves an issue where slight cursor wiggle will trigger after changing the dpad highlight.
2025-09-04 18:12:58 -07:00
bmdhacks
12aef44fe1 Controller tooltip display preferences survive mouse movement 2025-09-04 18:12:58 -07:00
Alexei Kotov
cac8d59db9 Use l10n for journal gamepad actions 2025-09-05 00:44:58 +03:00
Alexei Kotov
4252098919
Merge branch 'gamepadactionl10n' into 'master'
Translate gamepad actions, part 2

See merge request OpenMW/openmw!4907
2025-09-04 23:41:28 +03:00
Kuyondo
d78480120d readable if statement 2025-09-03 16:30:36 +08:00
Evil Eye
3ec0812b91 Don't reference a potential end iterator 2025-09-02 17:39:35 +02:00
Evil Eye
14e1ec6d87 Use pathhelpers to populate Collections 2025-09-01 17:57:44 +02:00
Alexei Kotov
253ac42520 Use newly exposed UI action lines in more menus 2025-09-01 18:00:54 +03:00
Alexei Kotov
ea3240ce03 Merge branch 'vfs_normalized_path_23' into 'master'
Use normalized path in Lua vfs bindings (#8138)

See merge request OpenMW/openmw!4903
2025-09-01 15:06:27 +03:00
Alexei Kotov
77f36dcdac Merge branch 'gamepadactionl10n' into 'master'
Translate gamepad actions, part 1

See merge request OpenMW/openmw!4888
2025-09-01 15:06:02 +03:00
psi29a
1d08d3b900 Merge branch 'itemusage' into 'master'
Drop objects that cannot be equipped after Lua lets us equip them (#8675)

Closes #8675

See merge request OpenMW/openmw!4870
2025-08-31 18:00:29 +00:00
psi29a
0ab79c4370 Merge branch 'formatcomponents' into 'master'
Remove StringUtils::format from components

See merge request OpenMW/openmw!4880
2025-08-31 17:59:35 +00:00
psi29a
b0a27fd041 Merge branch 'encumbrance' into 'master'
Properly detect overencumbrance for zero capacity again

See merge request OpenMW/openmw!4883
2025-08-31 17:59:24 +00:00
Kuyondo
ff40de89aa less restrictive ammo usage 2025-08-31 18:14:49 +08:00
Evil Eye
5d4fc96062 Bump us up to 0.51 2025-08-30 14:21:31 +02:00
Evil Eye
a0863290be Merge branch 'rm_small_tu' into 'master'
Remove small translation units

See merge request OpenMW/openmw!4895
2025-08-30 07:45:30 +00:00
elsid
1348065be3
Use normalized path in Lua vfs bindings 2025-08-29 22:47:00 +02:00
Nelsson Huotari
5b01ca99f8 Merge branch 'smoothheightcrashesagain' into 'master'
Editor: Fix crash if the smoothed terrain vertex belongs to an unloaded cell (#8686)

Closes #8686

See merge request OpenMW/openmw!4891
2025-08-29 20:06:34 +00:00
elsid
dea69b229c
Remove small translation units
Remove .cpp files with small amount of code which don't have additional
includes compared to corresponding .hpp files. This reduces the total
size of preprocessed code of the project and should reduce compilation
time.
2025-08-29 00:41:47 +02:00
Alexei Kotov
60d31e978a Merge branch 'parameter_naming' into 'master'
Fix and enforce parameter naming (#8424)

See merge request OpenMW/openmw!4890
2025-08-28 14:10:44 +03:00
Cody Glassman
bfc25a3194 Make most weather bindings read/write 2025-08-28 03:22:33 +03:00
Alexei Kotov
35cc6e6daf Editor: Fix crash if the smoothed terrain vertex belongs to an unloaded cell (#8686) 2025-08-27 16:30:56 +03:00
elsid
0f36b7fc97
Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
Alexei Kotov
12b2887e58 Fix build 2025-08-27 04:22:17 +03:00
Alexei Kotov
49d769cb7e Update English/French/Russian Interface translations
Rename Soul line to be more generic and appropriate to the contents
2025-08-27 03:36:07 +03:00
Alexei Kotov
d3f2607d34 Expose dialogue and enchanting actions to l10n 2025-08-27 03:36:07 +03:00
Alexei Kotov
0b99fafd01 Expose class dialog, companion and container actions to l10n 2025-08-27 03:36:07 +03:00
Alexei Kotov
cc541ec0eb Expose alchemy, birthsign and book actions to l10n 2025-08-27 03:36:07 +03:00
psi29a
0c95d62e89 Merge branch 'necromanticnightmare' into 'master'
Don't add magic effects to dead actors

Closes #8680

See merge request OpenMW/openmw!4882
2025-08-26 06:55:47 +00:00
Evil Eye
79a1f1c3d2 Address feedback 2025-08-25 16:46:04 +02:00
psi29a
5fa6325695 Merge branch 'iternomore' into 'master'
Remove journal iterator methods

See merge request OpenMW/openmw!4865
2025-08-25 07:24:36 +00:00
Alexei Kotov
b590cd3421 Merge branch 'shuriken' into 'master'
Pass ammo to Hit handler by record id

Closes #8664

See merge request OpenMW/openmw!4879
2025-08-25 09:14:51 +03:00
Alexei Kotov
23ef33b08f Properly detect overencumbrance for zero capacity again 2025-08-24 23:18:32 +03:00
Evil Eye
49de215112 Don't add magic effects to dead actors 2025-08-24 19:03:53 +02:00
Evil Eye
44fe703827 Use correct string types in SettingsWindow 2025-08-24 16:05:41 +02:00