.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
badf error
Old
  (#1)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Warning badf error - 16-05-2006

After quite a few hours of errors now, I thought it best to sign up and post on the forums.


I've been surfing around the forums and seen the error a few times - the only solution I can see is compiling it on a win32 system. Well, I've tried compiling the source on my linux (FreeBSD) system...


Code:
[whitey@buck:~/podbot] make
"makefile", line 9: Unassociated shell command "bot_chat.o \
"makefile", line 10: Unassociated shell command "bot_client.o \
"makefile", line 11: Unassociated shell command "bot_combat.o \
"makefile", line 12: Unassociated shell command "bot_globals.o \
"makefile", line 13: Unassociated shell command "bot_sounds.o \
"makefile", line 14: Unassociated shell command "compress.o \
"makefile", line 15: Unassociated shell command "dll.o \
"makefile", line 16: Unassociated shell command "engine.o \
"makefile", line 17: Unassociated shell command "util.o \
"makefile", line 18: Unassociated shell command "waypoint.o
"makefile", line 38: warning: duplicate script for target "%.o" ignored
make: fatal errors encountered -- cannot continue

I've got the file path correct, I've upgraded metamod to version 1.9, I've setup the plugins.ini and the liblist.gam, my other loaded module (amx) works fine.

I've also put the amx_podbotmenu on there, the menu works fine, but obviously, it doesn't load the bots...


Code:
Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX              RUN   -    amx_mm_i586.so    v0.9.9    ini  ANY   ANY
 [ 2] CSStats          RUN   -    csstats_mm_i586.  v0.9.9    ini  ANY   ANY
 [ 3] Fun              RUN   -    fun_mm_i586.so    v0.9.9    ini  ANY   ANY
 [ 4] <podbot_mm_i386  badf load  podbot_mm_i386.s  v -       ini   -     -
Code:
         name: (nil)
         desc: <podbot_mm_i386.so>
       status: badfile
       action: load
     filename: addons/podbot/podbot_mm_i386.so
         file: podbot_mm_i386.so
     pathname: /usr/home/whitey/backup/hlds/cstrike/addons/podbot/podbot_mm_i386.so
        index: 4
       source: ini file
     loadable:  -
   unloadable:  -
      version: (nil)
         date: (nil)
       author: (nil)
          url: (nil)
       logtag: (nil)
       ifvers: (nil)
  last loaded: Thu Jan  1 10:00:00 1970
No DLLAPI functions.
No DLLAPI-Post functions.
No NEWAPI functions.
No NEWAPI-Post functions.
No Engine functions.
No Engine-Post functions.
Registered commands:
0 commands
Registered cvars:                      float value  string value
0 cvars
No child plugins.

Thanks for your help,



/Whitey
  
Reply With Quote
Re: badf error
Old
  (#2)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Default Re: badf error - 16-05-2006

Also, here's a copy of my directories and my plugins.ini...


Code:
[whitey@buck:~/backup/hlds/cstrike/addons/metamod] ls
dlls                    plugins.ini             sample_plugins.ini
[whitey@buck:~/backup/hlds/cstrike/addons/metamod] cd ../podbot/
[whitey@buck:~/backup/hlds/cstrike/addons/podbot] ls
botchat.txt             botweapons.cfg          podbot_mm_i386.so
botchats                pbmmdocs                podbot_mm_i586.so
botlogos.cfg            podbot.cfg              versionhistory.txt
botnames.txt            podbot_mm.dll           wptdefault
botskill.cfg            podbot_mm_amd64.so
Code:
; AMX Mod
 linux addons/amx/dlls/amx_mm_i586.so

; AMX Mod modules

; NOTE: don't declare 'pure' AMX Modules here
;       (those not having '_mm' in their filename)

; CS Stats (AMX module)
 linux addons/amx/modules/csstats_mm_i586.so

; Fun (AMX module)
 linux addons/amx/modules/fun_mm_i586.so

; Vexd Utilities (AMX module)
; linux addons/amx/modules/VexdUM_mm_i586.so

;EPoD bots
; linux EPODbot/EPB_i686.so

;PoD Bot mm
linux addons/podbot/podbot_mm_i386.so


Thanks,


/Whitey
  
Reply With Quote
Re: badf error
Old
  (#3)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: badf error - 16-05-2006

Get the beta sources with makefile included there. Then try again. Write the output error list while server is loading.
  
Reply With Quote
Re: badf error
Old
  (#4)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Default Re: badf error - 16-05-2006

Ok, I realised I need HLDK and metamod source (duh)... I tried recompiling after setting the paths in makefile correctly and made again...



Code:
bot.cpp:7544: error: `EF_NODRAW' undeclared (first use this function)
bot.cpp:7548: error: `FL_CLIENT' undeclared (first use this function)
bot.cpp:7551: error: `UTIL_GetTeam' cannot be used as a function
bot.cpp:7552: error: `IsAlive' cannot be used as a function
bot.cpp:7565: error: `FInViewCone' cannot be used as a function
bot.cpp:7694: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7697: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7702: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7702: error: `ignore_glass' undeclared (first use this function)
bot.cpp:7702: error: `UTIL_TraceLine' undeclared (first use this function)
bot.cpp:7708: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7737: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7738: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7750: error: `Vector2D' undeclared (first use this function)
bot.cpp:7750: error: expected `;' before "vec2DirToPoint"
bot.cpp:7751: error: expected `;' before "vec2RightSide"
bot.cpp:7756: error: `vec2DirToPoint' undeclared (first use this function)
bot.cpp:7756: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7757: error: `vec2RightSide' undeclared (first use this function)
bot.cpp:7768: error: `DotProduct' undeclared (first use this function)
bot.cpp:7897: error: 'struct bot_t' has no member named 'pBotEnemy'
bot.cpp:7902: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7903: error: 'struct bot_t' has no member named 'pItemIgnore'
bot.cpp:7903: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7905: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7908: error: 'struct bot_t' has no member named 'pShootBreakable'
bot.cpp:7928: error: `IN_MOVELEFT' undeclared (first use this function)
bot.cpp:7928: error: `IN_MOVERIGHT' undeclared (first use this function)
bot.cpp:7942: error: `UTIL_ClampVector' cannot be used as a function
bot.cpp:7943: error: `UTIL_ClampVector' cannot be used as a function
bot.cpp: In function `bool BotHasHostage(bot_t*)':
bot.cpp:7962: error: 'struct bot_t' has no member named 'pHostages'
bot.cpp:7962: error: `FNullEnt' undeclared (first use this function)
bot.cpp:7963: error: `TRUE' undeclared (first use this function)
bot.cpp:7965: error: `FALSE' undeclared (first use this function)
bot.cpp: At global scope:
bot.cpp:7978: error: `Vector' has not been declared
bot.cpp:7979: error: ISO C++ forbids declaration of `vecTargetPos' with no type
bot.cpp: In function `bool IsDeadlyDrop(bot_t*, int)':
bot.cpp:7982: error: `edict_t' undeclared (first use this function)
bot.cpp:7982: error: `pEdict' undeclared (first use this function)
bot.cpp:7982: error: 'struct bot_t' has no member named 'pEdict'
bot.cpp:7983: error: `Vector' undeclared (first use this function)
bot.cpp:7983: error: expected `;' before "vecBot"
bot.cpp:7984: error: `TraceResult' undeclared (first use this function)
bot.cpp:7984: error: expected `;' before "tr"
bot.cpp:7987: error: expected `;' before "vecMove"
That's a smidgon of all the errors...


EDIT:

Just saw your post KWo, I'll try that now .



/Whitey
  
Reply With Quote
Re: badf error
Old
  (#5)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Default Re: badf error - 16-05-2006

Just tried that, and edited the makefile...


Code:
[whitey@buck:~/podbot] make
"makefile", line 7: Missing dependency operator
"makefile", line 26: Missing dependency operator
"makefile", line 28: Missing dependency operator
"makefile", line 30: Missing dependency operator
"makefile", line 42: Missing dependency operator
"makefile", line 60: Missing dependency operator
"makefile", line 62: Missing dependency operator
"makefile", line 63: warning: duplicate script for target "ifeq" ignored
"makefile", line 63: warning: duplicate script for target """" ignored
"makefile", line 64: warning: duplicate script for target "ifeq" ignored
"makefile", line 64: warning: duplicate script for target """" ignored
"makefile", line 65: warning: duplicate script for target "ifeq" ignored
"makefile", line 65: warning: duplicate script for target """" ignored
"makefile", line 66: warning: duplicate script for target "ifeq" ignored
"makefile", line 66: warning: duplicate script for target """" ignored
"makefile", line 67: warning: duplicate script for target "ifeq" ignored
"makefile", line 67: warning: duplicate script for target """" ignored
"makefile", line 68: Missing dependency operator
"makefile", line 69: warning: duplicate script for target "else" ignored
"makefile", line 70: warning: duplicate script for target "else" ignored
"makefile", line 71: warning: duplicate script for target "else" ignored
"makefile", line 72: warning: duplicate script for target "else" ignored
"makefile", line 73: warning: duplicate script for target "else" ignored
"makefile", line 74: Missing dependency operator
"makefile", line 76: Missing dependency operator
"makefile", line 77: warning: duplicate script for target "ifeq" ignored
"makefile", line 77: warning: duplicate script for target """" ignored
"makefile", line 78: warning: duplicate script for target "ifeq" ignored
"makefile", line 78: warning: duplicate script for target """" ignored
"makefile", line 79: warning: duplicate script for target "ifeq" ignored
"makefile", line 79: warning: duplicate script for target """" ignored
"makefile", line 81: Need an operator
"makefile", line 87: Missing dependency operator
"makefile", line 92: Missing dependency operator
"makefile", line 93: warning: duplicate script for target "ifeq" ignored
"makefile", line 93: warning: duplicate script for target """" ignored
"makefile", line 94: Missing dependency operator
"makefile", line 95: warning: duplicate script for target "else" ignored
"makefile", line 96: Missing dependency operator
"makefile", line 103: Missing dependency operator
"makefile", line 105: Missing dependency operator
"makefile", line 107: Missing dependency operator
"makefile", line 121: Missing dependency operator
"makefile", line 122: warning: duplicate script for target "ifeq" ignored
"makefile", line 122: warning: duplicate script for target """" ignored
"makefile", line 122: warning: duplicate script for target ""amd64"" ignored
"makefile", line 123: Missing dependency operator
"makefile", line 124: warning: duplicate script for target "else" ignored
"makefile", line 125: Missing dependency operator
"makefile", line 156: warning: duplicate script for target "/%.o" ignored
"makefile", line 160: warning: duplicate script for target "obj.win32" ignored
"makefile", line 160: warning: duplicate script for target "/%.o" ignored
"makefile", line 164: warning: duplicate script for target "obj.win32" ignored
"makefile", line 164: warning: duplicate script for target "/%.o" ignored
"makefile", line 169: warning: duplicate script for target "obj.linux" ignored
"makefile", line 172: warning: duplicate script for target "obj.win32" ignored
"makefile", line 175: warning: duplicate script for target "obj.linux" ignored
"makefile", line 178: warning: duplicate script for target "obj.win32" ignored
make: fatal errors encountered -- cannot continue

I'm pretty sure I edited what needs to be edited in the makefile...

Code:
SDKTOP=../hlsdk
SDKSRC=$(SDKTOP)/multiplayer
METADIR=../metamod/metamod
SRCDIR=.

That looks right to me...

Code:
[whitey@buck:~/podbot] cd ../hlsdk
[whitey@buck:~/hlsdk] cd multiplayer/
[whitey@buck:~/hlsdk/multiplayer] cd ../../podbot
[whitey@buck:~/podbot] cd ../metamod/metamod/
[whitey@buck:~/metamod/metamod]


/Whitey
  
Reply With Quote
Re: badf error
Old
  (#6)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: badf error - 16-05-2006

Post Your all makefile (not only some parts of it). What the version of mingw are You using to compile stuff?
Write:
gcc -v
to get the version number.
  
Reply With Quote
Re: badf error
Old
  (#7)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Default Re: badf error - 16-05-2006

Makefile:

Code:
# Console command(s) for compiling on Cygwin/MinGW:
#   Example Cygwin: make HOST=cygwin
# 	http://www.xake.dk/target/tools.html

MODNAME = podbot_mm
SRCFILES = bot.cpp bot_chat.cpp bot_client.cpp bot_combat.cpp bot_globals.cpp \
bot_sounds.cpp compress.cpp dll.cpp engine.cpp util.cpp waypoint.cpp

RESFILE = podbot_mm.rc

EXTRA_LIBS_LINUX =
EXTRA_LIBS_WIN32 =
EXTRA_LIBDIRS_LINUX = -Lextra/lib_linux
EXTRA_LIBDIRS_WIN32 = -Lextra/lib_win32

#EXTRA_FLAGS = -Dstrcmpi=strcasecmp

SDKTOP=../hlsdk
SDKSRC=$(SDKTOP)/multiplayer
METADIR=../metamod/metamod
SRCDIR=.

OBJDIR_LINUX=obj.linux
OBJDIR_WIN32=obj.win32

ifeq "$(shell uname | cut -d _ -f1)" "CYGWIN"
	HOST=cygwin
endif

ifdef ComSpec
	ifeq "$(HOST)" "cygwin"
		OS=LINUX
		MCPU=-mcpu
		PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
		CLEAN=clean_linux
	else
		OS=WIN32
		MCPU=-mtune
		PATH_WIN=/mingw/bin
		CLEAN=clean_win32
	endif
else
	ifdef COMSPEC
		ifeq "$(HOST)" "cygwin"
			OS=LINUX
			MCPU=-mcpu
			PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
			CLEAN=clean_linux
		else
			OS=WIN32
			MCPU=-mtune
			PATH_WIN=/mingw/bin
			CLEAN=clean_msys_w32
		endif
	else
		OS=LINUX
		PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
		CLEAN=clean_linux
	endif
endif

ifeq "$(HOST)" "cygwin"
	ifeq "$(ARCH)" "amd64"
		CC_LINUX=g++-linux-x86_64
	else
		CC_LINUX=g++-linux
	endif
else
	ifeq "$(ARCH)" "amd64"
		CC_LINUX=g++-x86_64
	else
		CC_LINUX=g++
	endif
endif

ifeq "$(OS)" "LINUX"
	INSTALL=install -m 644
	LD_WINDLL= PATH=$(PATH_WIN) $(PATH_WIN)/dllwrap
	DEFAULT=linux
#	CLEAN=clean_linux
else	# WIN32
	INSTALL=cp
	CC_WIN32=g++
	LD_WINDLL= dllwrap
	DEFAULT=win32
#	CLEAN=clean_win32
endif

RES_WIN32=windres

# Just call everything i386 unless its a 64bit binary!
ifeq "$(ARCH)" "amd64"
	LIBFILE_LINUX = $(MODNAME)_amd64.so
else
	LIBFILE_LINUX = $(MODNAME)_i386.so
endif

LIBFILE_WIN32 = $(MODNAME).dll
TARGET_LINUX = $(OBJDIR_LINUX)/$(LIBFILE_LINUX)
TARGET_WIN32 = $(OBJDIR_WIN32)/$(LIBFILE_WIN32)

FILES_ALL = *.cpp *.h [A-Z]* *.rc
ifeq "$(OS)" "LINUX"
#	ASRCFILES := $(shell ls -t $(SRCFILES))
else
#	ASRCFILES := $(shell dir /b)
endif

OBJ_LINUX := $(SRCFILES:%.cpp=$(OBJDIR_LINUX)/%.o)
OBJ_WIN32 := $(SRCFILES:%.cpp=$(OBJDIR_WIN32)/%.o)
RES_OBJ_WIN32 := $(RESFILE:%.rc=$(OBJDIR_WIN32)/%.o)

# optimisation level; overridden for certain problematic files
CCO = -O2 -fomit-frame-pointer
#CCO = -O2

#use this one for debug
#CCO = -g3

# architecture tuning by arch type
ifeq "$(ARCH)" "amd64"
	CCOPT_ARCH =
else
	CCOPT_ARCH = -march=i586 $(MCPU)=i686
endif

#BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
BASEFLAGS =

CCOPT = $(CCO) $(CCOPT_ARCH) -fno-exceptions -fno-rtti -DNDEBUG
#CCOPT = $(CCO) $(CCOPT_ARCH) -fno-exceptions -fno-rtti
#CCOPT = $(CCO) $(CCOPT_ARCH) -DNDEBUG


INCLUDEDIRS= -I$(SRCDIR) -I$(METADIR) -I$(SDKSRC)/engine -I$(SDKSRC)/common -I$(SDKSRC)/pm_shared -I$(SDKSRC)/dlls -I$(SDKSRC) $(EXTRA_INCLUDEDIRS)
#CFLAGS=-Wall -Wno-unknown-pragmas
CFLAGS=$(BASEFLAGS) -Wall -Wno-unknown-pragmas

ODEF = -DOPT_TYPE=\"optimized\"
#ODEF =
CFLAGS:=$(CCOPT) $(CFLAGS) $(ODEF)

DO_CC_LINUX=$(CC_LINUX) $(CFLAGS) -fPIC $(INCLUDEDIRS) -DLINUX -o $@ -c $<
DO_CC_WIN32=$(CC_WIN32) $(CFLAGS) $(INCLUDEDIRS) -DWIN32 -o $@ -c $<
DO_RES_WIN32=$(RES_WIN32) -I$(SRCDIR) -I$(METADIR) -i $< -O coff -o $@
LINK_LINUX=$(CC_LINUX) $(CFLAGS) -shared -ldl -lm -static-libgcc $(OBJ_LINUX) $(EXTRA_LIBDIRS_LINUX) $(EXTRA_LIBS_LINUX) -s -o $@
LINK_WIN32=$(CC_WIN32) -mdll -Xlinker --add-stdcall-alias $(OBJ_WIN32) $(RES_OBJ_WIN32) $(EXTRA_LIBDIRS_WIN32) $(EXTRA_LIBS_WIN32) -s -o $@
#for debug use 2 below
#LINK_LINUX=$(CC_LINUX) $(CFLAGS) -shared -ldl -lm -static-libgcc $(OBJ_LINUX) $(EXTRA_LIBDIRS_LINUX) $(EXTRA_LIBS_LINUX) -o $@
#LINK_WIN32=$(CC_WIN32) -mdll -Xlinker --add-stdcall-alias $(OBJ_WIN32) $(RES_OBJ_WIN32) $(EXTRA_LIBDIRS_WIN32) $(EXTRA_LIBS_WIN32) -o $@

$(OBJDIR_LINUX)/%.o: $(SRCDIR)/%.cpp
	$(DO_CC_LINUX)

$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.cpp
	$(DO_CC_WIN32)

# compiling windows resource file
$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.rc $(INFOFILES)
	$(DO_RES_WIN) 

# compiling windows resource file
$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.rc
	$(DO_RES_WIN32)

default: $(DEFAULT)

$(TARGET_LINUX): $(OBJDIR_LINUX) $(OBJ_LINUX)
	$(LINK_LINUX)

$(TARGET_WIN32): $(OBJDIR_WIN32) $(OBJ_WIN32) $(RES_OBJ_WIN32)
	$(LINK_WIN32)

$(OBJDIR_LINUX):
	mkdir $@

$(OBJDIR_WIN32):
	mkdir $@

win32: $(TARGET_WIN32)

linux: $(TARGET_LINUX)
	
clean: $(CLEAN)

clean_linux:
	test -n "$(OBJDIR_LINUX)"
	-rm -f $(OBJDIR_LINUX)/*.o

clean_win32:
	-if exist $(OBJDIR_WIN32)\*.o del /q $(OBJDIR_WIN32)\*.o
	
clean_msys_w32:
	test -n "$(OBJDIR_WIN32)"
	-rm -f $(OBJDIR_WIN32)/*.o
	

clean_both: clean_linux clean_win32



gcc:

Code:
[whitey@buck:~/podbot] gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728


Thanks,



/Whitey
  
Reply With Quote
Re: badf error
Old
  (#8)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: badf error - 16-05-2006

make -v

and what shell are you using?

most;ly your errors are related to makefile

i suggest you change any line tkat ends with slash \ to the single line
just delete the slahs and the enwline character, so the text will create one long line.
  
Reply With Quote
Re: badf error
Old
  (#9)
Whitey
Member
 
Status: Offline
Posts: 19
Join Date: May 2006
Default Re: badf error - 16-05-2006

Quote:
Originally Posted by [NvT]_KaszpiR_
make -v

and what shell are you using?

make -v gives me the same errors...


I'm using bash as far as I know..



/Whitey
  
Reply With Quote
Re: badf error
Old
  (#10)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: badf error - 16-05-2006

try
make --version
similiar in bash
bash --version
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com