|
|
Moderator
Status: Offline
Posts: 403
Join Date: Nov 2003
|
Re: visual C++ 6.0 metamod compile question -
29-02-2004
You for sure need a def file or Metamod will not load the dll since the dll will not have any exports.
Here is an example Metamod def file of mine "hostageFix.def"
LIBRARY hostageFix_mm
EXPORTS
GiveFnptrsToDll @1
SECTIONS
.data READ WRITE
For Vc 6.0 you will also need a /def:"hostageFix.def"
in the link options in the project settings.
I had this exact same problem the first time I tried to make a mm dll.
If you still can't get it working download this small mm project to see how everything is set up. You will obviously have to change the include paths in this project. All it does is keep hostages from taking damage to fix the pod bot 2.5 crash.
http://austinbots.com/hostagefixsource.zip
It has project files for both VC60 and VC.NET
It also shows a nice organized way is setting up a Metamod project separating your functions from the Metamod required stuff and correctly using a common include file. This MIGHT be a little over kill for a tiny project but it really help on larger projects.
This project also shows you how to add a VERSION RESOURCE to your dll so you can right click it, do a properties, go to version and see what version it is!
HELLO!
Any BOT authors listening?
VERSION STAMP YOUR DLLS!
WHAT A NOVEL IDEA!
Last edited by Austin; 29-02-2004 at 10:49..
|
|
|