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 
 
Storing Objects

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Tue Nov 14, 2006 9:59    Post subject: Storing Objects Reply with quote

I'm attempting to store an object using the SetPersistentObject function. But looking at the DB it's not in the table. Are there any debug logs generated at the moment? I can't find them if there are.

I'm using 4.0.0.3 of NWNX and V0.788 of the server.
Back to top
View user's profile Send private message
amphiprion



Joined: 07 Nov 2006
Posts: 44
Location: Toulouse (France)

PostPosted: Tue Nov 14, 2006 10:47    Post subject: Reply with quote

Voilą

Senalaya wrote:
The Get/SetPersistantObject() functions require Retrieve/StoreCampaignObject() to work and to be code-hooked seperatly. Currently the functions are commented out by Obsidian and there is no hook, yet.
So, irregarding of the choosen database program, those won't work.
A recent dev post from Rich Taylor, that they are aware of the need, but can't give an ETA.
That goes for all the Get/SetCampaignXxxx() functions, too.
Back to top
View user's profile Send private message
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Tue Nov 14, 2006 10:59    Post subject: Reply with quote

Bugger, so I guess we are waiting for patch 1.03 then.....
_________________
The World of Judur - The Shadow has Awoken
Back to top
View user's profile Send private message
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Wed Dec 06, 2006 2:01    Post subject: Reply with quote

Ok, patch 1.03 has been released and the StoreCampaignObject and Retrieve functions are working, well with the inbuilt database anyway.

I can't store an object using the SetPersistentObject function. I'm using 0.0.6 of NWNX4 and 1.03 of NWN2.

The SQL statement is

Code:
 INSERT INTO pw_obj_vault (player,tag,name,val,expire) VALUES('~','Module','TEST',%s,0)


And the error in the xp_mysql.txt file is

Code:

! Error (mysql_query): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '~','Module','TEST',%s,0)')' at line 1.


It appears that )' is being appended for some reason???

Any ideas?
_________________
The World of Judur - The Shadow has Awoken
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Wed Dec 06, 2006 10:52    Post subject: Reply with quote

SetPersistentObject and GetPersistentObject are not supported at this point of time. They are not even hooked, yet.

I guess it will be a couple of weeks before this gets done, but that does not depend on me alone...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Wed Dec 06, 2006 20:34    Post subject: Reply with quote

Ahh, that would explain it. Anything that perhaps I could do to help in adding this functionality.

And in the interim I can use the native DB functions for this part.
_________________
The World of Judur - The Shadow has Awoken
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Fri Dec 08, 2006 12:36    Post subject: Reply with quote

I am waiting for something specific to happen, before I take a look at the SCORCO functions... so thanks, but right now there is nothing that needs to be done about it. I hope it will not be too long, though...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Mon Jan 08, 2007 8:48    Post subject: Reply with quote

is there any news about this subject ?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Mon Jan 08, 2007 23:53    Post subject: Reply with quote

Nope, no news at this point of time. But the topic hasn't been forgotten ...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Tue Jan 09, 2007 0:28    Post subject: Reply with quote

Currently I diverting the object stores into the inbuilt database. Which is working for now and as soon as these functions are hooked I'll have to do a conversion.
_________________
The World of Judur - The Shadow has Awoken
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
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