Tic Tac 2 Posted January 28, 2014 Author Share Posted January 28, 2014 When i have other people in the same map, there's delays in chatting, shift-right click teleporting, spawning etc.I'm using the same engine as i've been using for other games i've made for a year and this happened all of a sudden.When nobody else is on the map there is no lagg. But only if im alone in that map.Additional information:I reformatted my pc but installed the library filesWhat can be causing this?Thanks in advance. Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 Make sure you don't run a client and server on the same computer. I've had this happen on slower machines before for some reason. Never did quite understand or catch why though but it seemed related to WinSock not receiving all the data properly (Possibly skipping over a buffer entry?) Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted January 28, 2014 Author Share Posted January 28, 2014 > Make sure you don't run a client and server on the same computer. I've had this happen on slower machines before for some reason. Never did quite understand or catch why though but it seemed related to WinSock not receiving all the data properly (Possibly skipping over a buffer entry?)Before i reformatted my pc, this didn't happen even though i ran client and server on same pc.Also, i tried that and the server still laggs.Also, it doesn't lagg if you're alone on a map. You can be a lot of people on the server just on different maps, but in the same one. Then it laggs. It's not a connection issue, i know that much.Because i have local ping and it takes like 10 seconds for me to do things. Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 Ping doesn't make any difference if packets are never completed. The response delay can be 0 and packets can still be dropped. But alright. Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted January 28, 2014 Author Share Posted January 28, 2014 > Ping doesn't make any difference if packets are never completed. The response delay can be 0 and packets can still be dropped. But alright.I've never had this problem before even if i run client and server on same pc. Problem still persists if i don't though Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 In that case I'm not entirely sure honestly. Like I know I've seen it happen a few times but could never quite pinpoint the problem. Have you tried hosting the server elsewhere to see if it's just your current computer having issues? Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted January 28, 2014 Author Share Posted January 28, 2014 > In that case I'm not entirely sure honestly. Like I know I've seen it happen a few times but could never quite pinpoint the problem. Have you tried hosting the server elsewhere to see if it's just your current computer having issues?Additional information:This guy that lives near me, when he's on the server, it doesn't lagg at all.But when this other guy logs on from across the globe(he lives in the us i live in europe) it starts lagging.Remember; this only happens if he's in the same map.Edit:I've been searching for an EO 3.0 source but can't find it anywhere.Does anybody have it? Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 Ah that's sort of possible. Thing with Eclipse is is that it uses TCP connections so every X amount of packets keep being checked if they arrived or not. And if not resent. :) So It's very possible that his connection to you is just so poor that it will constantly require data to be retransmitted. Link to comment Share on other sites More sharing options...
jcsnider Posted January 28, 2014 Share Posted January 28, 2014 Older versions of EO can be found here.[http://www.eclipseorigins.com/community/index.php?/page/index.html/olddownloads.html](http://www.eclipseorigins.com/community/index.php?/page/index.html/olddownloads.html)To fix your issue, you need to edit Sub SendDataTo server side and add a line with DoEvents right after the socket(index).send line. Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 Oh there was an actual fix of it by now? Cool. :o Does that mean you know what causes it as well? Link to comment Share on other sites More sharing options...
Link Posted January 28, 2014 Share Posted January 28, 2014 Jc knows the cause of everything v_v Link to comment Share on other sites More sharing options...
jcsnider Posted January 28, 2014 Share Posted January 28, 2014 The .send command simply fills up the sockets to-do list with data but the socket only ever sends it out once it has a break. If more than 2 players are on only one socket gets its "break" making it work fine for one player but no others. Adding the DoEvents forces the form and objects to update and thus send out all the queued data ;) Link to comment Share on other sites More sharing options...
Joyce Posted January 28, 2014 Share Posted January 28, 2014 That makes sense. So once the loop simply takes too long to actually send out the data before it caps out it ignored half the data to send. Learn something new every day. :) Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted January 29, 2014 Author Share Posted January 29, 2014 > Older versions of EO can be found here.> > [http://www.eclipseorigins.com/community/index.php?/page/index.html/olddownloads.html](http://www.eclipseorigins.com/community/index.php?/page/index.html/olddownloads.html)> > > > To fix your issue, you need to edit Sub SendDataTo server side and add a line with DoEvents right after the socket(index).send line.Thank you so FUCKING much. I love you. Link to comment Share on other sites More sharing options...
Saki Posted January 29, 2014 Share Posted January 29, 2014 This bug is in "empty" eo 3.0 ? Link to comment Share on other sites More sharing options...
jcsnider Posted January 29, 2014 Share Posted January 29, 2014 Yes. Link to comment Share on other sites More sharing options...
DshWinchester Posted January 31, 2014 Share Posted January 31, 2014 > The .send command simply fills up the sockets to-do list with data but the socket only ever sends it out once it has a break. If more than 2 players are on only one socket gets its "break" making it work fine for one player but no others. Adding the DoEvents forces the form and objects to update and thus send out all the queued data ;)I had the same problem but the question is: Why this happen if its the SAME game as before(without any modification)?My game was running beautifully but suddenly this 'error' arises from the depths> Thank you so * much. I love you.Hey iurv,I had the same problem. Did you change your operational system or its the same(before give the error and after) ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now