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 » Sun Jun 20, 2004 5:57 pm

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 » Sun Jun 20, 2004 6:18 pm

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 » Sun Jun 20, 2004 6:28 pm

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 » Sun Jun 20, 2004 6:37 pm

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 » Sun Jun 20, 2004 6:38 pm

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 » Sun Jun 20, 2004 7:09 pm

k thnx i'll see if it works

Jo-W
Posts: 14
Joined: Tue Jun 01, 2004 6:00 pm

Post by Jo-W » Mon Jun 21, 2004 4:23 pm

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 » Mon Jun 21, 2004 6:19 pm

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 » Mon Jun 21, 2004 8:37 pm

Thanks it works now. :>

Post Reply