Reversing Morrowind's formulas
- sirherrbatka
- Posts: 2159
- Joined: 07 Aug 2011, 17:21
Re: Reversing Morrowind's formulas
If you could provide informations about marksman, please. It is probabbly very much like meele combat, but we need to check it… so 0.29.0 will have BOOOOWS, CROOOSBOWS, THROWING STAAAAAAAARS.
Re: Reversing Morrowind's formulas
Ok. (:
If somebody has any information that can speed up process -- please let me know.
(For example, IDA Pro database for MW binaries with smth already researched will be very helpful)
If somebody has any information that can speed up process -- please let me know.
(For example, IDA Pro database for MW binaries with smth already researched will be very helpful)
- potatoesmaster
- Posts: 112
- Joined: 26 Dec 2012, 17:01
Re: Reversing Morrowind's formulas
it seems we don't have the formulae to calculate fatigue consumption when running, swimming and attacking neither.endorph wrote:What exact formulas do we need now?
Re: Reversing Morrowind's formulas
I think most of the investigation that has been done has been just observing things in-game, not actual disassembly.endorph wrote:Ok. (:
If somebody has any information that can speed up process -- please let me know.
(For example, IDA Pro database for MW binaries with smth already researched will be very helpful)
Re: Reversing Morrowind's formulas
Posted to http://bugs.openmw.org/issues/947potatoesmaster wrote:it seems we don't have the formulae to calculate fatigue consumption when running, swimming and attacking neither.endorph wrote:What exact formulas do we need now?
Re: Reversing Morrowind's formulas
Scrawl and I managed to get auto-calculated spells working completely. Research is on the wiki.
Next up I'll figure out werewolf stuff and and all the melee formulas. If there's any more problems with important gameplay mechanics I want to hear about it.
Next up I'll figure out werewolf stuff and and all the melee formulas. If there's any more problems with important gameplay mechanics I want to hear about it.
Re: Reversing Morrowind's formulas
Since you asked what else still needs researching:
- Aggression due to Fight ratings. Implemented, but unconfirmed.
- Crime response based on Alarm and Fight ratings. Implemented, but mostly a guess. I have a feeling the crime response system is a huge clusterfuck, since I can't seem to make sense of it. We probably don't need a 100% compatible implementation. But it would be nice to at least handle the Alarm/Fight ratings correctly.
- Disposition changes in response to crime? I have no idea if that's actually the case, but there are some GMSTs for it: fDispAttacking, fDispStealing, iDispKilling...
- In general, unknown GMSTs. There are still a lot of them: https://wiki.openmw.org/index.php?title=GMSTs_(status)
Particularly interesting are the ones not described in MWSFD. Here we to know either where they are used or a confirmation that they are totally unused and can be removed.
- Aggression due to Fight ratings. Implemented, but unconfirmed.
- Crime response based on Alarm and Fight ratings. Implemented, but mostly a guess. I have a feeling the crime response system is a huge clusterfuck, since I can't seem to make sense of it. We probably don't need a 100% compatible implementation. But it would be nice to at least handle the Alarm/Fight ratings correctly.
- Disposition changes in response to crime? I have no idea if that's actually the case, but there are some GMSTs for it: fDispAttacking, fDispStealing, iDispKilling...
- In general, unknown GMSTs. There are still a lot of them: https://wiki.openmw.org/index.php?title=GMSTs_(status)
Particularly interesting are the ones not described in MWSFD. Here we to know either where they are used or a confirmation that they are totally unused and can be removed.
Re: Reversing Morrowind's formulas
Added hit chance and hit reactions (enchantments, elemental shields and disease transfer). I still have to isolate sources of damage, crits, etc.
I'll get to work on the fight/alarm/flee AI next weekend.
I'll get to work on the fight/alarm/flee AI next weekend.
Re: Reversing Morrowind's formulas
Added script globals and a large update to combat, including difficulty scaling.
Re: Reversing Morrowind's formulas
There is a problem with the magic resistance formula. Check the following test case. Creature Ash_Ghoul, has stats:
Take the following values:
resistance = 0
fatigueTerm = 1.25
spell cast chance = 50
Now cast the spell "soul trap" on it. The soul trap effect has the NoMagnitude flag. The formula according to the wiki will evaluate to:
x = 103.75
x *= 50 / castChance // x > 100, x > roll
effect will always be fully resisted
Ingame, I see something completely different. The effect is never resisted. Something is wrong here...
Code: Select all
Willpower: 73
Luck: 100
resistance = 0
fatigueTerm = 1.25
spell cast chance = 50
Now cast the spell "soul trap" on it. The soul trap effect has the NoMagnitude flag. The formula according to the wiki will evaluate to:
x = 103.75
x *= 50 / castChance // x > 100, x > roll
effect will always be fully resisted
Ingame, I see something completely different. The effect is never resisted. Something is wrong here...