Author Topic: Max Weight for Ranged WPF Penalty?  (Read 3128 times)

0 Members and 1 Guest are viewing this topic.

Offline Kaido

  • Earl
  • ******
  • Renown: 431
  • Infamy: 26
    • View Profile
Re: Max Weight for Ranged WPF Penalty?
« Reply #15 on: October 21, 2014, 07:46:51 am »
0
It's updated.

If you have greasemonkey/tampermonkey, you can also use this for the c-rpg website (click on raw): https://gist.github.com/smj72/bd81b6fd62ff2b8b5a89

The wpf reduction is something along the lines of ((abs(100 - effective weight * (2/3)) * wpf) / 100). Ranged is the same, but take off the (2/3), then the PD/PT penalty is applied afterwards.

Works tnx :mrgreen:

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #16 on: October 21, 2014, 04:11:20 pm »
0
what i was asking is, how much effective wpf do you need to use 7pt?

Offline Mallets

  • Earl
  • ******
  • Renown: 394
  • Infamy: 22
  • cRPG Player
    • View Profile
  • Game nicks: Mallets and his family
Re: Max Weight for Ranged WPF Penalty?
« Reply #17 on: October 21, 2014, 06:10:35 pm »
0
what i was asking is, how much effective wpf do you need to use 7pt?

Naked... you should need at least 78 base WPF to be able to have 1 Effective WPF.

If you want to wear armor... then your build will come into play... and you'll have to use the formula that San listed out.  Or just use San's calculator (link below).  But in you stats and your armor weights.  It will show how much Effective WPF you have after all penalties.

https://0b176db51ec327b013e6b005fde2cca145eb9267.googledrive.com/host/0Bzs1vJv0tQLHZ3AwLUQ0Tkt0djg/calc.html


Also... to be safe... make a STF thrower to test to make sure that with whatever armor you want to where... you can still pick up thrown weapons.  Of course, keep in mind... if you decide to wear heavier armor... the may put you with a negative Effective WPF... meaning you can't pick up thrown weapons.

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #18 on: October 21, 2014, 08:22:39 pm »
0
so as long as I have a positive effective wpf i can pick up my 6pt throwing lances?

As I have a 2 effective wpf, and i can't pick em up D:
« Last Edit: October 21, 2014, 08:26:22 pm by tkn123 »

Offline Mallets

  • Earl
  • ******
  • Renown: 394
  • Infamy: 22
  • cRPG Player
    • View Profile
  • Game nicks: Mallets and his family
Re: Max Weight for Ranged WPF Penalty?
« Reply #19 on: October 21, 2014, 09:02:32 pm »
0
so as long as I have a positive effective wpf i can pick up my 6pt throwing lances?

As I have a 2 effective wpf, and i can't pick em up D:

Either your calculations are wrong?  Or San's are... if you used his calc.  Make sure you include your IF and PT when calculating with his calculator (along with all your proper weights).  It's all in the Weapon Damage section of his calculator.

If you have a positive Effective WPF... you are suppose to be able to pick up any thrown weapons that you have the PT for.  Meaning, if you have 4 PT, you still couldn't pick up Throwing Lances.  But with your 6 PT and 2 Effective WPF, you should be able to pick up all thrown weapons.

San, are we missing something here.  Positive Effective WPF allows you to pick up thrown weapons, correct?

Offline San

  • Developer
  • ******
  • Renown: 1456
  • Infamy: 143
  • cRPG Player A Gentleman and a Scholar
  • 1/Sympathy = Divide By Zero
    • View Profile
    • My youtube Brawl videos
  • Faction: Chaos
  • Game nicks: San_of_Chaos
  • IRC nick: San
Re: Max Weight for Ranged WPF Penalty?
« Reply #20 on: October 21, 2014, 09:08:19 pm »
0
Yep. I don't know how the game rounds, though, but I just translated the formula from the code. Does the weight penalty first, then the PT penalty. He needs above 66wpf after the armor penalty for 6PT. You'll get the proficiency too low warning if you don't have enough.

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #21 on: October 21, 2014, 09:11:54 pm »
0
Well I have enough wpf, did it in your calc, so there must be something missing

Offline Huscarlton_Banks

  • Earl
  • ******
  • Renown: 404
  • Infamy: 15
  • cRPG Player
  • Blatant nudge spammer
    • View Profile
Re: Max Weight for Ranged WPF Penalty?
« Reply #22 on: October 21, 2014, 10:09:52 pm »
0
Could you list your armors, power throw skill, and WPF before penalties?

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #23 on: October 21, 2014, 10:14:26 pm »
0
Sure:

I put in the calculator:

PT 7
IF 7
WM 7 - 170

Armet
Milanese Plate
Heavy Gauntlets
Cased Greaves

With the exact weights of the armour it comes up with 2 effective wpf.

Offline Huscarlton_Banks

  • Earl
  • ******
  • Renown: 404
  • Infamy: 15
  • cRPG Player
  • Blatant nudge spammer
    • View Profile
Re: Max Weight for Ranged WPF Penalty?
« Reply #24 on: October 21, 2014, 10:24:46 pm »
0
I'm getting a result of 1 WPF left (which should still mean you should be able to pick up your lances), maybe the ingame script is rounding things differently.

Puzzling.

(click to show/hide)

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #25 on: October 21, 2014, 10:27:12 pm »
0
Well yeah so the formula must be wrong or you must of missed something :/

Offline San

  • Developer
  • ******
  • Renown: 1456
  • Infamy: 143
  • cRPG Player A Gentleman and a Scholar
  • 1/Sympathy = Divide By Zero
    • View Profile
    • My youtube Brawl videos
  • Faction: Chaos
  • Game nicks: San_of_Chaos
  • IRC nick: San
Re: Max Weight for Ranged WPF Penalty?
« Reply #26 on: October 21, 2014, 10:51:37 pm »
0
Code for threshold

Code: [Select]
(val_div, ":total_weight", 10),
(agent_get_troop_id, ":troop", ":agent_no"),
(troop_get_slot, ":weight_threshold",":troop", slot_troop_crpg_atr_str),
(troop_get_slot, ":weight_threshold_if",":troop", slot_troop_crpg_skl_ironflesh),
(val_div, ":weight_threshold", 3),
(val_add, ":weight_threshold", 1),
(val_max, ":weight_threshold", ":weight_threshold_if"),
(val_max, ":weight_threshold", 6),
(val_sub, ":total_weight", ":weight_threshold"),
(assign, ":weight_penalty", 0),
(try_begin),
(gt, ":total_weight", 0),
(set_fixed_point_multiplier, 1000),
(assign, ":weight_penalty", ":total_weight"),
(convert_to_fixed_point, ":weight_penalty"),
(assign, ":exp", 1),
(convert_to_fixed_point, ":exp"),
(val_mul, ":exp", 112),
(val_div, ":exp", 100),
(store_pow, ":weight_penalty", ":weight_penalty", ":exp"),
(convert_from_fixed_point, ":weight_penalty"),
(try_end),

Code for weight penalty:

Code: [Select]
(try_begin),
#weight penalty/1.5 as %
(assign, ":weight_penalty_percent", ":weight_penalty"),
(try_begin),
(this_or_next|eq, ":wpf_id", wpt_archery), #Ranged classes receive 1.5x the penalty of melee
(this_or_next|eq, ":wpf_id", wpt_crossbow),
(eq, ":wpf_id", wpt_throwing),
(val_mul, ":weight_penalty_percent", 3),
(else_try),
(val_mul, ":weight_penalty_percent", 2),
(try_end),
(val_div, ":weight_penalty_percent", 3),
(val_sub, ":weight_penalty_percent", 100),
(val_abs, ":weight_penalty_percent"),
(val_mul, ":new_value", ":weight_penalty_percent"),
(val_div, ":new_value", 100),
(try_end),

Then it subtracts 11*PT and checks if the final wpf is less than 1. Either I made an error somewhere or there are rounding issues. I don't really know how the game rounds values, and it doesn't deal with floating points very well.

Offline Huscarlton_Banks

  • Earl
  • ******
  • Renown: 404
  • Infamy: 15
  • cRPG Player
  • Blatant nudge spammer
    • View Profile
Re: Max Weight for Ranged WPF Penalty?
« Reply #27 on: October 21, 2014, 11:07:09 pm »
0
Found the error.

Quote
(troop_get_slot, ":weight_threshold",":troop", slot_troop_crpg_atr_str),
(troop_get_slot, ":weight_threshold_if",":troop", slot_troop_crpg_skl_ironflesh),
         (val_div, ":weight_threshold", 3),
         (val_add, ":weight_threshold", 1),
         (val_max, ":weight_threshold", ":weight_threshold_if"),
         (val_max, ":weight_threshold", 6),
         (val_sub, ":total_weight", ":weight_threshold"),
         (assign, ":weight_penalty", 0)

IF currently doesn't give the proper bonus, because it is never multiplied by 2.

Offline tkn123

  • Baron
  • ****
  • Renown: 97
  • Infamy: 13
  • cRPG Player Sir Black Pawn
    • View Profile
  • Faction: Norsemen
  • Game nicks: Shagga
Re: Max Weight for Ranged WPF Penalty?
« Reply #28 on: October 21, 2014, 11:17:32 pm »
0
Can that be fixed?

Offline Huscarlton_Banks

  • Earl
  • ******
  • Renown: 404
  • Infamy: 15
  • cRPG Player
  • Blatant nudge spammer
    • View Profile
Re: Max Weight for Ranged WPF Penalty?
« Reply #29 on: October 21, 2014, 11:31:21 pm »
0
San said he was probably going to change the formula for the STR/IF factor to:

Quote
...Probably Str/3 + IF

It'll probably come with the hotfix for some missing textures/models/etc.