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 
 
NWNX ODBC2 object storage engine
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Sat Jan 08, 2005 4:29    Post subject: Reply with quote

Most most excelent :)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Blacksting



Joined: 03 Jan 2005
Posts: 107

PostPosted: Sat Jan 08, 2005 6:38    Post subject: Reply with quote

Hmmmm.... my tests so far do not look promising. The nwnx_odbc log does not show an SCO/RCO intercept but the Bio DB is no longer being accessed. I am investigating further.

An old persistent chest trying to retrieve standard RCO data crashed the nwnx_odbc.dll.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 08, 2005 13:14    Post subject: Reply with quote

If hookscorco = true in the ini file, the functions are hooked entirely. But checking on the database name is a nice idea.... hmm...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Senalaya



Joined: 29 Dec 2004
Posts: 82
Location: Germany

PostPosted: Sat Jan 08, 2005 14:35    Post subject: Reply with quote

If you want to leave some room for customization, you should check, whether the database name -starts- with "NWNX!".

Also, just as an idea:
- database name: "NWNX!LETO"
- variable name: "gfffile"
could be used to transfer the blob to and from nwnx_leto with the identifer 'gfffile' without doing the SQL-DB access.
Back to top
View user's profile Send private message
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Sat Jan 08, 2005 16:19    Post subject: Reply with quote

Good news, this was the last reason for using the bioware database and can be totally disposed of now. And that local variables is stored on creatures is one more improvement over bioware.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 08, 2005 16:55    Post subject: Reply with quote

Just posted version 0.90. This was more difficult than I thought, but it works ok now.

The database string needs to be "NWNX" for the new functions, anything else for the original Bioware functions.

The variable name can be used for further functionality, e.g. leto.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dragonsong



Joined: 08 Jan 2005
Posts: 19
Location: Salinas, CA

PostPosted: Sat Jan 08, 2005 18:08    Post subject: Reply with quote

I wish I could take a look for myself, but I'm off in Penn doing MCSE boot camp for the next week. This all sounds very cool, though. Very Happy

I'm happy to coordinate in any way I can to get the Unicorn builds of LetoScript up to spec for these updates. I hadn't even got FPT built into the new engine yet, so the timing seems just perfect.

It's great to see the NWN developer community still alive and kicking hard. Twisted Evil
_________________
- dragonsong
Back to top
View user's profile Send private message Visit poster's website
Blacksting



Joined: 03 Jan 2005
Posts: 107

PostPosted: Sat Jan 08, 2005 19:53    Post subject: Reply with quote

Papillon: That was quick thanks Smile That means we have to change the "aps_include" GetPersistent function code right?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 08, 2005 20:16    Post subject: Reply with quote

Alternatively, you could take the updated aps_include from the demo module.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Blacksting



Joined: 03 Jan 2005
Posts: 107

PostPosted: Sat Jan 08, 2005 20:33    Post subject: Reply with quote

Hmmm..... I am getting a log of the RCO but it no longer seems to be functioning. Am I the only one having this problem? The SCO works fine. The DB table is filled. When I open the chest for filling the chest is empty.

I am using the "FETCHMODE" code.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 08, 2005 20:51    Post subject: Reply with quote

Works for me. Did you double check that you rebuilt the module and/or are using the aps_demo module that came with version 0.90 ?
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Trelantris



Joined: 08 Jan 2005
Posts: 9

PostPosted: Sat Jan 08, 2005 22:25    Post subject: original ODBC conversion Reply with quote

We are running on the original alpha version of the ODBC released with NWNx2. We used this extensivly to build a DB system for MySQL, on our Persistant World (Realms of Myth). If we upgrade to the ODBC2 functionality, will the original code port? All our systems (from the encounter system, Trade Skills, and a persistant chest system (modified version of the test stuff you'd put out) are based on the ODBC connection and functions.

You guys rock, by the way!
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 08, 2005 22:41    Post subject: Reply with quote

Yes, ODBC2 is 100% backwards compatible to the older ODBC plugin.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SHoward



Joined: 09 Jan 2005
Posts: 4

PostPosted: Sun Jan 09, 2005 2:21    Post subject: Reply with quote

Does this mean we can get a Linux port soon? Smile


Papillon wrote:
The source will be released as soon the the scorco branch is merged back into the main odbc2 source, which will likely happen within the next week.

Blacksting: Indeed, you answered your own question. Since we have two functions in ODBC2, that have a pointer to the GFF data in memory, everything that leto can do on files could also be done on the pointer.
Back to top
View user's profile Send private message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sun Jan 09, 2005 3:34    Post subject: Reply with quote

SHoward wrote:
Does this mean we can get a Linux port soon? Smile


Man, I hope so. I'm dieing (sp?) for a {Set|Get}PersistentObject function so that I can actually store objects. Very Happy

--Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 2 of 8

 
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