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 
 
Linux support for SCO/RCO?
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
obsidian-studios



Joined: 16 Feb 2005
Posts: 36
Location: Jacksonville, FL

PostPosted: Mon Mar 07, 2005 5:22    Post subject: Linux support for SCO/RCO? Reply with quote

In the process of creating a plugin to support use of Firebird RDBMS, I added support to read and write blobs. Now that I am getting down to dealing with sending and receiving the blob. I am noticing that the current release of nwnx on linux does not have support for anything other than strings.

Regardless of any plugin providing support, the core nwnx on linux lacks to hooks to respond to calls other than SetLocalString. I am curious as to how one would go about this? I am guessing since source code is not available that hooks will have to be found by examining the binary. Or during actual execution?

Definetly getting way beyond my skills now, since it looks like asm hooks and etc. I have never worked with assembler before? Comments?
Back to top
View user's profile Send private message Visit poster's website
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Mon Mar 07, 2005 15:51    Post subject: Reply with quote

There's a few people working at learning how it's done to hunt for the hooks, I'd imagine it's done by putting a breakpoint on the glibc file write commands, and then looking at the stack to see what functions called it, setting breakpoints on those functions to see if there triggered by writes from SetCampaignObject etc, once it's found then writing the code to locate it reliably witin the binary, and then writing the assembley hook.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
obsidian-studios



Joined: 16 Feb 2005
Posts: 36
Location: Jacksonville, FL

PostPosted: Mon Mar 07, 2005 21:26    Post subject: Reply with quote

Great, looks like this is going to be a real pain/problem. Starting looking myself but I have no clue what tools to use, or where to start? Guess there's never a better time to learn than the present?

If anyone is working on this and has made any progress or would like to collaborate a bit to get this done. Since at the moment you can't store anything but strings with any database on linux. Of course you can store anything that can be converted to string format. However there is no function that I am aware of to turn and object into a string and then back into an object again.
Back to top
View user's profile Send private message Visit poster's website
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sat Mar 12, 2005 0:50    Post subject: Reply with quote

The ODBC2 plugin on the Windows side is reported as allowing you to store object into the database, but no one has ported it to Linux yet. Any chance you could take a crack at that?

--Dave
Back to top
View user's profile Send private message
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Sat Mar 12, 2005 4:47    Post subject: Reply with quote

Dave, that's what the whole topics about :)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sat Mar 12, 2005 5:12    Post subject: Reply with quote

Ok, so I guess I'm confused. Smile Sounded to me like he was talking about something he had done with his own plugin for that database he likes to use, and wanted to know how to hook things so that we can store objects in the database. I was just suggesting that maybe he could work on the one from Windows and use that as a way of doing it.

So like I said, I guess I was confused. Very Happy

--Dave
Back to top
View user's profile Send private message
obsidian-studios



Joined: 16 Feb 2005
Posts: 36
Location: Jacksonville, FL

PostPosted: Sat Mar 12, 2005 5:27    Post subject: Reply with quote

Well I have started hacking into the SCO/RCO code from windows. Although I know nothing about assembler. Nor what I am doing at this point or how to proceed. Any help is welcome if you know C/C++ and most importantly assembler.

I have the entire file ported from win to linux. Not sure on the assembler stuff. Looking into how I can tie those functions into linnwnx so the commands are interrpretted and hooks fired. I am expecting it to implode, fail, etc. But at least that will be some progress.
Back to top
View user's profile Send private message Visit poster's website
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Wed Mar 30, 2005 21:38    Post subject: Reply with quote

Has there been any progress on this project, just out of curiosity?

--Dave
Back to top
View user's profile Send private message
mfx



Joined: 13 Feb 2005
Posts: 19
Location: Stockholm, Sweden

PostPosted: Thu Mar 31, 2005 8:21    Post subject: Reply with quote

We believe we have made the correct hooks and its now down to assembly coding to get it to work. Unfortunatly I am tied up in work atm but there is a slight chance of progress the upcoming weekend. If not, then the next weekend will have to do for now.

We are making progress, its just a matter of how much time I can spare right now Confused
_________________
MNXJ - Java API for NWN : https://www.sourceforge.net/projects/mnxj/
Back to top
View user's profile Send private message MSN Messenger
obsidian-studios



Joined: 16 Feb 2005
Posts: 36
Location: Jacksonville, FL

PostPosted: Sun Apr 10, 2005 20:35    Post subject: Reply with quote

We have both been buried with work, which is a good thing. However has not left any time for this. We are in contact with each other and as soon as time permits, we will get back on to this.

Any others looking to help out in the process please let me know. Last we left off, mfx identified some possible hooks. We just have to write asm to test if it's the right hook or not. Then write the redirection asm stuff and etc.

Seems like we are getting close, but I would say maybe 25% of the way. At best.
Back to top
View user's profile Send private message Visit poster's website
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sun May 29, 2005 20:16    Post subject: Reply with quote

Any new word on this yet, by any chance?

--Dave
Back to top
View user's profile Send private message
mfx



Joined: 13 Feb 2005
Posts: 19
Location: Stockholm, Sweden

PostPosted: Mon May 30, 2005 13:57    Post subject: Reply with quote

No progress at all last months. I simply do not have time for it.
We all want this to be a success, but my IRL work needs me more than ever right now.

If there is a linux c++ and assembly dude or dudette out there wanting to take over I will be happy to hand all the code over. You have to be sure you are up for it though. I dont have free time to spend on something that is not helping this project forward.

The hooks are identified but there are some assembly code to be made and then testing.
We are talking about one or two days/nights of coding to get it done if you have the skills.
I can provide you with a lab server and help out along the way.
_________________
MNXJ - Java API for NWN : https://www.sourceforge.net/projects/mnxj/
Back to top
View user's profile Send private message MSN Messenger
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Mon May 30, 2005 19:51    Post subject: Reply with quote

Sorry, but I don't have those kinds of coding skills. If I did, believe me I would have already offered. Smile

I guess I'll just keep my fingers crossed hoping that you guys will eventually have some time to spend on this. Thanks for the update.

--Dave
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Jul 09, 2005 23:56    Post subject: Reply with quote

mfx wrote:
No progress at all last months. I simply do not have time for it.
We all want this to be a success, but my IRL work needs me more than ever right now.

If there is a linux c++ and assembly dude or dudette out there wanting to take over I will be happy to hand all the code over. You have to be sure you are up for it though. I dont have free time to spend on something that is not helping this project forward.

The hooks are identified but there are some assembly code to be made and then testing.
We are talking about one or two days/nights of coding to get it done if you have the skills.
I can provide you with a lab server and help out along the way.
Maybe you should post hook addresses and/or code here so c++/assembly dudes could start right away?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
obsidian-studios



Joined: 16 Feb 2005
Posts: 36
Location: Jacksonville, FL

PostPosted: Fri Jul 22, 2005 3:48    Post subject: Reply with quote

Not really that easy. A bit more to it, and not something that could be put here. I tried several times to get papillion to add either me or mfx to the project on sourceforge. Then we could put the new code in CVS for anyone to look at, comment on, tweak etc. If progress is made, actually have another linux release. However I think nwn2 is not helping in this process. I know it's effected my motivation towards this for the time being at least.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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