Casting and Interruption

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

Casting and Interruption

Postby skud » Sat May 02, 2009 4:05 am

So I noticed on our server that it seemed like casters could often cast through melee attacks without getting the interrupt message. So I did some investigating, and found out that there is a spelling error. Uninterruptable should be Uninterruptible. Also, the warlock spell for the uninterruptible need to be changed from Uninterruptable to Uninterruptible under type. After applying these changes, everything was working perfectly. Files that need to be changed are: GamePlayer.cs, BuffShear.cs, SpellHandler.cs, PowerlessHandler.cs,RangeSpellHandler.cs,UninterruptableSpellHandler.cs. Correct me if I am wrong, but my guess is this was just a spelling mistake.
skud
DOL Apprentice
 
Posts: 26
Joined: Mon Apr 20, 2009 11:08 pm

Re: Casting and Interruption

Postby Dunnerholl » Sat May 02, 2009 6:40 am

i cant see how that would change anything. its consistently misspelled, and if u consistently rename it, what changes?
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: Casting and Interruption

Postby skud » Sat May 02, 2009 7:53 am

it was misspelled to the point that it was not calculating the interrupt code correctly for when casting a spell.
skud
DOL Apprentice
 
Posts: 26
Joined: Mon Apr 20, 2009 11:08 pm

Re: Casting and Interruption

Postby Graveen » Sat May 02, 2009 8:07 am

Can you post the patch to allow us to see where it is processed and why ?
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Casting and Interruption

Postby nor » Sat May 02, 2009 12:32 pm

Btw it is a good idea to use constants in such cases when several places need to reference single logical unit. Even if a constant is used in one place it is still a good thing/positive change. I remember there were a lot of strings all around the code which is error-prone.

Perhaps there are even some tools to do that. Never needed one though.
nor
Inactive Staff Member
 
Posts: 1584
Joined: Wed Mar 03, 2004 3:56 am

Re: Casting and Interruption

Postby Graveen » Sat May 02, 2009 2:18 pm

totally right nor

i have this in my bookmarks for a long time, perhaps could help if anyone is ok to do the job http://www.knowdotnet.com/articles/inse ... ticle.html.

I would think a bit the change, as in this case this shounds obviously shared between pure constant and localized string, and could belong to LangMgr.

But this is important to split distinctly the localisation strings and code variables, as they are aimed to totally different things.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Casting and Interruption

Postby skud » Sat May 02, 2009 4:24 pm

yeah ill make it into a patch.
skud
DOL Apprentice
 
Posts: 26
Joined: Mon Apr 20, 2009 11:08 pm

Re: Casting and Interruption

Postby Graveen » Sat May 02, 2009 5:53 pm

Thx !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Casting and Interruption

Postby Etaew » Sat May 02, 2009 9:33 pm

For the temporary property keys you don't have to worry about localisation graveen, the code is in english, and so can the keys be :-) as nor says, the constant should be used here
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 0 guests