Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Lordsputnik

Storebot errors

Recommended Posts

I get 45 errors compiling the storebot code, as linked to in CrusadingKnight's guide to getting a bot. I'm not that good at C++, so I need someone to iron out the bugs/tell me what to do in order to make it work. If anyone thinks they can help, please pm me ingame, or here.

 

Thanks, Lord Sputnik. :)

Share this post


Link to post
Share on other sites

Compiler: Default compiler
Building Makefile: "D:\Data\Downloads\storebot\storebot\Makefile.win"
Executing  make...
make.exe -f "D:\Data\Downloads\storebot\storebot\Makefile.win" all
gcc.exe -c connection.c -o connection.o -I"D:/Data/KotFR/Dev-Cpp/include"	-w -fexpensive-optimizations -O3

In file included from trade.h:4,
			 from connection.c:31:
items.h:7: error: syntax error before "Uint16"

items.h:195: error: syntax error before "inv"
items.h:200: error: syntax error before '*' token
items.h:201: error: syntax error before '*' token
In file included from connection.c:31:
trade.h:13: error: syntax error before "ITEM"
trade.h:25: error: syntax error before '}' token
trade.h:40: error: syntax error before "trade"
trade.h:48: error: syntax error before "Uint16"
trade.h:49: error: syntax error before "Uint16"

trade.h:52: error: syntax error before "Uint16"
trade.h:53: error: syntax error before "Uint16"
trade.h:55: error: syntax error before "Uint32"
trade.h:56: error: syntax error before "Uint32"
connection.c:49: error: syntax error before "theset"
connection.c:50: error: syntax error before "thesock"
connection.c: In function `init_connection':
connection.c:58: error: `IPaddress' undeclared (first use in this function)
connection.c:58: error: (Each undeclared identifier is reported only once
connection.c:58: error: for each function it appears in.)
connection.c:58: error: syntax error before "ipad"
connection.c:67: error: `ipad' undeclared (first use in this function)
connection.c: At top level:
connection.c:157: error: syntax error before '*' token
connection.c: In function `handle_raw_text_from_server':
connection.c:159: error: `data' undeclared (first use in this function)
connection.c:160: error: `Uint8' undeclared (first use in this function)

connection.c:160: error: syntax error before "user"
connection.c:164: error: `user' undeclared (first use in this function)
connection.c:170: error: `command' undeclared (first use in this function)
connection.c:175: error: `args' undeclared (first use in this function)
connection.c: In function `process_message':
connection.c:198: error: `Uint8' undeclared (first use in this function)
connection.c:198: error: syntax error before "command"
connection.c:201: error: `command' undeclared (first use in this function)
connection.c:207: error: `me' undeclared (first use in this function)
connection.c:235: error: request for member `he_accepted' in something not a structure or union
connection.c:238: error: request for member `we_accepted' in something not a structure or union
connection.c:243: error: request for member `he_accepted' in something not a structure or union
connection.c:245: error: request for member `we_accepted' in something not a structure or union
connection.c:254: error: `Uint16' undeclared (first use in this function)
connection.c:254: error: syntax error before ')' token
connection.c:254: error: `Uint32' undeclared (first use in this function)
connection.c:254: error: syntax error before ')' token

connection.c:259: error: syntax error before ')' token
connection.c:273: error: `stderr' undeclared (first use in this function)
connection.c:279: error: label at end of compound statement

connection.c: In function `send_to_server':
connection.c:323: error: `Uint16' undeclared (first use in this function)
connection.c:323: error: syntax error before "len"

make.exe: *** [connection.o] Error 1

Execution terminated

 

I think most of it is me not configuring it properly...

Edited by Lordsputnik

Share this post


Link to post
Share on other sites

Thanks. Downloading them now.

 

EDIT: It says that the devpak files are corrupt.

That would be your download, i'd assume. It may have been corrupted during transfer. Try downloading again - these files have been on my webserver for months and there have never been any reported issues.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×