Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 06-11-2005, 10:21 AM   #1 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default Parrying not increasing, where to look?

Today I discovered that Parry skill does not increase, no matter what I try. And even worse, it seems to have been going on for a long time, as it happens with all the versions of RunUO I still have on my harddisk. I'm not using it for other people yet, so that why I never noticed. I do have a lot of modified scripts, but even after reverting my own changes to basearmor and baseweapon and aos, parrying will not raise. What's left is custom resources (one version of RunUO I have uses a modified version of GoldDraco's custom crafting system, the other one uses a modified version of an old Daat OWL version, both have the problem), the Diablo2 socket system, and that script where you can specify all skillgains. But even when I set parry to 100% chance to increase, it won't raise. All other skills are raising fine.

Where is the check that increases parry? Where else can I look?
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 11:14 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ankhesentapemkah
Today I discovered that Parry skill does not increase, no matter what I try. And even worse, it seems to have been going on for a long time, as it happens with all the versions of RunUO I still have on my harddisk. I'm not using it for other people yet, so that why I never noticed. I do have a lot of modified scripts, but even after reverting my own changes to basearmor and baseweapon and aos, parrying will not raise. What's left is custom resources (one version of RunUO I have uses a modified version of GoldDraco's custom crafting system, the other one uses a modified version of an old Daat OWL version, both have the problem), the Diablo2 socket system, and that script where you can specify all skillgains. But even when I set parry to 100% chance to increase, it won't raise. All other skills are raising fine.

Where is the check that increases parry? Where else can I look?
You are using a shield right....
Phantom is offline   Reply With Quote
Old 06-11-2005, 01:34 PM   #3 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

Yes of course. And Parrying is set to raise. And I'm not at the skillcap. And I'm fighting with monsters with similar weaponskill (but also tried everything else). It's not even going from 0.0 to 0.1, and I've set it to 80 for my paladin and it hasn't changed in two days of playtesting either.

I haven't made changes to baseshield.cs
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 02:27 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ankhesentapemkah
Yes of course. And Parrying is set to raise. And I'm not at the skillcap. And I'm fighting with monsters with similar weaponskill (but also tried everything else). It's not even going from 0.0 to 0.1, and I've set it to 80 for my paladin and it hasn't changed in two days of playtesting either.

I haven't made changes to baseshield.cs
Modify it so its not equal to above like 10
Phantom is offline   Reply With Quote
Old 06-11-2005, 02:42 PM   #5 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

No effect at 15.0, 30.0 and 50.0. Even after using a new character and bashing solen workers till my swordmanship ends up at 55.0 from 49.0, I haven't gained a single 0.1 in parry. My char is on foot and taking damage as it should.

EDIT: I just set parry to 200, and it doesn't seem to block anything. Going to see if I can find the reason for that...
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 03:13 PM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ankhesentapemkah
No effect at 15.0, 30.0 and 50.0. Even after using a new character and bashing solen workers till my swordmanship ends up at 55.0 from 49.0, I haven't gained a single 0.1 in parry. My char is on foot and taking damage as it should.

EDIT: I just set parry to 200, and it doesn't seem to block anything. Going to see if I can find the reason for that...
Make sure your client is set to show gain at .01 otherwise it won't tell you. But you might have gained.

Its not possible for one skill not to gain, if its not gaining your doing something wrong.
Phantom is offline   Reply With Quote
Old 06-11-2005, 03:25 PM   #7 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

I've got my skill menu open and looking in there. It definately isn't gaining, and I can't find the cause. The parry section of baseweapon.cs is identical to the default baseweapon.cs that comes with the fresh RunUO 1.0 (which IS working)

It's just not parrying (thus no gain?). If I set my weapon skill to 0, and parry to 99 or even well above 100, I still get hit EVERY time in close combat (sword and shield equipped). Even with dex above 80.
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 03:35 PM   #8 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

Just replaced baseshield.cs with the distro one to be sure, it's still not blocking and not gaining either.
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 04:24 PM   #9 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Your using an unmodified release?
Phantom is offline   Reply With Quote
Old 06-11-2005, 04:34 PM   #10 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

no as I said in my initial post, but there are no changes to the parry section in BaseWeapon.cs, and I use an unmodified BaseShield.cs

So, where should I look now?
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 04:37 PM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ankhesentapemkah
no as I said in my initial post, but there are no changes to the parry section in BaseWeapon.cs, and I use an unmodified BaseShield.cs

So, where should I look now?
Try a shard without any changes, if it works there we know its one of your changes.
Phantom is offline   Reply With Quote
Old 06-11-2005, 04:44 PM   #12 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

It is, I already know that. That's why I asked where to look. What can cause parrying to stop functioning alltogher, without giving errors?
Ankhesentapemkah is offline   Reply With Quote
Old 06-11-2005, 05:02 PM   #13 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ankhesentapemkah
It is, I already know that. That's why I asked where to look. What can cause parrying to stop functioning alltogher, without giving errors?
Broken Code....

Do this, take out each system one by one, if you do this you will find the cause of the problem.
Phantom is offline   Reply With Quote
Old 06-11-2005, 05:02 PM   #14 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

well, this is the code block in baseweapon.cs the AbsorbDamageAOS call that handles parrying and parry skill gain around line 900

Code:
if ( defender.Player || defender.Body.IsHuman )
			{
				BaseShield shield = defender.FindItemOnLayer( Layer.TwoHanded ) as BaseShield;

				bool blocked = false;

				// Dexterity below 80 reduces the chance to parry 
				double chance = ( defender.Skills[SkillName.Parry].Value * 0.0030 );
				if ( defender.Dex < 80 )
					chance = chance * (20 + defender.Dex) / 100;

				if ( shield != null )
				{
					blocked = defender.CheckSkill( SkillName.Parry, chance );
				}
The CheckSkill call will handle the skill gain.
Make sure that AbsorbDamageAOS is being called, and that the code block above is being executed.
Check the AbsorbDamage method in baseweapon.cs as well since that is what calls AbsorbDamageAOS.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-11-2005, 05:20 PM   #15 (permalink)
Forum Expert
 
Ankhesentapemkah's Avatar
 
Join Date: Oct 2003
Posts: 344
Default

Ok, I think I got it now, had some lines messed up in AbsorbDamage. Apparantly this was done a long time ago, when I was messing around to get an armorsystem that absorbs flat amounts of damage... I managed to get that working with another system, but apparantly there were still some changes left over from the old attempts.

Code:
		public virtual int AbsorbDamage( Mobile attacker, Mobile defender, int damage )
		{
			if ( Core.AOS )
				return AbsorbDamageAOS( attacker, defender, damage );
was messed up, replaced it with distro code and it works fine now.

Thanks for all the help Phantom and ArteGordon, wouldn't have found it so quickly on my own!
Ankhesentapemkah is offline   Reply With Quote
Old 07-10-2005, 09:44 PM   #16 (permalink)
 
Join Date: Jun 2005
Age: 30
Posts: 94
Default

Best thing to do is just get the distro one
Nomuk is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5