View previous topic :: View next topic |
Author |
Message |
OVLD_NZ
Joined: 14 Nov 2006 Posts: 18
|
Posted: Tue Nov 14, 2006 9:59 Post subject: Storing Objects |
|
|
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 |
|
|
amphiprion
Joined: 07 Nov 2006 Posts: 44 Location: Toulouse (France)
|
Posted: Tue Nov 14, 2006 10:47 Post subject: |
|
|
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 |
|
|
OVLD_NZ
Joined: 14 Nov 2006 Posts: 18
|
|
Back to top |
|
|
OVLD_NZ
Joined: 14 Nov 2006 Posts: 18
|
Posted: Wed Dec 06, 2006 2:01 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Wed Dec 06, 2006 10:52 Post subject: |
|
|
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 |
|
|
OVLD_NZ
Joined: 14 Nov 2006 Posts: 18
|
Posted: Wed Dec 06, 2006 20:34 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Fri Dec 08, 2006 12:36 Post subject: |
|
|
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 |
|
|
caloup
Joined: 29 Sep 2006 Posts: 59 Location: albi (france)
|
Posted: Mon Jan 08, 2007 8:48 Post subject: |
|
|
is there any news about this subject ? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Mon Jan 08, 2007 23:53 Post subject: |
|
|
Nope, no news at this point of time. But the topic hasn't been forgotten ... _________________ Papillon |
|
Back to top |
|
|
OVLD_NZ
Joined: 14 Nov 2006 Posts: 18
|
Posted: Tue Jan 09, 2007 0:28 Post subject: |
|
|
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 |
|
|
|