Multiplayer - Dedicated server test

Post » Sat Aug 05, 2017 11:55 pm

I would like to get some tips from people that have successfully hosted dedicated servers for multiplayer C2/C3 games.

Are you using a VPS (windows/linux?)
What is a good server configuration?
Does hosting work better using exported NWJS app?
Other tips?

Example:
I have setup a dedicated server as a test for a multiplayer tank game. It didn't seem to do that great because CPU kept getting maxed out. Finally I noticed that I could host the game with Chrome minimized, and that made a drastic difference in CPU usage. I am guessing that the game does not render anything when minimized, which results in sort of simulated "headless" mode.

You can try my simple test game (while it is alive) at http://www.damonapps.com/tankarena
B
52
S
19
G
3
Posts: 21
Reputation: 4,502

Post » Sun Aug 06, 2017 12:24 am

Oops, I meant to put this in the general forum.
B
52
S
19
G
3
Posts: 21
Reputation: 4,502

Post » Sun Aug 06, 2017 7:36 am

* moved
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
87
Posts: 5,497
Reputation: 60,280

Post » Fri Sep 29, 2017 3:34 am

can you show me how to pin turret and rotate it toward mouse
B
5
S
1
Posts: 4
Reputation: 335

Post » Sun Oct 08, 2017 11:34 pm

Sorry for the slow response, I don't always check messages here.

Turret has pin behavior. When tank is spawned, it spawns a turret and pins it to itself.
Also a variable is set on the turret that has the ID of its parent (the tank UID)

When operating the tank, use event to pick turret that has the variable = tank.UID
Then, use the "rotate toward angle" action. I rotate by 5 degrees at a time and use the angle() function to get angle between the tank and the mouse.
B
52
S
19
G
3
Posts: 21
Reputation: 4,502


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests