Project 1999

Go Back   Project 1999 > Server Issues > Bugs

Reply
 
Thread Tools Display Modes
  #21  
Old 10-02-2013, 04:29 AM
dali_lb dali_lb is offline
Sarnak

dali_lb's Avatar

Join Date: Apr 2010
Posts: 268
Default

I suggest you search both here on P99 and other eqemu server boards.
It's stated many places that the resist calculations is off because some of it is hardcoded into the client
Reply With Quote
  #22  
Old 10-02-2013, 09:46 AM
Alecta Alecta is offline
VIP / Contributor


Join Date: Apr 2013
Location: Red '99
Posts: 271
Default

Rather than going off forum hearsay, I'd rather refer to Mob::ResistSpell in https://github.com/EQEmu/Server/blob...one/spells.cpp

The server stores all the data about the spell casting interaction (the caster, the target, resist values, level differences, etc.).

Cutting out the irrelevant stuff and partials, spell resists basically works like this:
  1. Get target resists (stored server side)
  2. Map those resists into range of 0-100 using a function (*)
  3. Generate a random number 1-100
  4. if random_value < resist chance, resist
  5. otherwise loop over the spell effects, applying them.

Even if people say "the resist calculations is off because some of it is hard-coded into the client", the client doesn't actually factor into the process above.

Not saying the process is perfect. The main problems are that
  1. the function(*) listed above is an approximation, since we don't have the original one from classic EQ and
  2. the resists that DISPLAYS client side are simply a sum of all the stats sent to it by the server. So if you for example impose a resist cap-server side of 255, the client will still display higher resists if the character has 300 mr in gear and spells.

Hope that is reasonably clear.
Reply With Quote
  #23  
Old 04-12-2014, 12:52 PM
Ciroco Ciroco is offline
Sarnak


Join Date: Apr 2013
Posts: 366
Default

Sorry for the ancient thread bump, but have we given up on this just because we don't know the original resist check code? I'm sick of dying to green casters.
Reply With Quote
  #24  
Old 04-12-2014, 01:08 PM
Daldaen Daldaen is offline
Planar Protector


Join Date: Jun 2010
Location: Kedge Keep
Posts: 9,062
Default

Quote:
Originally Posted by Ciroco [You must be logged in to view images. Log in or Register.]
Sorry for the ancient thread bump, but have we given up on this just because we don't know the original resist check code? I'm sick of dying to green casters.
Yea our resist code doesn't scale well by level. Mobs that are green should almost NEVER land a spell. Especially root/mez/charm/snare.

I got charmed by some level 35 mob the other day at level 60. Even without resist gear on that should never happen.
Reply With Quote
  #25  
Old 04-12-2014, 03:15 PM
Daldaen Daldaen is offline
Planar Protector


Join Date: Jun 2010
Location: Kedge Keep
Posts: 9,062
Default

Here is an example of what I am talking about:

[Sat Apr 12 13:53:44 2014] a deepwater goblin scowls at you, ready to attack -- You could probably win this fight.
[Sat Apr 12 13:54:05 2014] a deepwater goblin begins to cast a spell.
[Sat Apr 12 13:54:05 2014] You have been struck down by wrath. You have taken 53 points of damage.
[Sat Apr 12 13:54:14 2014] a deepwater goblin begins to cast a spell.
[Sat Apr 12 13:54:18 2014] You have been struck down by wrath. You have taken 5 points of damage.
[Sat Apr 12 13:54:20 2014] a deepwater goblin begins to cast a spell.
[Sat Apr 12 13:54:23 2014] You have been smitten. You have taken 49 points of damage.
[Sat Apr 12 13:54:25 2014] a deepwater goblin begins to cast a spell.
[Sat Apr 12 13:54:29 2014] You have been struck down by wrath. You have taken 34 points of damage.
[Sat Apr 12 13:54:31 2014] a deepwater goblin begins to cast a spell.
[Sat Apr 12 13:54:34 2014] You have been smitten. You have taken 3 points of damage.

Level 60 vs. Level 30-35~ NPC

