- Joined
- Dec 21, 2008
- Messages
- 6
- Reaction score
- 0
hello guys, this is my first post here, i just need some help. i already look at guides and follwed them perfectly, i also searched the forums for answers as well as experimented fixes myself, but all at a loss D:
i dont knwo what to do anymore so now i turn to you guys :]
im using that dragon source server and everything works fine except for compiling gameserver.
i get these errors, i know they r posted in this forum and i did fixes from other threads but i dont know why im still gettin them :/
heres error 1
and the code from MersenneTwister.h
and heres error 2.
and the code from server.cpp
if someone could explain whats goin on and how to resolve this it would be much appreaciated. im learning so much so far 
i dont knwo what to do anymore so now i turn to you guys :]
im using that dragon source server and everything works fine except for compiling gameserver.
i get these errors, i know they r posted in this forum and i did fixes from other threads but i dont know why im still gettin them :/
heres error 1
Code:
c:\documents and settings\alexander\desktop\keybind\dragonflyff_source\gameserver\MersenneTwister.h(190) : error C2661: 'fopen' : no overloaded function takes 2 arguments
c:\documents and settings\alexander\desktop\keybind\dragonflyff_source\gameserver\MersenneTwister.h(197) : warning C4800: 'size_t' : forcing value to bool 'true' or 'false' (performance warning)
Code:
FILE* urandom = fopen( "/dev/urandom", "rb" );
and heres error 2.
Code:
c:\documents and settings\alexander\desktop\keybind\dragonflyff_source\gameserver\Config.h(202) : error C2770: invalid explicit template argument(s) for 'T ConfigFile::string_as_T(const std::string &)'
c:\documents and settings\alexander\desktop\keybind\dragonflyff_source\gameserver\Config.h(102) : see declaration of 'ConfigFile::string_as_T'
.\Server.cpp(130) : see reference to function template instantiation 'bool ConfigFile::readInto<char[50]>(T (&),const std::string &) const' being compiled
with
[
T=char [50]
]
and the code from server.cpp
Code:
void WINAPI Server::worldServerThread(){
loop:
worldServerSock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if(worldServerSock!=INVALID_SOCKET){
char serverip[50];
config.readInto(serverip, "ip");
if(connectToWorldServer("127.0.0.1",23000)){
char servername[50];
config.readInto(servername, "servername");
sendWorldServerAuth("Game-Proz");
fd_set fds;
do {
FD_ZERO(&fds);
FD_SET (worldServerSock, &fds);
int Select = select(worldServerSock+1,&fds,NULL,NULL,NULL);
if(Select == SOCKET_ERROR) {
setIsActive(false);
} else {
if(FD_ISSET(worldServerSock,&fds)) {
//if(!WSAMain::recvData())
//WSAMain::setIsActive(false);
}
}
Sleep(1);
} while(getIsActive());
}
}
Sleep(100);
goto loop;
}

