Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - your teammate

Pages: [1]
1
I have occasionally seen people ask about this, and it turns out it's actually doable and somewhat simple.
The usual answer would be that it's impossible because the game is built only for x86 but the Raspberry Pi has an ARM CPU. But with the help of qemu we can emulate an x86 CPU on ARM! To avoid a lot of manual work we will use my docker image to run a dp2 server https://hub.docker.com/r/nukla/paintball2.
So first we have to install the necessary tools on Raspberry Pi OS:
Code: [Select]
sudo apt install qemu-user-static qemu-user docker.io
This will install docker and qemu. Qemu will be registered to run x86 binary files without any additional steps.
Then we create a folder that will hold the pball directory (maps/configs/etc.). Do it as a local user and not as root!
Code: [Select]
mkdir /some/random/path/to/a/folder/
Then we just run the docker image like this
Code: [Select]
docker run -p 27910:27910/udp -v  /some/random/path/to/a/folder/:/paintball2/pball/ -it nukla/paintball2
Be sure to replace /some/random/path/to/a/folder/ with your own path to your directory.
The server should be running now.

If you want to have the server auto-start and run in the background, run the docker command like this instead
Code: [Select]
docker run --restart=always -d -p 27910:27910/udp -v /home/pi/dp2serv/:/paintball2/pball/ nukla/paintball2

If you need custom launch arguments for the server have a look at the example in the docker hub readme.

2
Help and Support / Re: Arch Linux Compilation Problems
« on: December 20, 2023, 06:45:35 AM »
Oh, someone else mad enough to compile it on Linux :D

I guess you want to make an AUR package for the game? As mentioned by richard it's probably not worth it because even if you manage to compile it you will still need to copy some files over from the binary release to make it work, and the game will still complain that it's not an official build. But as far as I'm aware joining public servers is actually possible. So if an AUR package is your goal, your best bet would be making a bin package that just extracts the binary release and has all necessary dependencies.
But even that will be not great, because the Linux client has a lot of issues. Sound will not work, unless you launch it with "+snd_driver sdl" as command line argument and restart the game, because the default sound driver uses OSS which has been removed from Linux for ages. And once you got the sound working, you will notice a load of other issues related to mouse and keyboard input. Mouse is jittery, the game steals *all* keyboard input (if you're using X11), enabling fullscreen messes up multimonitor setups, and so on.

If all you want to do is play the game, install lutris and use its install script for the game (https://lutris.net/games/digital-paintball-2/) to install the Windows version with Wine. It works much much better, and I try to keep the install scripts updated.

Anyway, if you really want to compile the linux build, your best bet is breaking into jitspoes house and stealing his old Laptop which has Ubuntu 10 or something with all obscure dependencies installed.
Your second best bet is using this docker image that I made a while ago specifically to compile the game: https://hub.docker.com/r/nukla/dp2compile. It can pull the latest code from the SVN repository that was already mentioned here. And it is based on 32 bit Ubuntu 16.04 and has all dependencies necessary to compile the game preinstalled. More specifically, it has these packages installed on top of Ubuntu 16.04 (you can also find it in the Dockerfile):
Code: [Select]
subversion
build-essential
libsdl1.2-dev
libjpeg62-dev
libasound2-dev
ca-certificates

This list might be useful for your third best bet: compiling it manually. I only ever managed to do it on old 32 bit Ubuntu versions, but maybe I should give it another try on Arch someday.

Keep in mind that the Linux build can break at any time when new code is pushed, it is very fragile and mostly only tested on Windows.

3
Server Discussion / Re: Docker image
« on: December 19, 2023, 01:45:01 PM »
Updated the image to build 46

4
Other Stuff / Re: Back again, how about you?
« on: December 14, 2022, 09:26:40 AM »
Forums are almost dead, but the Discord (https://discord.digitalpaint.org/) is pretty active. Also there's a social saturday every other week where people come online and play

5
Server Discussion / Re: Docker image
« on: September 18, 2022, 10:46:24 AM »
Finally updated it to build 45

6
General Development / Compiling a Linux build with Docker
« on: August 05, 2021, 02:55:46 AM »
I made a Docker image dedicated to just building dp2 for Linux: https://hub.docker.com/r/nukla/dp2compile

Advantages:
- No need for a 10 year old Linux installation
- No need to hunt down all the necessary development libraries for 10 days
- Docker somehow also exists for Windows or something, so this can likely be used to make a Linux build on Windows

Disadvantages:
- This makes the adventure of getting a working Linux build almost boring

Currently the makefile needs an adjustment (adding -pthread to LDFLAGS) for the build to actually succeed. I say that's a problem with the makefile and not with the docker image, but I wonder how jitspoe can do the Linux build without -pthread.

7
Server Discussion / Docker image
« on: September 29, 2020, 10:34:57 AM »
Hi,
I wanted to learn some Docker so I created a docker image for hosting a server, you can get it here: https://hub.docker.com/r/nukla/paintball2

You can either start a completely fresh server with no previous configuration or provide your own pball/ directory. Basic instructions on how to start the server are included in the readme, some docker experience might be useful. Please backup your pball/ directory before trying it out because the image might be doing weird things and accidentally overwrite it.
The server doesn't see the IP address of the clients, so IP banning probably doesn't work, not sure if this is fixable in docker.
The "code" for building the image yourself is here: https://gitlab.com/nukla/paintball2-docker
You can also pass your own arguments to the paintball2 binary, I just didn't document it yet

Maybe it's useful for someone out there

8
Clans, Matches, and Tournaments / Re: PGP Tournament Summer 2017
« on: June 29, 2017, 03:39:57 AM »
I'm in - your teammate

Pages: [1]