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 
 
xp_mysql log error with pc tools save location...

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
ShadowDragon311007



Joined: 15 Jul 2009
Posts: 12

PostPosted: Fri Sep 11, 2009 18:44    Post subject: xp_mysql log error with pc tools save location... Reply with quote

Code:

* Executing: SELECT player FROM pwdata WHERE player='taylor die 87' AND tag='Eluldor Di\'ren170559' AND name='HSS_PCTOOLS_PC_LOCATION'
* Executing: UPDATE pwdata SET val='#AREA#Xiliz#POSITION_X#      19.184942245#POSITION_Y#      19.184942245#POSITION_Z#      19.184942245#ORIENTATION#     232.941192627#END#',expire=0 WHERE player='taylor die 87' AND tag='Eluldor Di\'ren170559' AND name='HSS_PCTOOLS_PC_LOCATION'
! SQL Error: Data too long for column 'val' at row 1 (1406).


Anyone know how I can fix this error?
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Fri Sep 11, 2009 19:41    Post subject: Reply with quote

This might be obvious from the error message, but the problem is that the value you're trying to put in the val field is too long for whatever type val currently has. If it isn't TEXT, you'll want to change it to that.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
maddogfargo



Joined: 03 Nov 2009
Posts: 49

PostPosted: Tue Dec 22, 2009 0:05    Post subject: Reply with quote

When you get the float for X Y Z and Ori you may want to trim the length and number of decimal places. I seem to recall learning how to do it by examining both NBDE location conversion functions and APS location conversion functions in the respective includes.

* EDIT *

It's in the FloatToString() function.
_________________
* illegible scribble *
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
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