AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Compiling Modules (https://forums.alliedmods.net/showthread.php?t=180771)

Doc-Holiday 03-20-2012 01:19

Compiling Modules
 
OK so i am using MSVC2010.

I have the HLSDK.
All of the files are on my cdrive in the location below
Code:

c:\sdk_files\
This is what i have for includes and it continues to tell me that it cant find vectors.h which is in
Code:

c:\sdk_files\hlsdk\multiplayer\dlls
Code:

C:\sdk_files\hlsdk\multiplayer;..\include;$(IncludePath)
If i remove the ..\include; it causes errors and no idea what the $(InculdePath) is...

So any ideas why it cant find the files in \multiplayer?

The SDK is the one arkshine has posted all over (compilable in msvc2008 from some website not from metamod.org)

Code:

1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\extdll.h(84): fatal error C1083: Cannot open include file: 'vector.h': No such file or directory
Then if i add that location into the includes section it tells me another file cant be found... and then another.

The list looked like this
Code:

C:\sdk_files\hlsdk\multiplayer;
C:\sdk_files\hlsdk\multiplayer\common;
C:\sdk_files\hlsdk\multiplayer\engine;
C:\sdk_files\hlsdk\multiplayer\dlls;
..\include;
$(IncludePath)

And it started to say that vector.h wasn't found again....

Shadows In Rain 03-20-2012 16:02

Re: Compiling Modules
 
Try to...
1. close paths with backslash, e.g. C:\sdk_files\hlsdk\multiplayer\dlls\
2. add C:\sdk_files\hlsdk\multiplayer\pm_shared\

Or you can just follow my setup.

MSVC2010 -> Solution Explorer -> *Your project* -> Propertries -> (All configurations) -> Configuration Propertries -> C/C++ -> General -> Additional include directories ...

$(METAMOD_SDK)\metamod
$(HL_SDK)\common
$(HL_SDK)\engine
$(HL_SDK)\dlls
$(HL_SDK)\pm_shared

*Your OS* -> Environment variables -> Setup corresponding vars (highlighted in green), examples:
METAMOD_SDK D:\Developer\SDK\METAMOD\
HL_SDK D:\Developer\SDK\HLSDK_MM\Multiplayer Source\

Doc-Holiday 03-20-2012 16:19

Quote:

Originally Posted by Shadows In Rain (Post 1672679)
Try to...
1. close paths with backslash, e.g. C:\sdk_files\hlsdk\multiplayer\dlls\
2. add C:\sdk_files\hlsdk\multiplayer\pm_shared\

Or you can just follow my setup.

MSVC2010 -> Solution Explorer -> *Your project* -> Propertries -> (All configurations) -> Configuration Propertries -> C/C++ -> General -> Additional include directories ...

$(METAMOD_SDK)\metamod
$(HL_SDK)\common
$(HL_SDK)\engine
$(HL_SDK)\dlls
$(HL_SDK)\pm_shared

*Your OS* -> Environment variables -> Setup corresponding vars (highlighted in green), examples:
METAMOD_SDK D:\Developer\SDK\METAMOD\
HL_SDK D:\Developer\SDK\HLSDK_MM\Multiplayer Source\

Thanks will try when i get t home.
By my os what do you mean? Is it a setting in msv2010

Doc-Holiday 03-21-2012 00:53

Re: Compiling Modules
 
Ok so i did that..

My includes now look like

Code:

$(METAMOD)\metamodsdk;
$(HLSDK)\common;
$(HLSDK)\engine;
$(HLSDK)\dlls;
$(HLSDK)\pm_shared;
$(IncludePath)

And it says it cant find the amxxmodule.h or metamod_config.h that is in rootfolder\sdk (Part of the project)

Shadows In Rain 03-21-2012 04:47

Re: Compiling Modules
 
Quote:

Originally Posted by Doc-Holiday (Post 1672688)
By my os what do you mean?

Env. vars are part of OS. Example (WinXP):
http://vlaurie.com/computers2/graphics/envvar.gifhttp://vlaurie.com/computers2/graphics/addreg.gif

Quote:

Originally Posted by Doc-Holiday (Post 1672908)
And it says it cant find the amxxmodule.h or metamod_config.h that is in rootfolder\sdk (Part of the project)

Add \sdk\, if your own files are placed in rootfolder.

Doc-Holiday 04-29-2012 14:52

Re: Compiling Modules
 
Quote:

Originally Posted by Shadows In Rain (Post 1672944)
Add \sdk\, if your own files are placed in rootfolder.

So i did this and it continues to say it cant find the amxxmodule.h or metamod_config.h

Those are my last two errors

Code:

1>------ Build started: Project: take_damage_example, Configuration: Release Win32 ------
1>  module.cpp
1>C:\Users\John Doe\Desktop\module_take_damage_example_SRC\module_take_damage_example\include\module/module_for_rage.h(5): fatal error C1083: Cannot open include file: 'amxxmodule.h': No such file or directory

1>  take_damage_example.cpp
1>C:\Users\John Doe\Desktop\module_take_damage_example_SRC\module_take_damage_example\include\take_damage_example.h(2): fatal error C1083: Cannot open include file: 'amxxmodule.h': No such file or directory

1>  amxxmodule.cpp
1>c:\users\john doe\desktop\module_take_damage_example_src\module_take_damage_example\sdk\module_config.h(17): fatal error C1083: Cannot open include file: 'metamod_config.h': No such file or directory

1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


hleV 04-29-2012 16:51

Re: Compiling Modules
 
Did you create amxxmodule.h inside your project?

Doc-Holiday 04-29-2012 17:32

Re: Compiling Modules
 
3 Attachment(s)
Quote:

Originally Posted by hleV (Post 1698929)
Did you create amxxmodule.h inside your project?

Its the src from the rage module take damage that they made in the thread like second post or w/e


So now that i have fixed all the other erros... it just goes right back to the vector.h missing... yet its in the correct path and i have the directory hlsdk\multiplayer\dlls going ..... so Not sure wtf is wrong


Am i just cursed and not allowed to compile modules?

EDIT again: Here are some of my screen shots

Doc-Holiday 07-17-2012 19:42

Re: Compiling Modules
 
So further on this still trying and now it tells me extdll.h doesn't exist on line 16 of amxmodule.h when trying to compile the hornet gun src from arkshine's post in the rage module.

Arkshine 07-18-2012 03:37

Re: Compiling Modules
 
Make sure the paths is the project is the same as yours.


All times are GMT -4. The time now is 17:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.