English Client crashes

13 replies
Goto Page
To the start Previous 1 Next To the start
11.11.19 10:58:35 pm
Up
Quattro
User
Offline Off
I got a problem... Server worked fine but for some reason it began cutting off clients when sending lots of parse commands
https://www.youtube.com/watch?v=Ix07-C-Y3eQ&feature=youtu.be

In video you see what happens but here is what happens on server:

Code:
1
2
3
4
5
6
7
8
9
10
[Server] Match starts in 10 seconds...
[Server] Match starts in 5 seconds...
[Server] Live!
U.S.G.N.: Serverlist entry updated
:[ Wings ]: Quattro: fwefw
:[ Wings ]: Quattro: rg
:[ Wings ]: Quattro: rgegege
[Server] :[ Wings ]: Quattro has left the match and received 119 rank penalty
[SERVER INFO] Wingman match ended: Mix Team(9) vs Mix Team(0)
[Server] Changing map...


It received all commands from me while I was frozen...

Also when 10 real players connected it hang during one of the countdown sounds before even sending parse functions... Maybe there are linux commands that I forgot to setup to allow more players?
11.11.19 11:52:05 pm
Up
Goo
User
Offline Off
Make sure your script isn't requesting too much information from your clients at a time.

Do you use
always
/
ms100
hooks?
Even big
second
hooks?

Avoid using
reqcld
entirely if possible.
12.11.19 12:32:00 am
Up
Quattro
User
Offline Off
Thanks dude but I dont even use these. The funny thing is it worked for our first 2v2. Then I restarted sv, added 1 new variable and this thing happened. It seemed like I made a mistake but it works on local game and lua doesnt show any error. It just stops sending info to player but receives everything from him
12.11.19 07:39:48 pm
Up
DC
Admin
Offline Off
You are probably sending too much stuff in a single frame. CS2D's networking code and protocol is very... basic... and sometimes does bad things which lead to a broken connection.
Of course these issues can't be observed if you host yourself (listen server with client) and only test with bots.

If you send me the code or tell me which commands you're using I can probably improve the behavior for future releases.

Right now the best fix would be to use a timer or something alike and to split command execution over multiple frames. It really depends a lot on what exactly you're doing though. There might also be alternative solutions which cause less network traffic.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
12.11.19 09:23:58 pm
Up
Quattro
User
Offline Off
Ok I'll send you the code and explain it in more details.
13.11.19 10:00:57 am
Up
SQ
Moderator
Offline Off
I remember breaking connection with scripts on join hook while player was still receiving data from the server. Not sure if this is a similar case.
13.11.19 04:58:04 pm
Up
Quattro
User
Offline Off
It sounds similar but inversed
99% it is shitty server's limitation.
13.11.19 05:00:33 pm
Up
The Superman
User
Offline Off
Send me the code or the commands that you used, I'm expert at Lua. I'll try to fix it.
14.11.19 01:27:01 pm
Up
Quattro
User
Offline Off
It was as DC said, too much stuff in one go for the server to handle.
Solved it by limiting and optimizing hudtxt blocks.
14.11.19 02:07:18 pm
Up
The Superman
User
Offline Off
Blitzmax is broken, If DC redesign CS2D in Unity or Unreal Engine 4. It would be nice.
14.11.19 02:12:31 pm
Up
TrialAndError
User
Offline Off
@user The Superman: Which will never happen
14.11.19 07:00:46 pm
Up
M3_Quick
User
Offline Off
cs2d is perfect with blitmax, but it would also be great to see cs2d with another engine, even if it doesn't happen, it's not a bad idea, I'm sure that cs2d developers would create something really good, with a more modern engine.
I am one of the people who does not close the doors to the possibilities.
IMG:https://i.imgur.com/DCz9Dko.png
14.11.19 08:56:49 pm
Up
mrc
User
Offline Off
It's easier to develop by ourselves than wait for a new engine.
CS2D GLOBAL Community - www.CS2DGLOBAL.tk
14.11.19 10:16:04 pm
Up
DC
Admin
Offline Off
@user The Superman: Please don't suggest switching to another engine in random threads. That's entirely off-topic. The problem described here is caused by CS2D's network code and not by any issues with BlitzMax.
(Also I would never use Unity or Unreal for a game like CS2D! I'm using Untiy in my full time job. It's way too heavy, causes too much trouble and I would be busy with working around its problems 90% of the time)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start