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

Offline jrivett

  • Newbie
  • *
  • Posts: 36
    • 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.315
  • "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: 36
    • 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.
« Last Edit: 14-05-2024, 16:05:40 by jrivett »