Server Help

Bot Questions - Kirk's Bot

Pixel - Fri Dec 31, 2004 1:59 am
Post subject: Kirk's Bot
Everytime I try to compile Kirk's bot, it gives me errors. Even though I havent done a single thing to it. I dont know C++, so Im going to learn from his bot. But could someone first get rid of those errors Im getting? Thanks.

**I can attach the file because its too big, but you can get the same source files from his website: http://www.metalgearctf.net/kirksbots/sourcedl.php
CypherJF - Fri Dec 31, 2004 2:56 am
Post subject:
Why don't you tell us what errors you are getting; what compiler are you using, etc.
Pixel - Fri Dec 31, 2004 3:02 am
Post subject:
Im using Microsoft Visual C+6 6.0

Compiling...
BotCore.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
Checksum.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
CommWrapper.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
ConInterp.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
FileInterp.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
Log.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
LogicBot.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
SSPacket.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
SSProtocol.cpp
c:\documents and settings\yader\desktop\projects\intel bot\source\logicbot.h(12) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
Generating Code...
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\BotCore.sbr': No such file or directory
Error executing bscmake.exe.

LogicBot.exe - 10 error(s), 0 warning(s)


Though these files seem to be there.
CypherJF - Fri Dec 31, 2004 3:36 am
Post subject:
You're missing zlib; i wonder if you borrowed the appropriate files from merv, i wonder it'd it'd build.. :shrug:
Pixel - Fri Dec 31, 2004 10:53 am
Post subject:
zlib.h is there. I had to put it in manually because it wasnt there before. But even though i did that, it still gives me those errors...
D1st0rt - Fri Dec 31, 2004 11:02 am
Post subject:
did you include it in your project?
Pixel - Fri Dec 31, 2004 12:02 pm
Post subject:
Yea, but I might been doing something wrong. Again I dont know anything about this program. All I did is go to the option to "Add files or Folder" and I inserted zlib.h
Cyan~Fire - Fri Dec 31, 2004 1:29 pm
Post subject:
uhhh zlib.h needs to either be in your include directory or in \source.
Pixel - Fri Dec 31, 2004 2:08 pm
Post subject:
It is, but its not working...
Cyan~Fire - Sat Jan 01, 2005 1:37 pm
Post subject:
Wait, is it <zlib.h> or "zlib.h"?
Pixel - Sat Jan 01, 2005 2:05 pm
Post subject:
zlib.h
myke - Sat Jan 01, 2005 2:27 pm
Post subject:
Pixel wrote:
zlib.h


he asked if it says #include <zlib.h> or #include "zlib.h" he knows it says zlib.h but in which format
Pixel - Sat Jan 01, 2005 2:49 pm
Post subject:
I have no clue. Like I stated above, I have no idea about C++ and im trying to learn.

I knew c++ was complicated and hard, but I would've never guessed it would've been so complicated from the start without editing anything icon_cry.gif
Cyan~Fire - Sat Jan 01, 2005 7:01 pm
Post subject:
Uhhh look in logicbot.h. The line myke and I are talking about will be somewhere near the top of the file.
Pixel - Sat Jan 01, 2005 11:04 pm
Post subject:
<zlib.h>
myke - Sun Jan 02, 2005 3:10 am
Post subject:
change it to #include "zlib.h" and see if that works
Pixel - Sun Jan 02, 2005 3:18 pm
Post subject:
Now im getting 56 errors :sigh:


--------------------Configuration: LogicBot - Win32 Debug--------------------
Compiling...
BotCore.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
Checksum.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
CommWrapper.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
ConInterp.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
FileInterp.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
Log.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
LogicBot.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
SSPacket.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
SSProtocol.cpp
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\logicbot.h(12) : error C2006: #include expected a filename, found 'identifier'
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1010) : error C2065: 'uLongf' : undeclared identifier
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1010) : error C2146: syntax error : missing ';' before identifier 'UCLen'
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1010) : error C2065: 'UCLen' : undeclared identifier
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1011) : error C2065: 'Z_OK' : undeclared identifier
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1035) : error C2065: 'uncompress' : undeclared identifier
c:\documents and settings\yader\desktop\projects\c++\ssprotocol.cpp(1038) : error C2065: 'Z_BUF_ERROR' : undeclared identifier
Generating Code...
Error executing cl.exe.
Creating browse info file...

LogicBot.exe - 53 error(s), 0 warning(s)
myke - Sun Jan 02, 2005 4:09 pm
Post subject:
yeah sorry i can't help i lost my VC++ cd but you took out #include <zlib.h> and made it #include "zlib.h"

make sure its
Code: Show/Hide
#include "zlib.h"


not
Code: Show/Hide
#include 'zlib.h'

Solo Ace - Sun Jan 02, 2005 4:34 pm
Post subject:
Jesus, is it that hard to read?
Pixel - Sun Jan 02, 2005 5:31 pm
Post subject:
--------------------Configuration: LogicBot - Win32 Debug--------------------
Linking...
SSProtocol.obj : error LNK2001: unresolved external symbol "public: __thiscall SSReliable::SSReliable(void)" (??0SSReliable@@QAE@XZ)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: __thiscall SSReliable::~SSReliable(void)" (??1SSReliable@@QAE@XZ)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: class SSPacket __thiscall SSReliable::GetFromServer(void)" (?GetFromServer@SSReliable@@QAE?AVSSPacket@@XZ)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: bool __thiscall SSReliable::AvailableFromServer(void)const " (?AvailableFromServer@SSReliable@@QBE_NXZ)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: void __thiscall SSReliable::AddFromServer(unsigned __int32,class SSPacket const &)" (?AddFromServer@SSReliable@@QAEX_IABVSSPacket@@@Z)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: void __thiscall SSReliable::AddFromClient(class SSPacket &)" (?AddFromClient@SSReliable@@QAEXAAVSSPacket@@@Z)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: class SSPacket __thiscall SSReliable::GetFromClient(unsigned __int32,unsigned __int32)" (?GetFromClient@SSReliable@@QAE?AVSSPacket@@_I0@Z)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: bool __thiscall SSReliable::AvailableFromClient(unsigned __int32,unsigned __int32)const " (?AvailableFromClient@SSReliable@@QBE_N_I0@Z)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: void __thiscall SSReliable::RemoveFromClient(unsigned __int32)" (?RemoveFromClient@SSReliable@@QAEX_I@Z)
SSProtocol.obj : error LNK2001: unresolved external symbol "public: void __thiscall SSReliable::Clear(void)" (?Clear@SSReliable@@QAEXXZ)
Debug/LogicBot.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

LogicBot.exe - 11 error(s), 0 warning(s)
Cyan~Fire - Sun Jan 02, 2005 11:06 pm
Post subject:
Sounds like you're not linking one of the cpp files you need?
Pixel - Mon Jan 03, 2005 12:18 am
Post subject:
YEA?! thats great... can you tell me which one do i "link" and how do i "link" ?
Solo Ace - Mon Jan 03, 2005 12:29 am
Post subject:
Someone give this guy a zip (or another type) archive with a VC++ project in it which is ready for compiling, this is getting sad.
Pixel - Mon Jan 03, 2005 12:41 am
Post subject:
THANK YOU! This is what ive been waiting for....
Pixel - Tue Jan 04, 2005 1:29 pm
Post subject:
bump
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group