This is with 52 Magic Resist, nothing fantastic... but the level spread should supersede the lowerish Magic Resist. No way is a mob 25-30 levels lower than you supposed to be able to stick 5 nukes, even if they are all partials. The vast majority of these should be full resists, and maybe one partial at that sort of level difference.

Yes - I accept this is a small sample etc. But this is a decent illustration of the bigger issue.
Reply With Quote
  #26  
Old 04-27-2014, 09:50 PM
Ciroco Ciroco is offline
Sarnak


Join Date: Apr 2013
Posts: 366
Default

Did some messing around in Oasis.

Me: level 57, 100 MR, 79 FR, 62 CR

an orc priest: level 15

[Sun Apr 27 20:18:34 2014] an orc priest begins to cast a spell.
[Sun Apr 27 20:18:35 2014] You are struck by a sudden burst of force. You have taken 1 point of damage.

a desert madman: level 10ish

[Sun Apr 27 20:21:10 2014] a desert madman is straight ahead.
[Sun Apr 27 20:21:11 2014] You feel your skin ignite. You have taken 1 point of damage.

2x a Dervish Cutthroat: level 12

[Sun Apr 27 20:24:55 2014] You pierce a Dervish Cutthroat for 41 points of damage.
[Sun Apr 27 20:24:55 2014] YOU are burned!
[Sun Apr 27 20:24:55 2014] You try to pierce a Dervish Cutthroat, but miss!
[Sun Apr 27 20:24:55 2014] You try to slash a Dervish Cutthroat, but miss!
[Sun Apr 27 20:24:55 2014] You slash a Dervish Cutthroat for 17 points of damage.
[Sun Apr 27 20:24:55 2014] YOU are burned!
[Sun Apr 27 20:24:55 2014] A Dervish Cutthroat tries to punch YOU, but misses!
[Sun Apr 27 20:24:55 2014] Auto attack is off.
[Sun Apr 27 20:24:58 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:01 2014] You resist the Shock of Lightning spell!
[Sun Apr 27 20:25:02 2014] Auto attack is on.
[Sun Apr 27 20:25:02 2014] You pierce a Dervish Cutthroat for 32 points of damage.
[Sun Apr 27 20:25:02 2014] YOU are burned!
[Sun Apr 27 20:25:02 2014] You try to slash a Dervish Cutthroat, but miss!
[Sun Apr 27 20:25:02 2014] You slash a Dervish Cutthroat for 20 points of damage.
[Sun Apr 27 20:25:02 2014] YOU are burned!
[Sun Apr 27 20:25:02 2014] A Dervish Cutthroat tries to punch YOU, but misses!
[Sun Apr 27 20:25:03 2014] Auto attack is off.
[Sun Apr 27 20:25:05 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:05 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:06 2014] Your skin freezes over. You have taken 7 points of damage.
[Sun Apr 27 20:25:08 2014] The spirit of wolf leaves you.
[Sun Apr 27 20:25:08 2014] You feel a bit dispelled.
[Sun Apr 27 20:25:09 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:11 2014] A Dervish Cutthroat tries to punch YOU, but YOU dodge!
[Sun Apr 27 20:25:12 2014] You resist the Column of Frost spell!
[Sun Apr 27 20:25:13 2014] A Dervish Cutthroat tries to punch YOU, but misses!
[Sun Apr 27 20:25:13 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:16 2014] A Dervish Cutthroat tries to punch YOU, but misses!
[Sun Apr 27 20:25:16 2014] a Dervish Cutthroat begins to cast a spell.
[Sun Apr 27 20:25:16 2014] You are encased in frost. You have taken 7 points of damage.
[Sun Apr 27 20:25:17 2014] A Dervish Cutthroat tries to punch YOU, but misses!
[Sun Apr 27 20:25:18 2014] Your skin freezes over. You have taken 1 point of damage.

These aren't exactly typical results as I fully resisted ~90% of the time (depending on the spell type), but I'm pretty sure these mobs shouldn't have a chance in hell to land anything on me.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:03 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.