vitor251093 / resurrection-capsule

[WIP] ReCap for short. A small local server to play Darkspore offline
GNU General Public License v3.0
182 stars 15 forks source link

[FEATURE] Support Linux #11

Open tsilvs opened 2 years ago

tsilvs commented 2 years ago

Describe the solution you'd like

I'd like to be able to host the server on a Linux machine, as well as running the game through Wine / Proton with the request redirection patch.

Describe alternatives you've considered

vitor251093 commented 2 years ago

I've bought a new computer recently, and it should be with me in about 2 weeks.

I will be installing Ubuntu in that new computer, so I should be able to work on that with it. I'm more eager to work in both alternatives, since they have more long term applications.

tsilvs commented 2 years ago

@vitor251093

I will be installing Ubuntu in that new computer

Congrats on it! Welcome to the community! I also recommend you to try Manjaro, Kubuntu & Pop.

Different distos may vary in details, so your project will only benefit from being more platform-neutral. So don't focus on Ubuntu-specific stuff.

vitor251093 commented 2 years ago

I also recommend you to try Manjaro, Kubuntu & Pop.

I tried Pop last year, but the system update broke the system startup lol

Different distos may vary in details, so your project will only benefit from being more platform-neutral. So don't focus on Ubuntu-specific stuff.

Indeed. At first, I'm focusing in distributing a Debian build, so it should be compatible with a wide range of distros out of the gate.

I'm also thinking about adding a Flatpack download option as well.

tsilvs commented 2 years ago

I tried Pop last year, but the system update broke the system startup lol

Yeah, it might be like that sometimes. That's why it's the last in my list. Maybe I should've skipped it at all.

Debian, Flatpack

Don't forget about Pacman and AppImages too. You could start from Arch package format & makepkg and then create .debs using makedeb. I myself successfully built some apps from AUR with it.

vitor251093 commented 2 years ago

Don't forget about Pacman and AppImages too.

Could be. That's just to start from somewhere ;)

You could start from Arch package format & makepkg and then create .debs using makedeb. I myself successfully built some apps from AUR with it.

I have no idea of how to do that. Do know any guide I could follow to do that?

tsilvs commented 2 years ago

any guide I could follow to do that?

README and official docs are enough to start.

all500234765 commented 5 months ago

I would actually be against that due to the fact that linux support always requires way too much effort for marginal gains. I'd suggest supporting a single OS for the time being. If linux users would want to, they should port server them selves instead of asking a single dev working in his spare time to basically kill time supporting linux.

NovaViper commented 5 months ago

I would suggest making a Flatpak version instead of direct package (like Debian), at least for a start. Flatpak would allow the game to run on multiple different distros without having to spend a lot of packaging for each and every different Linux distro.

FlameSoulis commented 5 months ago

Drafting through some of the source code, specifically for the server, it isn't using anything majorly exclusive to Visual Studio. I'd have to check more, but it doesn't look too bad.

I think the highest thing to deal with is just ensuring a basic executable compiles and operates. From there, packaging can then be considered. Additionally, while I know this will make Linux purists unhappy, but I'd check if Proton can handle things on a basic level as well on just the current binaries. While native would be nice, having to completely change up an entire project with cross-compatible libraries is not that easy.

vitor251093 commented 5 months ago

I tried running it under modern Wine. There was an issue. If I remember correctly, it crashes on launch.