1

Topic: [QUESTION] Game client, which does not depend on the server.

Hello. I was interested in the creation of off-line modification to the game for single player. It seems that the game client can handle gameplay without a server. Is it true? Which units in the source code should I pay attention to make the client independent of the server? I would appreciate your help.

2

Re: [QUESTION] Game client, which does not depend on the server.

It is obviously not true.

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...

3 (edited by FireFry 2010-06-23 14:49:00)

Re: [QUESTION] Game client, which does not depend on the server.

Why? The game client itself calculates the position of the player, and compares it with the server. If there is a mismatch between the client and server, it will be detected with a delay. For example, frozen player in DDrace mod shakes on his place when trying to move. This indicates that the client can not required for the game server.

4

Re: [QUESTION] Game client, which does not depend on the server.

FireFry wrote:

Why? The game client itself calculates the position of the player, and compares it with the server. If there is a mismatch between the client and server, it will be detected with a delay. For example, frozen player in DDrace mod shakes on his place when trying to move. This indicates that the client can not required for the game server.

There can't be predictions if the server doesn't send the player's velocity...

5

Re: [QUESTION] Game client, which does not depend on the server.

What's the problem? Just run an offline server to make your "single player" mode. ^^

Support Staff - ESL.eu Teeworlds Admin

6 (edited by FireFry 2010-06-23 16:15:31)

Re: [QUESTION] Game client, which does not depend on the server.

Lanta wrote:

What's the problem? Just run an offline server to make your "single player" mode. ^^

This is not cool smile

Are you sure that it is difficult to make a standalone client from the source code? Or it's just supposition?

7

Re: [QUESTION] Game client, which does not depend on the server.

This could be made, you have to move the physics and game computations from the server to the client, but it would be kinda pointless with no enemies. You would have to make bots too (or some other enemies), so after all it would be just the same as a local server with bots.

Btw: Beck ftw big_smile

aka cheesy

8 (edited by FireFry 2010-06-23 23:20:15)

Re: [QUESTION] Game client, which does not depend on the server.

It seems that the client can perform all computations. I just wanted to know how to separate it from the server. And I play in a friendly mods, where there are no enemies and all the players are friends. smile

9

Re: [QUESTION] Game client, which does not depend on the server.

Without server, there is only one player yikes

aka cheesy

10

Re: [QUESTION] Game client, which does not depend on the server.

FireFry wrote:

Are you sure that it is difficult to make a standalone client from the source code? Or it's just supposition?

In all the cases, you will have to run a child process, from the client only or from an external application ; but whatever, where is the difference ?

Not Luck, Just Magic.

11 (edited by FireFry 2010-06-24 17:01:11)

Re: [QUESTION] Game client, which does not depend on the server.

No, it will be just one process. I just hoped that someone knows how to do that.