Author Topic: Stuck on transferring data for full game sync  (Read 4248 times)

Offline grom358

  • Newbie
  • *
  • Posts: 7
Stuck on transferring data for full game sync
« on: June 25, 2014, 09:40:42 am »
I setup port forward for 32320 UDP. In lobby and when my friend tried to connect it just sits on 0% for transferring data for full game sync. Then he also setup port forwarding and I tried connecting to him, the same error.

Any solutions to try?

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Stuck on transferring data for full game sync
« Reply #1 on: June 25, 2014, 09:49:24 am »
Do you have any errors from the attempt in your install's RuntimeData directory?  ArcenDebugLog.txt, UnhandledErrors.txt, ErrorsReportedByEngine.txt, ClientReceivingData.txt, that kind of thing.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Stuck on transferring data for full game sync
« Reply #2 on: June 25, 2014, 11:48:48 pm »
Oh, good, it isn't just me.

I was hesitant to report this as I play on Linux and Wine's TCP/UDP implementation can be a bit quirky at times.

Offline grom358

  • Newbie
  • *
  • Posts: 7
Re: Stuck on transferring data for full game sync
« Reply #3 on: June 26, 2014, 09:28:17 am »
I do have a LobbySetupScriptLog.txt with bunch of the following errors:

6/25/2014 7:32:32 PM
Declared int variable 'RandomRoll' = 0


   DeclareVariable("Int","RandomRoll");

   at System.Environment.get_StackTrace()
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity)
   at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity)
   at TextScenarioOperation.Execute(.TextScenario Scenario)
   at TextScenario.ExecuteStartOfScenarioOperations()
   at LobbyOptions.<SubclassInit>b__1(.TextScenario NewSelection, .TextScenario OldSelection)
   at ArcenQueuedSingleSelectItemClickDelegate`1[[TextScenario, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Execute()
   at ArcenGUIManager.DrawGUI()
   at MainCameraLogic.OnGUI()

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Stuck on transferring data for full game sync
« Reply #4 on: June 26, 2014, 10:06:41 am »
That lobby script message isn't an error, just provides some info on how the script ran.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline grom358

  • Newbie
  • *
  • Posts: 7
Re: Stuck on transferring data for full game sync
« Reply #5 on: June 26, 2014, 10:14:38 am »
I don't see any of those other text files you mentioned. What else can I do to provide useful information? Do these error messages logs get deleted on game exit?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Stuck on transferring data for full game sync
« Reply #6 on: June 26, 2014, 10:31:04 am »
Hmmm.  If you are getting to the point where it is saying that it will transfer, then for sure you are actually making a connection fine, so port forwarding is not the issue at all.

To clarify, are you actually in the lobby when your friend is trying to connect?  If so, there really is not much data being passed over (comparably speaking), so I wouldn't think it would be barfing on the amount of data or something.  If it's doing this after you start the game (or as you start the game), then that's another matter and typically is a bad network driver that needs updating.  BUT we also have a workaround for that, in the form of the "Network Sync Size" setting in the Game tab of settings.  On the host, you might want to change that to something that is a larger form of N/X.  So N/2400 would be the smallest batch, for instance.  Make sure that Skip Batch Network Sending is not checked.

On both the client and the server, you can hit F2 while you are seeing this stall out, and see what it is doing behind the scenes, too.  A screenshot of each of those would be helpful from our end, after you let it run for 30 seconds or so if it is stalling.  It's possible that you're having a ton of resends for some reason.

If you're having a ton of resends, then downing the size of your Maximum Transmission Unit (MTU).  That's the number of bytes that each packet is allowed to be, maximum.  Generally the default of 1400 is pretty safe, but on some ISPs they will actually split the packets further so they are no larger than (say) 10000 bytes, and then you wind up with a bunch of confusing packets that the network library has to reassemble.  Usually that works, but it is slower for sure since routers are doing odd things in the middle and making extra work.  But in some cases it doesn't even work, or the routers just outright reject the larger packets.

The reason why you would be able to do the initial connection is because those messages are super small and so they would not have triggered anywhere near the MTU limit, or hit the bug in some network drivers getting flooded with messages and not queuing them properly.  If you're running into this problem in the lobby itself before you actually even get to the point of trying to hit start game, though, then my money is actually on MTU and a very oddly configured router somewhere between the two of you (probably some ISP).

One last-ditch workaround to odd ISPs is to use some sort of VPN software, like Hamachi or Commodo.  Those take whatever data you send in, wrap ALL of it (because they are also encrypting it and sending it through their own custom port), and then unpack it on the other side, so there are literally no raw packets from the game going anywhere except to the virtual VPN driver on your machine, and out of the virtual VPN driver on the other side.  Given the nimbleness of VPN software at dealing with all sorts of funky network setups (that's the whole point of that sort of software), it tends to work where mere mortals fear to tread. ;)  But that's usually a last resort because it's an annoyance to set up new software just for that purpose, and there is some slight tradeoff in speed of game networking because of the wrappering of packets that the VPN does (the encryption makes them a little larger, for instance).

Hope that helps!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline grom358

  • Newbie
  • *
  • Posts: 7
Re: Stuck on transferring data for full game sync
« Reply #7 on: June 26, 2014, 10:38:47 am »
Yeah this happens while still in the lobby. I should of mentioned that in the OP.

Offline grom358

  • Newbie
  • *
  • Posts: 7
Re: Stuck on transferring data for full game sync
« Reply #8 on: June 26, 2014, 11:12:05 am »
I should also note that I got this game on steam and I'm on version 7.001 . Should I be using the beta version?

Offline Aklyon

  • Core Member
  • *****
  • Posts: 2,089
Re: Stuck on transferring data for full game sync
« Reply #9 on: June 26, 2014, 11:26:44 am »
7.001 is a good version, thats why its an official. But theres been quite a few changes (some more beta than others) since then, and its probably worth a shot seeing if it helps.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Stuck on transferring data for full game sync
« Reply #10 on: June 26, 2014, 11:34:33 am »
As long as you both are on the same version, you're good to go.  Your being on 7.001 is actually a helpful thing in some respects, because that code is extremely known-good in terms of networking.  That rules out any sort of recent beta change accidentally messing up the lobby connection somehow or something, which makes things simpler.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Stuck on transferring data for full game sync
« Reply #11 on: June 26, 2014, 12:17:37 pm »
Yea, I'd prefer if you stuck with the official until you've got past the networking issues; that way I don't have to worry about some recent change of mine being the culprit :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline grom358

  • Newbie
  • *
  • Posts: 7
Re: Stuck on transferring data for full game sync
« Reply #12 on: July 01, 2014, 08:00:57 am »
tried again tonight with my friend. and it worked. :)

So not sure what caused the problems last time. But this time did a ping -f -l 1400 myip
which worked.. then loaded game and it worked.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Stuck on transferring data for full game sync
« Reply #13 on: July 01, 2014, 11:31:48 am »
Excellent, glad to hear it's working now :)  Sorry there was no obvious fix that you could remember in case it ever came up again, but it does sound like it was a network issue rather than a game issue, which helps for knowing where to look.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!