Page 1 of 1

unreal win32 .dll modules

Posted: Sun Jun 20, 2004 5:57 pm
by Jo-W
Since the 2004-05-10 CVS build of windows, unreal supports modules. The problem is, I don't program in C, and i do not know anything about compiling to .dll. etc.
So is there anywhere i can find documentation to convert unix modules to .dll? if not, can som1 give me an easy explanation to do this?

Thanks in advance, Jo-W

Posted: Sun Jun 20, 2004 6:18 pm
by AngryWolf
You cannot convert UNIX .so files to DLLs. But you can and should read the Changes file when you are using a CVS version of UnrealIRCd. Explanation is there.

Posted: Sun Jun 20, 2004 6:28 pm
by Jo-W
I've read it. "Added module support for Windows!
To module coders:
-Building your module on Windows is almost exactly the same as on *nix
nmake -f makefile.win32 custommodule MODULEFILE=thefile"

and .so files are the C source, rite.
this is also the only explanation i can find.

Posted: Sun Jun 20, 2004 6:37 pm
by AngryWolf
and .so files are the C source, rite.
No, .so files are binaries, not source codes.
this is also the only explanation i can find.
Yes, currently it is, maybe in the future this will change.

Posted: Sun Jun 20, 2004 6:38 pm
by Stealth
You would need MS Visual C/C++ 6.x with the SDK platform, or MS Visual C/C++ 7.x

1. Download the Unreal CVS source files and extract them.

2. Run the SDK platform for your OS.
MSVC 6.0
start -> programs -> platform sdk blabla -> open build env. -> choose os) -> set blabla build env (debug). This will launch a DOS window.

MSVC 7.x
Start the Visual Studio .NET Command Prompt
3. Go to the Unreal source directory

4. Type:
nmake -f makefile.win32 custommodule MODULEFILE="module"

5. This should give u a DLL, copy the DLL to ur modules folder.

6. loadmodule module_folder\your_module.dll;

This is what codemastr said should work, although, when i tried it did not. If it doesnt work, play around with it a little

Posted: Sun Jun 20, 2004 7:09 pm
by Jo-W
k thnx i'll see if it works

Posted: Mon Jun 21, 2004 4:23 pm
by Jo-W
I've run accross some problems I have fixed most, but i'm missing a file, 'wircd.lib'. can i get some more explanation on this? is this file generated when I build unreal by the makefile?

Posted: Mon Jun 21, 2004 6:19 pm
by codemastr
The file wircd.lib is built by compiling Unreal. Before you can build modules, you must first compile Unreal.

nmake -f makefile.win32

when that completes, then try to build your module.

Posted: Mon Jun 21, 2004 8:37 pm
by Jo-W
Thanks it works now. :>