Author Topic: Instructions for setting up an FH2 server  (Read 542 times)

Offline jrivett

  • Newbie
  • *
  • Posts: 38
    • View Profile
Instructions for setting up an FH2 server
« on: 05-05-2024, 23:05:12 »
I'm able to run a vanilla BF2 or Hard Justice server on my Linux server, and was previously able to run an FH2 server on that computer as well. But with the more recent FH2 server releases, I get weird errors and crashes. Can you please point me to the documentation for setting up an FH2 server (especially on Linux)? Also, I get the feeling that the Linux server has certain requirements, but I'm unable to find anything like a requiremements document either.

Offline Seth_Soldier

  • Developer
  • ******
  • Posts: 2.319
  • "Mort aux cons !"
    • View Profile
Re: Instructions for setting up an FH2 server
« Reply #1 on: 08-05-2024, 10:05:52 »
for that kind of specific problem,
you might want to join our discord where there is a more active support (maybe someone else had the problem ?)
here the link to the discord channel, then go to #tech-support in the Help-center section
https://discord.gg/hU878P4
« Last Edit: 08-05-2024, 10:05:53 by Seth_Soldier »

Offline jrivett

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Instructions for setting up an FH2 server
« Reply #2 on: 08-05-2024, 20:05:27 »
Yesterday, I posted the following on the FH2 Discord server in #tech-support, just as you've suggested. No response so far.

After having given up on it a couple of years ago, I'm once again looking at getting a Linux server running. I started with a new Debian 12 VM (not Debian 8 as I originally said) instead of messing around with my production server. And it works! Except for one thing: I can only make it work if I avoid coop mode. If the first line of maplist.con is a gpm_cq map, start-fh2.sh works beautifully. If the first line is a gpm_coop map, I get a segfault. If I try to switch the running server to a gpm_coop map, I get a segfault. I think this might help to explain why some people run the server without any issues and others (like me) not so much.

When the server crashes on running a coop map, these entries appear in the fh2-errors log:
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "pylib2.7.12.zip/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "pylib2.7.12.zip/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5

Which then repeats for several more hashes (sha1; sha224; sha256; sha384; sha512).

Then:
ImportError: No module named modmanager

I'm starting to think that I'm the only person left who's trying to run a co-op FH2 Linux server.

UPDATE 2024May30: with the FH2 server on my Debian 12 VM running a CQ map, I'm able to join and play on that map. Of course since it's CQ mode and it's inaccessible from the Internet, I'm by myself; no bots. But it works fine. Interestingly, even in CQ mode, the FH2 server always segfaults at the end of the round.
« Last Edit: 30-05-2024, 18:05:42 by jrivett »

Offline jrivett

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Instructions for setting up an FH2 server
« Reply #3 on: 04-06-2024, 19:06:44 »
Had a few suggestions over on FH2 Discord, but nothing that helped.

Who created the current Linux server build? Can I contact them directly?

How would I get involved in FH2 Linux server development?

Offline jrivett

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Instructions for setting up an FH2 server
« Reply #4 on: 06-06-2024, 15:06:27 »
I'm now looking at running the Windows FH2 server in WINE on Linux, since the FH2 Windows server seems to run coop maps without any difficulties.