#Player Stats Counters

1 messages · Page 1 of 1 (latest)

shadow anvil
#

Work in Progress OpenMW Lua mod that adds various counters for player stats to the stats menu. Requires Ralts' Stats Window Extender.

#

Beta release, please test and let me know if you encounter any issues! (I'm sure there will be plenty)

#

Everything works on 0.50, except Insults, which are only 0.51 (at least for now, I think Claude made a mistake, from what I can find on the docs, but I've hit my session limit for the night lmao)

#

Major issues to look out for -- stats wiping after the first load on a character. This should now be fixed, but please report if you encounter it along with your lua logs

#

I've also noted some potential odd behavior with the Times Travelled counter. It should increment whenever the player uses Recall, or travels via one of the fast travel methods. Occasionally it seems to be ticking at other increment points. And I've already accounted for external cell transfers and interior cell loads/tranistions. But one to also keep an eye on!

#

All stats can be toggled on or off, and you can also choose to hide null counters

primal panther
#

Cool mod! Are these stats built up and tracked after installing the mod or does morrowind always keep track of this information and this mod is tapping into that information repository?

shadow anvil
#

It’ll only count from the point it’s installed. As it doesn’t count by default

long reef
#

Any noticeable performance impact? 🙂

shadow anvil
#

Not that I’ve found, and I asked Mr Claude and he assured me it’s minimal 😅

shadow anvil
#

Added an option to place the primary stats window on the left hand side to better utilise the screen space. toggleable.

#

Added Total Gold Found, Favorite Weapons, Spell Effects Learned, and Favorite Spells

#

52 total possible counters!

shadow anvil
shadow anvil
fervent walrus
#

How about a NPC's met stat?

shadow anvil
shadow anvil
#

Going to add “Gods Killed” too.

#

And Regicides

long reef
peak scaffold
shadow anvil
# long reef 0... 1?

Well I was thinking of including Dukes and Princes and the Kings of Skyrim and Cyrodiil

peak scaffold
#

Also we may count Queen Mother too

fervent walrus
#

What about Companions encountered or more interesting...companions lost/killed?

long reef
fervent walrus
#

I would totally watch a let's play where someone goes in blind and just tries to do weird things to unlock all the stats on their UI

shadow anvil
#

Latest WIP for those interested in testing

vague sequoia
#

hi im getting this spammed in my log with this installed, im having a few unrelated issues so im thinking i have some weird load order issue going on, i run an ungodly amount of mods so i run into stuff like this a lot 😅 might be useful to you?

[22:03:35.443 E] L@0xc8ca[scripts/sc/actor.lua] onLoad failed: Lua error: [string "scripts/sc/actor.lua"]:20: Key not found: HandToHand
[22:03:35.443 E] stack traceback:
[22:03:35.443 E] [C]: in function 'error'
[22:03:35.443 E] [string "..."]:30: in function '__index'
[22:03:35.443 E] [string "scripts/sc/actor.lua"]:20: in function <[string "scripts/sc/actor.lua"]:15>
[22:03:35.443 E] [C]: in ?
[22:03:35.443 E] [C]: in ?

shadow anvil
#

Do you have anything installed that changes hand to hand?

#

Maybe even renames the skill

vague sequoia
#

maybe, Iron Fist?

#

hmm

#

its gonna be some weird interaction of things. SC is probably a good canary for finding issues like that haha

peak scaffold
#

skill ids should be lowercase

#

unless that, whatever it is is accessing a custom table

#

Ah, I see: in actor:lua

    local MELEE = I.Combat.ATTACK_SOURCE_TYPES.Melee
    local HAND  = I.Combat.ATTACK_SOURCE_TYPES.HandToHand

HandToHand is not a valid ATTACK_SOURCE_TYPE
in scripts/omw/combat/interface.lua

        --- @{#AttackSourceType}
        -- @field [parent=#Combat] #AttackSourceType ATTACK_SOURCE_TYPES Available attack source types
        ATTACK_SOURCE_TYPES = util.makeStrictReadOnly({
            Magic = 'magic',
            Melee = 'melee',
            Ranged = 'ranged',
            Unspecified = 'unspecified',
        }),
#

You can tell that attack is "h2h" if it is melee, attacker is an NPC, or creature that can use weapons and doesn't have a weapon.

That info though only becomes available in onHit

shadow anvil
#

Strange, I'm not getting the same log spam at all

#

But changing to TYPES.handtohand will be the way to go anyway, I take it?

peak scaffold
#

No? Types.handtohand is not a thing

shadow anvil
#

Sorry I misunderstand then, I thought you were saying that the skill IDs for those locals had to be in lowercase, and that it not being so was the cause of the log spam

peak scaffold
#

it's not skill id where you are having an issue

#

you're hoisting the enum parts into local variables

#

MELEE is I.Combat.ATTACK_SOURCE_TYPES.Melee - that's fine.
I.Combat.ATTACK_SOURCE_TYPES.HandToHand doesn't exist

shadow anvil
#

Still confused as to why I'm not seeing the log spam on my side 🤔

rustic silo
#

Silly question, but is this safe to add to an existing game, and if so, will it show existing progress?

peak scaffold
rustic silo
#

Ah well, will save for next time. Really want to see my total slaves freed.

shadow anvil
#

Yup, as Arrean says!

shadow anvil
#

(which I'll upload a beta of over the coming days)

#

thanks for raising, and thanks Arrean for the fix!