Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#606084 05/07/17 09:51 AM
Joined: Jul 2017
P
stranger
OP Offline
stranger
P
Joined: Jul 2017
messed with Weapon.txt
"c:\Program Files (x86)\Steam\steamapps\common\Divinity Original Sin Enhanced Edition\Data\Editor\Templates\Stats\Shared\Generated\Data\Weapon.txt"

is the knight 2h starting weapon

new entry "WPN_KnightlySourceHunter_2H"
type "Weapon"
using "_TwoHandedSwords"
data "Act part" "1"
data "Requirements" "Strength 5"
data "Damage" "3"
data "Damage Range" "4"
data "DamageBoost" "14.7"
data "Durability" "8"
data "ComboCategory" "TwoHandedSword"

do I need to copy this file some other place for the change to take effect ? (WHERE ?)


EDIT : found it abraxas post
http://larian.com/forums/ubbthreads.php?ubb=showflat&Number=586168#Post586168

"c:\Program Files (x86)\Steam\steamapps\common\Divinity Original Sin Enhanced Edition\Data\Public\Shared\Stats\Generated\Data\Weapon.txt"

Question in what stage is the community regarding the weapon damage formula ?

so default values inherited for this weapon 5, 1 and 14.7 . How does that translate to 22 - 28 damage range ??

(((1 + 1) * 2 * (100 + 14.7)) / 100) * 5 = 22.94
(((1 + 1) * 2 * (100 + 14.7)) / 100) * (5 + 1) = 27.528

the min value is really weird - game seems to LOVE rounding UP. Even simple round would give 23. Rounding down for min value makes next to no sense ..

The above formula gets even more wrong when I use CE to increase the weapon's item level ...

EDIT2:

damage "5"
damage range "0" blows the above formula out of the water
damage range on weapon still 22-26. NOT 22-22 .
There is a minimum damage range >0 and <1 ?!?!

Went further 5/0/0 19-22 ??

Last edited by peddroelm; 05/07/17 12:36 PM.
Joined: Jul 2017
P
stranger
OP Offline
stranger
P
Joined: Jul 2017
moving on with the knowledge that the above formula is a hot pile of garbage

0/0/0 3 - 6
1/0/0 5 - 8
2/0/0 8 -11
3/0/0 12 -15
4/0/0 15 -18
5/0/0 19 -22
6/0/0 23- 26
7/0/0 28- 31
8/0/0 33-36
9/0/0 39-42
10/0/0 46-49

10/0/50 69-74

damage is not a direct multiplier on min damage ! 46 not 10 * 5 ; Also no 0*

the damage bonus appears to be indeed multiplicative 46 * 1.5 = 69 ; 49 * 1.5 = 73.5 ..


10/ 0/0 46-49 (49 - 46 = 3)
10/ 1/0 46-51 (51 - 46 = 5)
10/ 2/0 46-54 (54 - 56 = 8)
10/ 3/0 46-58 (58 - 46 = 12)
10/ 4/0 46-61 (61 - 46 = 15)
10/ 5/0 46-65 (65 - 46 = 19)
10/ 6/0 46-69 (69 - 46 = 23)
10/ 7/0 46-74 (74 - 46 = 28)
10/ 8/0 46-79 (79 - 46 = 33)
10/ 9/0 46-85 (85 - 46 = 39)
10/10/0 46-92 (92 - 46 = 46)

same progression as damage for damage range

y= x^1.51 + x +3 !??!

better and much more horrific approximation from https://mycurvefit.com/ :
y = 34894220 + (3.623067 - 34894220)/(1 + (x/128419.1)^1.442074) ?!?!?!?!?!

Last edited by peddroelm; 06/07/17 02:50 AM.
Joined: Jul 2017
P
stranger
OP Offline
stranger
P
Joined: Jul 2017
messing with item level CE
0,0,0, 1 3 - 6
0,0,0, 2 4 - 8
0,0,0, 3 6 - 12
0,0,0, 4 8 - 16
0,0,0, 5 9 - 18
0,0,0, 6 11 - 22
0,0,0, 7 13 - 26
0,0,0, 8 14 - 28
0,0,0, 9 16 - 32
0,0,0,10 18 - 36
...
1000 1651- 3302

https://mycurvefit.com/ craziness
y = 12338000 + (1.04825 - 12338000)/(1 + (x/7718790)^0.9964415)

weapon level also NOT a direct multiplier to minimum damage :((

Last edited by peddroelm; 06/07/17 03:16 AM.
Joined: Jun 2015
F
enthusiast
Offline
enthusiast
F
Joined: Jun 2015
Although I have never figured out the formula for weapon damage - and the one I found on some wiki was definitely wrong - I built a data collection.

A download link to a LibreOffice spreadsheet with values for a couple of things can be found in the thread A data collection for stats.
Data was taken for item levels 1 through 30 and weapon damage data for input values from 0 through 10 (which are the allowed values according to Modifiers.txt and ValueLists.txt).

As far as I remember, the 'Damage Multiplier' is really a direct multiplier, but since the base value you calculate is wrong, you get wrong final values...

Maybe you can figure out the correct formula, my math classes were way too long ago ;-)

Larian rarely ever releases their formulas, but with some luck they will. They've done it with an armor formula lately...

Joined: Jul 2017
P
stranger
OP Offline
stranger
P
Joined: Jul 2017
4 parameter logistic regression (4PL). It is quite useful for dose response and/or receptor-ligand binding assays, or other similar types of assays. As the name implies, it has 4 parameters that need to be estimated in order to “fit the curve”. The model fits data that makes a sort of S shaped curve. The equation for the model is:

y = d + (a-d)/(1+(x/c)^b)

Of course x = the independent variable and y = the dependent variable just as in the linear model above. The 4 estimated parameters consist of the following:

a = the minimum value that can be obtained (i.e. what happens at 0 dose)

d = the maximum value that can be obtained (i.e. what happens at infinite dose)

c = the point of inflection (i.e. the point on the S shaped curve halfway between a and d)

b = Hill’s slope of the curve (i.e. this is related to the steepness of the curve at point c).


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5