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 
 
SCO/RCO hook for MySQL plugin (finished)

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Dec 01, 2007 22:52    Post subject: SCO/RCO hook for MySQL plugin (finished) Reply with quote

I started this 2 months ago, but I don't have much interest in NWN2 and my current NWNX4 installation is broken, so the development stopped shortly after I started.
Here are the sources of what I've done so far:
http://data.virusman.ru/nwn/nwnx4/mysql_scorco_unfinished.rar
The hook itself is (probably) working, I've copied some code from the old NWNX2 plugin (this part may need some porting), and an interface between DB plugins and SCO/RCO hooks has to be (re)written.

UPDATE: I've finished the new version (see below).


Last edited by virusman on Sun Jan 27, 2008 20:32; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Sun Jan 27, 2008 11:57    Post subject: Reply with quote

Thanks for this. I've taken your code here and hopefully merged it with the MySQL plugin. I haven't yet tested it, but it compiles successfully.

I'll hopefully get a chance to test it tomorrow.....
_________________
The World of Judur - The Shadow has Awoken
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jan 27, 2008 13:04    Post subject: Reply with quote

Yes, it compiles successfully, but I wasn't able to test it as my NWNX4 installation doesn't work. Try to test it and post results here.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jan 27, 2008 13:48    Post subject: Reply with quote

I've set up a VM for testing, so I may get some results soon.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jan 27, 2008 14:29    Post subject: Reply with quote

SCO works. RCO doesn't: NWN2 uses its own memory manager, so malloc/new is not enough.. Sad

Update: Got it to work: http://www.nwnx.org/phpBB2/viewtopic.php?t=1021


Last edited by virusman on Sun Jan 27, 2008 21:32; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
OVLD_NZ



Joined: 14 Nov 2006
Posts: 18

PostPosted: Sun Jan 27, 2008 21:28    Post subject: Reply with quote

Yeah, I've tested SCO and it works fine, but I couldn't get RCO to work. And as you point out yes NWN2 has it own memory manager.

Nice work, by the way. I wouldn't have been able to hook into it, that at the moment is beyond my skill level......
_________________
The World of Judur - The Shadow has Awoken
Back to top
View user's profile Send private message
Saulus



Joined: 24 Mar 2008
Posts: 7

PostPosted: Mon Mar 24, 2008 21:20    Post subject: Reply with quote

Awesome plugin, just wish I could get it working with 1.09 on x64
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 -> 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