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_sqllite confusion

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
lostdreamz



Joined: 19 Nov 2006
Posts: 26

PostPosted: Thu Apr 10, 2008 12:33    Post subject: xp_sqllite confusion Reply with quote

I have installed nwnx4 1.08. Now I dont seem to be able to write to the tables I have in the sqllite.db. This means that nothing is now saved from my persistent world. Strangely when I run the sqllite demo supplied it successfully writes to somewhere but looking at the database the table pwdata doesnt exist.

* Executing: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('-Dawn Serenade-','aaa','demoName','hello',0)
* Executing: SELECT val FROM pwdata WHERE player='-Dawn Serenade-' AND tag='aaa' AND name='demoName'
* Returning: hello


sqlite> .tables
wod_accounts wod_dbclear wod_mulaccounts
wod_bank wod_houses wod_persistence
wod_bounty wod_messages wod_player
Back to top
View user's profile Send private message
lostdreamz



Joined: 19 Nov 2006
Posts: 26

PostPosted: Thu Apr 10, 2008 12:40    Post subject: Reply with quote

* Executing: SELECT val FROM wod_player WHERE player='-Dawn Serenade-' AND tag='aaa' AND name='startarea'
* Executing: SELECT player FROM wod_player WHERE player='-Dawn Serenade-' AND tag='aaa' AND name='startarea'
* Executing: INSERT INTO wod_player (player,tag,name,val,expire) VALUES('-Dawn Serenade-','aaa','startarea','Area2',0)
* Executing: SELECT player FROM wod_player WHERE player='-Dawn Serenade-' AND tag='aaa' AND name='startfacing'
* Executing: INSERT INTO wod_player (player,tag,name,val,expire) VALUES('-Dawn Serenade-','aaa','startfacing',' 89.999992371',0)
* Executing: SELECT player FROM wod_player WHERE player='-Dawn Serenade-' AND tag='aaa' AND name='startvector'
* Executing: INSERT INTO wod_player (player,tag,name,val,expire) VALUES('-Dawn Serenade-','aaa','startvector','#POSITION_X# 6.952879906#POSITION_Y# 2.584959984#POSITION_Z# -0.000000000#END#',0)

sqlite> select * from wod_player where tag='aaa';
sqlite>
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Apr 10, 2008 22:47    Post subject: Reply with quote

If you do not COMMIT once in a while, the SQLite database will onyl be updated when the server stops or restarts. Maybe this is what is causing the confusion ?
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support 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