View previous topic :: View next topic |
Author |
Message |
nelak
Joined: 05 Oct 2012 Posts: 7
|
Posted: Sun Oct 28, 2012 3:07 Post subject: Converting Linux plugins to Windows |
|
|
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 |
|
|
nelak
Joined: 05 Oct 2012 Posts: 7
|
Posted: Sun Oct 28, 2012 7:01 Post subject: |
|
|
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... |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Oct 28, 2012 9:43 Post subject: |
|
|
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 |
|
|
addicted2rpg
Joined: 01 Aug 2008 Posts: 106
|
Posted: Mon Nov 19, 2012 15:52 Post subject: |
|
|
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 |
|
Back to top |
|
|
|