View previous topic :: View next topic |
Author |
Message |
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Mon Feb 27, 2012 3:04 Post subject: NWN2 Server Bug - SPells |
|
|
If a player gets over the 8bit value range of spells known, the server crashes. This is 255 max or so. Not sure if XP_bugfix can do something about that, but just pointing it out. |
|
Back to top |
|
|
Skywing
Joined: 03 Jan 2008 Posts: 321
|
Posted: Tue Feb 28, 2012 2:48 Post subject: |
|
|
It's not clear to me which counter you are talking about as there are many counters relating to spell usages / spells known / spells memorized, etc.
If the value in question is stored as an 8-bit integer in numerous places, then the answer is that it will probably not be feasible to address. |
|
Back to top |
|
|
Rasael
Joined: 21 Jul 2011 Posts: 16
|
Posted: Tue Feb 28, 2012 11:25 Post subject: |
|
|
Might there be a way to limit a player from attaining that number and crashing the server? That would be the next best thing to expanding the possible amount of known spells. |
|
Back to top |
|
|
Skywing
Joined: 03 Jan 2008 Posts: 321
|
Posted: Fri Mar 02, 2012 9:28 Post subject: |
|
|
It's still not clear which counter we are talking about here (at least to me). |
|
Back to top |
|
|
Rasael
Joined: 21 Jul 2011 Posts: 16
|
Posted: Fri Mar 02, 2012 11:19 Post subject: |
|
|
It crashes when someone learns such a spell when he has roughly 249 other spells known. That's the spells known counter I think. |
|
Back to top |
|
|
pain
Joined: 30 Oct 2011 Posts: 16
|
Posted: Fri Mar 02, 2012 19:01 Post subject: |
|
|
Yes that is a known bug - kind of aiming to limit players from going over the cap to begin with eventually and allowing them to swap out what is in their spell books - only thru custom content does this become an issue. Pretty sure it's just going over the bounds of how the spells are stored, after you learn too many you run into issues, and it's only allowing 256 or so entries. |
|
Back to top |
|
|
Skywing
Joined: 03 Jan 2008 Posts: 321
|
Posted: Sat Mar 03, 2012 3:15 Post subject: |
|
|
Do you have a character file that does not require custom content which reproduces the problem? |
|
Back to top |
|
|
pain
Joined: 30 Oct 2011 Posts: 16
|
Posted: Sat Mar 03, 2012 17:21 Post subject: |
|
|
Skywing wrote: | Do you have a character file that does not require custom content which reproduces the problem? |
Not that many spells to begin with from my understanding. |
|
Back to top |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Sat Mar 03, 2012 18:56 Post subject: |
|
|
Yeah, you probably need custom content. Essentially a wizard scribes too many scrolls and POOF, server dies. |
|
Back to top |
|
|
Rasael
Joined: 21 Jul 2011 Posts: 16
|
Posted: Sat Mar 03, 2012 20:39 Post subject: |
|
|
hahaha, that holds true with most WOTC storylines: A wizard did it! |
|
Back to top |
|
|
luna
Joined: 20 Jan 2012 Posts: 28
|
Posted: Tue Mar 27, 2012 19:19 Post subject: |
|
|
Skywing wrote: | It's not clear to me which counter you are talking about as there are many counters relating to spell usages / spells known / spells memorized, etc.
If the value in question is stored as an 8-bit integer in numerous places, then the answer is that it will probably not be feasible to address. |
With Leto you can see how many spells a player has per level.
Could a plugin just count the number of spells known?
I don't know how hard that is of course?
Just thinking out loud mainly.
And just kick a player if it's over 255? |
|
Back to top |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Tue Apr 03, 2012 14:34 Post subject: |
|
|
Once they reach over that amount loading the char file is doom. Wish there was a hook for char loading or something that could block a char from loading if it had too many or even remove some if needed. |
|
Back to top |
|
|
MustangSVT
Joined: 07 Jan 2011 Posts: 26
|
Posted: Thu Jun 21, 2012 17:09 Post subject: |
|
|
Is there any way I could help make something like this a reality? I'm facing an issue where a cheater player logs in with a hacked character with several spells, and it crashes my server. |
|
Back to top |
|
|
luna
Joined: 20 Jan 2012 Posts: 28
|
Posted: Fri Jun 22, 2012 1:45 Post subject: |
|
|
Skywing, any chance you can help with this?
I can work with you a bit to show you where to check the spell list data in a BIC which can be used to get a spells known count.
Thanks |
|
Back to top |
|
|
MustangSVT
Joined: 07 Jan 2011 Posts: 26
|
Posted: Fri Jun 22, 2012 19:50 Post subject: |
|
|
I can offer my time to make something like this a reality too.
Ideally, the plug in code would flat out block players with too many spells from connecting to the server. I already have a small application (command line) that one of my scripters made that goes through the server vault quickly and finds players with too many spells, but I need to somehow put this on login rather than just an external tool. |
|
Back to top |
|
|
|