.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   Creating a workspace... (http://forums.bots-united.com/showthread.php?t=1827)

dstruct2k 09-06-2004 23:39

Re: Creating a workspace...
 
Anywhere. Just set paths.

minorgod 10-06-2004 00:09

Re: Creating a workspace...
 
Thanks. It compiled and is running now. I noticed it puts the new shared object file into the "Release" folder. Do I need to worry about anything besides copying the new shared object to the realbot dll folder? I saw a file called realbot_mm.map and wasn't sure if I need that for something. Anway, it appears to be working now. Will be testing tonight and then possibly starting to work on my own tweaks.

dstruct2k 10-06-2004 04:27

Re: Creating a workspace...
 
Only the dll is needed. Other files are generated by VisualStudio during compile.

yangmungi 19-06-2004 22:46

Re: Creating a workspace...
 
--------------------Configuration: realbot_mm - Win32 Release--------------------Compiling...
bot.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
(same 12 errors)

is this because its msvc++ 6.0?

MusicMan 19-06-2004 22:51

Re: Creating a workspace...
 
I had that too:) you need to put the realbot paths on top of the list of paths, and it gives them higher priority:)

Hope this helps

yangmungi 20-06-2004 00:35

Re: Creating a workspace...
 
YES!! thank you musicman. time to learn some post college level code..

MusicMan 20-06-2004 10:48

Re: Creating a workspace...
 
no problem :)

minorgod 21-06-2004 00:33

Re: Creating a workspace...
 
:o Thanks. I thought I had tried that already, but I had missed one of the include files so only two of the three MS includes were below the realbot includes. I fixed it and it finally compiled. Yay! Now I don't feel like I wasted an entire Sunday.=)

EDIT: Sorry...wrong thread

[BBB]sluggo 10-08-2004 14:06

Re: Creating a workspace...
 
Ok, bare with me now.... I'm totaly new to this.
When I try to compile realbot with visual-MinGW 0.56 I get errors... I'm not surpriced 9_9

This is what I get when trying to build.
./HLSDK/Multiplayer/dlls/extdll.h:62: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:63: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:64: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:78: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:79: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:80: No such file or directory
./HLSDK/Multiplayer/dlls/extdll.h:83: No such file or directory
./HLSDK/Multiplayer/dlls/enginecallback.h:19: No such file or directory
./HLSDK/Multiplayer/dlls/player.h:19: No such file or directory
./HLSDK/Multiplayer/dlls/animation.cpp:29: No such file or directory
./HLSDK/Multiplayer/dlls/animation.cpp:30: No such file or directory
./HLSDK/Multiplayer/dlls/animation.cpp:31: No such file or directory
./HLSDK/Multiplayer/dlls/animation.cpp:32: No such file or directory
./HLSDK/Multiplayer/dlls/animation.cpp:34: No such file or directory
./HLSDK/Multiplayer/dlls/client.cpp:36: No such file or directory
./HLSDK/Multiplayer/dlls/client.cpp:38: No such file or directory

..... and so on. The include files are there somewhere in different dirs exept "malloc.h" or something, I don't have that one?
Well never mind, it crashed now and It refuses to open my project again :'(

I will try to convince the ppl at work to give me one of our licences for MS visual c++ ... I don't think that will help but I don't want to spend any more time on this right now.. I will throw the computer out the window if I keep trying to get this right. (not a joke, I spent the last 10 waken hours on this and it has gotten me nowhere, exept some experience on how NOT to do things :) )

evy 10-08-2004 16:46

Re: Creating a workspace...
 
Regarding Windows compilation, I'm also using MinGW (but not the visual one) and my Makefile:

Code:

# Based on a Makefile from Hacker Harry (for MinGW32 support)

# and the original Makefile from Stefan (?)

#

# Merge by eric@vyncke.org on $Date: 2004/07/20 19:29:24 $

#

# It is a Makefile for MinGW32 only

#

CPP = g++

ARCHFLAG = i386

METAMOD_SRCDIR = /d/sierra/metamod-1.17/metamod

HLSDK_BASEDIR = /d/sierra/HLSDK

BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp

CPPFLAGS = ${BASEFLAGS} -march=${ARCHFLAG} -O2 -w -I"${METAMOD_SRCDIR}" -I"${HLSDK_BASEDIR}/multiplayer/common" -I"${HLSDK_BASEDIR}/multiplayer/dlls" -I"${HLSDK_BASEDIR}/multiplayer/engine" -I"${HLSDK_BASEDIR}/multiplayer/pm_shared"

OBJ = NodeMachine.o \

bot.o \

bot_buycode.o \

bot_client.o \

bot_func.o \

bot_navigate.o \

dll.o \

engine.o \

game.o \

util.o \

build.o \

ChatEngine.o \

IniParser.o

realbot_mm.dll: ${OBJ}

dllwrap -k -mwindows --add-stdcall-alias -o $@ ${OBJ}

install: realbot_mm.dll

cp realbot_mm.dll /d/Sierra/Counter-Strike/realbot/dll

clean:

rm -f *.o

rm -f *.so

rm -f *.dll

%.o: %.cpp

${CPP} ${CPPFLAGS} -c %4$slt; -o $@

%.o: %.c

${CPP} ${CPPFLAGS} -c %4$slt; -o $@




All times are GMT +2. The time now is 08:21.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.