Author |
Message |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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 |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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: |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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... |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Dec 31, 2004 11:02 am Post subject: |
 |
|
|
|
did you include it in your project? _________________
 |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Dec 31, 2004 1:29 pm Post subject: |
 |
|
|
|
uhhh zlib.h needs to either be in your include directory or in \source. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: Fri Dec 31, 2004 2:08 pm Post subject: |
 |
|
|
|
It is, but its not working... |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Jan 01, 2005 1:37 pm Post subject: |
 |
|
|
|
Wait, is it <zlib.h> or "zlib.h"? |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: Sat Jan 01, 2005 2:05 pm Post subject: |
 |
|
|
|
zlib.h |
|
Back to top |
|
 |
myke Seasoned Helper
Gender: Joined: Sep 11 2003 Posts: 142 Offline
|
Posted: Sat Jan 01, 2005 2:27 pm Post subject: |
 |
|
|
|
he asked if it says #include <zlib.h> or #include "zlib.h" he knows it says zlib.h but in which format |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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  |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: Sat Jan 01, 2005 11:04 pm Post subject: |
 |
|
|
|
<zlib.h> |
|
Back to top |
|
 |
myke Seasoned Helper
Gender: Joined: Sep 11 2003 Posts: 142 Offline
|
Posted: Sun Jan 02, 2005 3:10 am Post subject: |
 |
|
|
|
change it to #include "zlib.h" and see if that works |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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) |
|
Back to top |
|
 |
myke Seasoned Helper
Gender: Joined: Sep 11 2003 Posts: 142 Offline
|
Posted: 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
not
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Jan 02, 2005 4:34 pm Post subject: |
 |
|
|
|
Jesus, is it that hard to read? |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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) |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Jan 02, 2005 11:06 pm Post subject: |
 |
|
|
|
Sounds like you're not linking one of the cpp files you need? |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: 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" ? |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: 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. |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: Mon Jan 03, 2005 12:41 am Post subject: |
 |
|
|
|
THANK YOU! This is what ive been waiting for.... |
|
Back to top |
|
 |
Pixel Newbie
Joined: Dec 30 2004 Posts: 16 Offline
|
Posted: Tue Jan 04, 2005 1:29 pm Post subject: |
 |
|
|
|
bump |
|
Back to top |
|
 |
|