Page 1 of 1

Online Multiplayer

Posted: Fri Jul 08, 2016 10:13 am
by Lizbona
I think it should be updated in the future. Me and a few friends are desperately trying to play it in online multiplayer. I set the server and everything port and that. But it still has issues and when we actually manage to start a game together, it starts to lag and we can barerly make the player move.

Re: Online Multiplayer

Posted: Mon Oct 31, 2016 5:54 pm
by MateFizyChem
Wait, how is this even possible? How to do it?

Re: Online Multiplayer

Posted: Mon Oct 31, 2016 8:17 pm
by Holger
I think it should be updated in the future.
Definitely yes! It is not only not very well maintained (for example, there seem to be some problems with the version 4 release candidates that have to be fixed), but it also is way too user-unfriendly (expecially on WIndows systems).

It should be possible to just start network gaming by pressing a button and (optionally, if not running as "the server") entering the hostname or IP address of the computer that acts a the server.
But it still has issues and when we actually manage to start a game together, it starts to lag and we can barerly make the player move.
Within the same LAN, it should work just fine and without lag. Over the net, I would indeed expect bad lagging (as the network communication has to be done in each single game frame, which is 50 times per second). It may or may not be possible to optimize this without breaking the game logic...

Re: Online Multiplayer

Posted: Mon Oct 31, 2016 8:22 pm
by Holger
Wait, how is this even possible? How to do it?
... and yes, it's also virtually not documented, although quite easy:

Computer A: Start as "./rocksndiamonds --network"
Computer B: Start as "./rocksndiamonds --network <hostname of computer A>"

Select player color on each computer and make sure that team mode is enabled in the setup. Now select a team-mode enabled level set (that contains more than one player, like "Classic Emerald Mine") and start the game.

That should do it...

Re: Online Multiplayer

Posted: Mon Oct 31, 2016 8:42 pm
by MateFizyChem
Holger wrote:
Wait, how is this even possible? How to do it?
... and yes, it's also virtually not documented, although quite easy:

Computer A: Start as "./rocksndiamonds --network"
Computer B: Start as "./rocksndiamonds --network <hostname of computer A>"

Select player color on each computer and make sure that team mode is enabled in the setup. Now select a team-mode enabled level set (that contains more than one player, like "Classic Emerald Mine") and start the game.

That should do it...
:D I lived under the window(Got it?).

Re: Online Multiplayer

Posted: Tue Nov 01, 2016 11:48 am
by MateFizyChem
Holger wrote:
Wait, how is this even possible? How to do it?
... and yes, it's also virtually not documented, although quite easy:

Computer A: Start as "./rocksndiamonds --network"
Computer B: Start as "./rocksndiamonds --network <hostname of computer A>"

Select player color on each computer and make sure that team mode is enabled in the setup. Now select a team-mode enabled level set (that contains more than one player, like "Classic Emerald Mine") and start the game.

That should do it...
How do I find a hostname?

Re: Online Multiplayer

Posted: Tue Nov 01, 2016 8:42 pm
by Eizzoux
Well, I visited my imagination and... Heh, imagined player customize for network play (changing colors of clothes and skin, change person and etc. :lol:

Re: Online Multiplayer

Posted: Tue Nov 01, 2016 9:08 pm
by MateFizyChem
I found out I have to use the internet protocol(I hope no one forgot it meaning "ip".).
I checked in my computer using 2 terminals. It felt funny, but it does not check the lag's presence, does it? :mrgreen:

Re: Online Multiplayer

Posted: Wed Nov 02, 2016 3:00 pm
by MateFizyChem
I tried with 2 command prompts in the same system, I got this from stderr.txt:
rocksndiamonds.exe: warning: cannot open configuration file 'C:\Users\(not leaking my name no way)\Documents\Rocks'n'Diamonds\editorsetup.conf'
rocksndiamonds.exe: fatal error: cannot connect to network game server
.

R'n'D, why do you discriminate Windows? :lol: