Hosting LAN games

5 replies [Last post]
Cheeto
Cheeto's picture
User offline. Last seen 3 years 48 weeks ago. Offline
Joined: 2009-04-13
Posts: 6

How can one host their own game of Hedgewars? In the LAN menu, there are only three options:

Update
Specify
Connect

Trying to connect to localhost of 127.0.0.1 does not work. If one can only join games, how is anyone playing without connecting to the official server?

Zept
Zept's picture
User offline. Last seen 14 years 33 weeks ago. Offline
Joined: 2009-02-06
Posts: 8

You probably have not compiled netserver. From INSTALL:

--

1. Configure:
$ cmake .
or
$ cmake -DCMAKE_CXX_FLAGS="flags" -DCMAKE_INSTALL_PREFIX="install prefix" -DDATA_INSTALL_DIR="data dir" .

add -DWITH_SERVER=1 to compile net server (requires Glasgow Haskell Compiler)

--

So you will need GHC and then add -DWITH_SERVER=1

Well, Im not sure, but that would make some kind of sense at least.

Cheeto
Cheeto's picture
User offline. Last seen 3 years 48 weeks ago. Offline
Joined: 2009-04-13
Posts: 6

Zept allegedly wrote:

You probably have not compiled netserver. From INSTALL:

--

1. Configure:
$ cmake .
or
$ cmake -DCMAKE_CXX_FLAGS="flags" -DCMAKE_INSTALL_PREFIX="install prefix" -DDATA_INSTALL_DIR="data dir" .

add -DWITH_SERVER=1 to compile net server (requires Glasgow Haskell Compiler)

--

So you will need GHC and then add -DWITH_SERVER=1

Well, Im not sure, but that would make some kind of sense at least.

Thanks, it does make sense that I would need to compile netserver along with the rest of the hedgewars source, but since this release (0.9.10) has binaries available for all of my operating systems (and I do use all three), I was hoping they would include all online functionality. I'll try compiling from source and see if it adds anything.

Out of curiosity, has anyone successfully hosted a LAN game using the vanilla binaries available from the main site?

spacebison
User offline. Last seen 1 year 48 weeks ago. Offline
Joined: 2008-12-22
Posts: 34

I was wondering that too, since on my windows xp box I can host lan games, but not on my ubuntu box. Not really a big issue for me since I use windows most of the time.

alex12
User offline. Last seen 6 years 24 weeks ago. Offline
Joined: 2009-02-24
Posts: 115

spacebison allegedly wrote:

I was wondering that too, since on my windows xp box I can host lan games, but not on my ubuntu box. Not really a big issue for me since I use windows most of the time.

I was able to do it with the getdeb packages.

Cheeto
Cheeto's picture
User offline. Last seen 3 years 48 weeks ago. Offline
Joined: 2009-04-13
Posts: 6

alex12 allegedly wrote:

spacebison allegedly wrote:

I was wondering that too, since on my windows xp box I can host lan games, but not on my ubuntu box. Not really a big issue for me since I use windows most of the time.

I was able to do it with the getdeb packages.

I just re-installed on my Ubuntu machine from the getdeb packages, and I am able to host a game now.
Big Grin

Once the option to host a LAN game was available, I still had to configure my router to forward the port I wanted to use.

Still can't get it to compile on my Macbook for the life of me-- keep getting an error about not having a pascal compiler, and I have tried several different ones. Anyone know what flag to throw in to specify the path to freepascal or gpc?

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]