Home

A multiplayer galactic game. I had to fix the code for compiling it. See below for instructions. The game can be found here.

gnu-conquest

Compilation

Download the source code; then type:

./configure

You need to go to the src/directory and edit some files.

Edit the file conquest_game1.cpp and add (at the beginning):

#include 

Edit the file conquest_game3.cpp and add (at the beginning):

#include 

In the same file, you have to look for the following function:

void Conquest_Game::Game::timer(){
  sleep(turn_timeout);
  pthread_mutex_lock(&commanding_permition_mutex);
  commanding_permition = false;
  pthread_mutex_unlock(&commanding_permition_mutex);
  char* mess = " dn ";
  send(socket_fd, mess, std::strlen(mess), 0);
}

In the previous code, you have to remove the “std::” part (before the strlen function).

Edit the file conquest_server_client.hpp and remove (or comment) the following line (line 11):

class Conquest_Server::Server;

Edit finally the file conquest_server_server5.cpp and add (at the beginning):

#include 

Now, you can type:

make
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s