Skip to content

Commit 86d93b1

Browse files
Merge pull request #61 from liam-middlebrook/running-fixed
Changes to get bingehack running on new gameserver
2 parents f0b00f6 + 40d717f commit 86d93b1

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

libnethack_client/include/nhclient.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
# include <jansson.h>
1919

20-
# define DEFAULT_PORT 53430
21-
2220
extern struct nh_window_procs client_windowprocs;
2321
extern int current_game;
2422
extern jmp_buf ex_jmp_buf;

libnethack_common/include/nethack_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
# include "nethack_types.h"
99

10+
# define DEFAULT_PORT 53430
11+
1012
# ifdef NETHACK_CLIENT_H_IN_LIBNETHACK_CLIENT
1113
# define EXPORT(x) AIMAKE_EXPORT(x)
1214
# else

nethack/src/netgame.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,8 @@ netgame(void)
713713
if (ui_flags.connection_only) {
714714
servlist = NULL;
715715
server = &localserver;
716-
localserver.hostname = strdup("::1");
716+
localserver.hostname = strdup("localhost");
717+
localserver.port = DEFAULT_PORT;
717718
if (!get_username_password(&localserver))
718719
goto finally;
719720
} else {

nethack_server/src/config.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ struct { const char *const name; size_t offset; } settings_map[] = {
3939
SETTINGS_MAP_ENTRY(dbport),
4040
SETTINGS_MAP_ENTRY(dbuser),
4141
SETTINGS_MAP_ENTRY(dbpass),
42-
SETTINGS_MAP_ENTRY(dbname)
42+
SETTINGS_MAP_ENTRY(dbname),
43+
SETTINGS_MAP_ENTRY(dboptions)
4344
};
4445

4546
static int

travis-build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
#set -x
44

5-
mkdir build
5+
mkdir -p build
66
cd build
77

88
if [[ -z "$BUILD_SYSTEM" ]]; then
@@ -16,7 +16,7 @@ elif [[ "$BUILD_SYSTEM" == aimake ]]; then
1616
tempfile="$(mktemp)"
1717
trap "rm -f \"$tempfile\"" EXIT ERR
1818

19-
../aimake -i /tmp/bingehack4 2>&1 | tee "$tempfile"
19+
../aimake --with=server -i /tmp/bingehack4 2>&1 | tee "$tempfile"
2020
grep -qi "fail" "$tempfile" && exit 1
2121
else
2222
echo "Unsupported build system $BUILD_SYSTEM" >&2

0 commit comments

Comments
 (0)