Author Topic: How to set up a Quake II linux server using the OpenTDM mod?  (Read 914 times)

Offline Patrol1985

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • Rated:
How to set up a Quake II linux server using the OpenTDM mod?
« on: February 19, 2024, 04:24:48 AM »
Hello,

I would like to set up a Quake II server under linux and utilizing the OpenTDM mod, but I am having trouble. I will describe below what I did so far. If you know what the root of the problem is, I would appreciate help :)

As recommended on http://opentdm.net/ I wanted to compile OpenTDM from the source located at Andrey Nazarov's repo (skullernet): https://github.com/skullernet/opentdm. I couldn't find any explicit compilation instructions at the repo itself so I tried doing it on my own. Since the same developer also created Q2PRO, which does feature compilation instructions, I figured there would be some overlap and did the following:

1. I installed the following dependencies

Code: [Select]
sudo apt install meson gcc libc6-dev libsdl2-dev libopenal-dev \
                libpng-dev libjpeg-dev zlib1g-dev mesa-common-dev \
                libcurl4-gnutls-dev libx11-dev libxi-dev \
                libwayland-dev wayland-protocols libdecor-0-dev \
                libavcodec-dev libavformat-dev libavutil-dev \
                libswresample-dev libswscale-dev

2. I downloaded the ZIP with the source from the master branch
3. I unzipped the source into a temp directory, entered it and followed compilation instructions from Q2PRO documentation:

Code: [Select]
meson setup builddir
meson configure builddir
meson compile -C builddir

4. As a result I received the "gamex86_64.so" file, with read, write and execute permissions on it
5. I created the "opentdm" directory in the Quake II server folder and put the file "gamex86_64.so" inside along with "q2server.cfg" (the server config file I have been using with the vanilla server)
6. I ran the Quake II server with the "+set game opentdm" parameter
7. I connected to the server, but it seemed it was still running in "vanilla" mode. I entered the "rcon game" command to make sure that the game folder was set to "opentdm" (it was).

Additionally, I did the following test:
1. I downloaded the gamei386.so.gz for the mod from the OpenTDM site (http://opentdm.net/binaries/unstable/linux/), uncompressed it, set the "read / write / execute" permissions on it and put the file in the "opentdm" directory
2. I renamed the "gamex86_64.so" file (the one I had compiled) to "gamex86_64.so.old" so Quake II wouldn't "see" it
3. I ran the server with "+set game opentdm" and connected to it
4. The mod was running (I was greeted with the expected menu of choosing teams), but crashed a few seconds later

It seems then that I ran the server with the proper command line parameters, but there is something wrong with the .so I compiled. Please let me know if you know how to solve the issue.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Patrol1985

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • Rated:
Re: How to set up a Quake II linux server using the OpenTDM mod?
« Reply #1 on: February 19, 2024, 07:02:31 AM »
Phatman helped me (much appreciated!) on Tastyspleen Discord (http://discord.tastyspleen.net/). He discovered that only a 32-bit version of the mod is currently functional and compiling it in a 64-bit system takes some effort, so the alternative is to use the compiled version I found on OpenTDM site (http://opentdm.net/binaries/unstable/linux/).

As I had written, I already tried using that version and it kept crashing my server, but upon a server restart I noticed a message stating that it is recommended to use updated server binaries (R1Q2 or possibly also Q2PRO) for proper functionality. I haven't tried that yet (I have only used the vanilla 3.20 Quake II server), but I'll leave this information here in case someone encounters a similar problem and would like to know which way to possibly go from there.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

RyU

June 29, 2025, 06:27:46 PM
Q2 must never die  :)
 

|iR|Focalor

May 26, 2025, 01:17:30 PM
 

-Unh0ly-

May 22, 2025, 05:45:28 PM
 

Yotematoi

May 17, 2025, 08:33:15 AM
Yo desde el año 2007 me enfermé de Q2, es incurable  
Morir y revivir es costumbre, lástima q el QT estaba bueno
 

ImperiusDamian

May 12, 2025, 01:45:35 AM
Quake II is not 27 years old. I refuse to accept THAT much time has gone by.
 

|iR|Focalor

May 11, 2025, 02:33:39 PM
 

-Unh0ly-

May 03, 2025, 08:02:46 AM
198.179.6.200:30634
 

Yotematoi

May 02, 2025, 10:27:47 AM
Note for Player-4109 "Remember, the Guinness Book of Records does not include cowards who shot at someone by treachery." :D

Show 50 latest
Welcome, Guest. Please login or register.
June 30, 2025, 08:35:38 AM

Login with username, password and session length