logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWN2 Server Bug - SPells
Goto page 1, 2  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Mon Feb 27, 2012 3:04    Post subject: NWN2 Server Bug - SPells Reply with quote

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
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Tue Feb 28, 2012 2:48    Post subject: Reply with quote

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
View user's profile Send private message
Rasael



Joined: 21 Jul 2011
Posts: 16

PostPosted: Tue Feb 28, 2012 11:25    Post subject: Reply with quote

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
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Fri Mar 02, 2012 9:28    Post subject: Reply with quote

It's still not clear which counter we are talking about here (at least to me).
Back to top
View user's profile Send private message
Rasael



Joined: 21 Jul 2011
Posts: 16

PostPosted: Fri Mar 02, 2012 11:19    Post subject: Reply with quote

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
View user's profile Send private message
pain



Joined: 30 Oct 2011
Posts: 16

PostPosted: Fri Mar 02, 2012 19:01    Post subject: Reply with quote

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
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Sat Mar 03, 2012 3:15    Post subject: Reply with quote

Do you have a character file that does not require custom content which reproduces the problem?
Back to top
View user's profile Send private message
pain



Joined: 30 Oct 2011
Posts: 16

PostPosted: Sat Mar 03, 2012 17:21    Post subject: Reply with quote

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
View user's profile Send private message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Sat Mar 03, 2012 18:56    Post subject: Reply with quote

Yeah, you probably need custom content. Essentially a wizard scribes too many scrolls and POOF, server dies.
Back to top
View user's profile Send private message
Rasael



Joined: 21 Jul 2011
Posts: 16

PostPosted: Sat Mar 03, 2012 20:39    Post subject: Reply with quote

hahaha, that holds true with most WOTC storylines: A wizard did it! Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message
luna



Joined: 20 Jan 2012
Posts: 28

PostPosted: Tue Mar 27, 2012 19:19    Post subject: Reply with quote

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. Very Happy

And just kick a player if it's over 255?
Back to top
View user's profile Send private message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Tue Apr 03, 2012 14:34    Post subject: Reply with quote

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
View user's profile Send private message
MustangSVT



Joined: 07 Jan 2011
Posts: 26

PostPosted: Thu Jun 21, 2012 17:09    Post subject: Reply with quote

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
View user's profile Send private message
luna



Joined: 20 Jan 2012
Posts: 28

PostPosted: Fri Jun 22, 2012 1:45    Post subject: Reply with quote

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
View user's profile Send private message
MustangSVT



Joined: 07 Jan 2011
Posts: 26

PostPosted: Fri Jun 22, 2012 19:50    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group