Thread: RealBot r3073
View Single Post
RealBot r3073 Released!!
Old
  (#1)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 167
Join Date: Feb 2013
Location: Dundee, Scotland
Default RealBot r3073 Released!! - 29-05-2017

Hello I'm pleased to say that I've managed to recompile RealBot for both Linux and Win32 builds. I gathered the src code from this github site:

https://github.com/Fundynamic/RealBot

I didn't do much apart from using HLSDK 2.3p4, Metamod SDK 1.19p37, VS2017, GCC-4.8 and did some optimisations for SSE2 code generation.

I had to do some modifications to the Makefile as it appears to be outdated but here is the newer Makefile:

Code:
CPP = gcc-4.8

#this is gcc 3.2
#CPP = gcc

ARCHFLAG = i686

METAMOD_SRCDIR = ../metamod-p-37/metamod

HLSDK_BASEDIR = ../hlsdk-2.3-p4

BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
#CPPFLAGS = ${BASEFLAGS} -march=i386 -O2 -w -I"../metamod" -I"../../devtools/hlsdk-2.3/singleplayer/common" -I"../../devtools/hlsdk-2.3/singleplayer/dlls" -I"../../devtools/hlsdk-2.3/singleplayer/engine" -I"../../devtools/hlsdk-2.3/singleplayer/pm_shared"
CPPFLAGS = ${BASEFLAGS} -I. -I"${METAMOD_SRCDIR}" -I"${HLSDK_BASEDIR}/multiplayer/common" -I"${HLSDK_BASEDIR}/multiplayer/dlls" -I"${HLSDK_BASEDIR}/multiplayer/engine" -I"${HLSDK_BASEDIR}/multiplayer/pm_shared"
	-march=${ARCHFLAG} -O2 -w -mtune=pentium4 -mmmx -msse -msse2 -m32 -mfpmath=sse -ffast-math 

SRC = bot.cpp \
	bot_buycode.cpp \
	bot_client.cpp \
	bot_func.cpp \
	bot_navigate.cpp \
	build.cpp \
	ChatEngine.cpp \
	dll.cpp \
	engine.cpp \
	game.cpp \
	IniParser.cpp \
	NodeMachine.cpp \
	util.cpp \

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 \
	ChatEngine.o \
	IniParser.o

realbot_mm.so: ${OBJ} ${SRC}
	${CPP} -fPIC -shared -o $@ ${OBJ} -Xlinker -Map -Xlinker realbot_mm.map -ldl
	mkdir -p Release
	mv $@ ${OBJ} realbot_mm.map Release
 
clean:
	rm -f *.o
	rm -f *.map
	rm -f *.so
	mv Release/*.so .
	rm -f Release/*
	mv *.so Release

distclean:
	rm -rf Release
	mkdir -p Release

%.o:	%.cpp
	${CPP} ${CPPFLAGS} -c $< -o $@

%.o:	%.c
	${CPP} ${CPPFLAGS} -c $< -o $@
https://apg-clan.org/vbdownloads.php...ownloadid=1135





vBulletin Webmaster since 2001
  
Reply With Quote