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 
 
Converting Linux plugins to Windows

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
nelak



Joined: 05 Oct 2012
Posts: 7

PostPosted: Sun Oct 28, 2012 3:07    Post subject: Converting Linux plugins to Windows Reply with quote

In terms of converting the Linux NWNX plugins. What exactly is required?

My understanding so far is that the Linux NWN server executable is different from the Windows NWN server executable - this causes the memory addresses to be different which is why the Linux plugins don't work on Windows.

So to convert a plugin - would it just be a matter of decompiling the NWN Server executables, and finding the correct memory addresses and then updating the Linux source files, then compiling them into DLL's? It couldn't be that simple could it?

(I understand that there may be plugins that make linux system calls or rely on linux only libraries - these would take a bit more work of course but these should be the minority if they exist at all, right?)
Back to top
View user's profile Send private message
nelak



Joined: 05 Oct 2012
Posts: 7

PostPosted: Sun Oct 28, 2012 7:01    Post subject: Reply with quote

By the way... If anyone happens to have the nwserver.exe symbols that would help tremendously. Otherwise I'll keep doing it the extremely painful way... Razz
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Oct 28, 2012 9:43    Post subject: Reply with quote

No, it's not just addresses: the structure offsets are different, the code is different due to difference in compilers, even the inline ASM syntax is different.
So, in most cases you have to reproduce the plugin's behavior from scratch.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
addicted2rpg



Joined: 01 Aug 2008
Posts: 106

PostPosted: Mon Nov 19, 2012 15:52    Post subject: Reply with quote

I have made an attempt, an actual serious one, at porting the NWNX plugin system to its Windows equivalent - not the plugins themselves, just the plugin system.

After reviewing the extent of complete overwrite, no -- might as well be coding from scratch -- I abandoned this idea.

The amount of work to do this kind of thing is... "insane."

My current project is already pretty enormous, I've been working on it from March of 2012 and I've had a nice breakthrough tonight, but I still have tons to go. Even this monstrous thing I am making cannot compare to the amount of work that would have to be done to standardized Windows/Linux into the same compilation package.

Apologizing now for my bad English. It's my first language, but I've been spending all my time speaking my second one Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows 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