unreal win32 .dll modules

These are old archives. They are kept for historic purposes only.
Post Reply
Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

unreal win32 .dll modules

Post 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
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

Post 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.
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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
Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

Post by Jo-W »

k thnx i'll see if it works
Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

Post 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?
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

Post by Jo-W »

Thanks it works now. :>
Post Reply