Please read both pages of this thread and re-ask your question after doing so:
http://www.eqemulator.org/forums/sho...hlight=spellid |
Alright, well I figured out one thing. This is the line of code that's causing Harm Touch to fail (client_packet.cpp line 4623, Handle_OP_CastSpell method):
Code:
Code:
static const uint32 MAX_PP_MEMSPELL = 9; Does anyone know what the MAX_PP_MEMSPELL represents? I haven't been able to figure that one out yet. My assumption is that it represents a separation between memorized spells and ability/discipline/item spells (which are all handled individually). Basically, as long as that value is set to 9 and Harm Touch is coming in on spell slot 9, it automatically goes to interruptSpell, which is why it's not working. My guess is that this block needs an additional elseif specifically for Abilities that are being processed as spells, such as LoH and Harm Touch. Any input would be wonderful! |
Alrighty, that fixed it. Basically I added a flag in the existing special SK and Paladin portion of the code to bypass the spell slot evaluation and memorized spell check that was breaking Harm Touch and Lay on Hands.
client_packet.cpp(line 4581) Code:
uint16 spell_to_cast = 0; |
So will this go into the GIT source as a fix soon? Please !
I just compiled this fix and everything seems to work. |
Well, you can do it without an extra flag and its not in a format I feel like dealing with. (Either pull requests on github or a unified diff posted on the code submission forums, note pull requests are preferred because its easier, unless you don't know how to use git that is ...)
|
Yeah, this isn't the prettiest fix in the world. =)
I just posted it in this format because I wanted to show where the problem was located. I had sort of assumed that the development team didn't want random people doing code submissions and that they would fix it in whatever way they see as best. If you would like, I'd be happy to pretty it up some, remove some of the extraneous logging that I added and submit it. I apologize, I'm pretty new to this community. I set up this account a few years ago but never actually got as far as installing anything until this week. Heh. |
Its an open source project, any submissions are welcome, but not guaranteed to be accepted of course.
I would recommend submitting pull requests on GitHub since it's much easier on people with access to pull them. |
Admittedly, I'm new to Git. I've always used SVN. I assume that since Git doesn't have a single master repo that I can access, I'm safe to just commit my updated changes? How do I then submit the commit for review (I'm reading about Git as I'm writing this)?
|
Basically, fork the main repo, commit your changes to the fork, make a pull request to your fork. Its recommended that you push your changes to a branch on your fork.
This thread might help, I'm sure github has some better docs in their support http://eqemulator.org/forums/showthread.php?t=36515 |
Perfect, thanks!
|
http://bpaste.net/show/162354/ if someone wants to test this patch (I can't right now), I think it should be better. (Plus I think it was the original intent of the code ...)
|
Code committed in a branch and pull request completed:
https://github.com/EQEmu/Server/pull/102 I'm going to put a copy of the fix on here so that others might have a stopgap measure until if / when it's approved. Updates to zone/client_packet.cpp (line 4476) Code:
void Client::Handle_OP_CastSpell(const EQApplicationPacket *app) |
BTW, thanks to demonstar55 for the great Git tutorial. Helped a lot.
|
@Provocating
The bug fix has been approved and merged. It should be available soon in Git. |
And it worked perfectly, thanks much!
|
All times are GMT -4. The time now is 06:08 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.