A
A
Andrey2019-12-12 22:54:57
Debian
Andrey, 2019-12-12 22:54:57

What do you need to transfer the server side of the game from Windows to Debian?

Can games that run on Windows be converted to run on Debian? Exclusively only the server part, no graphics. I now know that Lineage 2 is under Linux, the server part, which means it is possible to transfer code from Windows to Linux, but I wonder if it is difficult, and what exactly needs to be redone? As I understand it, the code there does not need to be changed on a global scale, although I'm not sure. If you think about it, then if the game is written in c ++, then c ++ is similar on Linux, isn't it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vreitech, 2019-12-12
@fzfx

by and large, the difference will be only in the code that uses system calls or features of the operating system.

X
xmoonlight, 2019-12-13
@xmoonlight

I now know that Lineage 2 is under Linux, the server part, so you can transfer the code from Windows to Linux,
And how do you know everything?!))
This means that from one (/two) sources they were collected for two platforms.
Each OS has its own binary format.
If there are no server sources, then there are very few options to launch: wine and virtualbox.

S
Saboteur, 2020-12-17
@saboteur_kiev

Can games that run on Windows be converted to run on Debian?

If there are sources, there is a desire to rewrite - you can. May take a long time. If you originally wrote cross-platform - quickly.
I now know that Lineage 2 is under Linux, the server part, so you can transfer the code from Windows to Linux

There is no such thing, no one translated the code from Windows to Linux.
There is a homemade game written from scratch in java, and not the original game translated from windows to linux.
but I wonder if it's difficult, and what exactly needs to be redone?
As I understand it, the code there does not need to be changed on a global scale, although I'm not sure. If you think about it, then if the game is written in c ++, then c ++ is similar on Linux, isn't it?

C++ is the same. Operating systems are different.
The whole point is in calling system functions, and this is not only a different set of standard libraries, but often a different hierarchy of their dependencies and a different approach to work.
It all depends on how actively OS-specific functions and features are used. You can immediately write cross-platform, so that with some ifdefs it can immediately compile under Windows and Linux and Unix and Mac. And you can become attached in such a way that it will be very difficult to rewrite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question