Page 1 of 1

How to disable desync reports?

Posted: Sun Feb 12, 2017 4:07 pm
by cpy
We are playing really big map and desync causes long pause because it generates 1GB+ report. How do i disable it?

Re: How to disable desync reports?

Posted: Sun Feb 12, 2017 8:26 pm
by Rseding91
You upload the desync report to the bug report forums and we fix the desync problem so it doesn't happen again.

Re: How to disable desync reports?

Posted: Sun Feb 12, 2017 10:58 pm
by Xeanoa
Rseding91 wrote:You upload the desync report to the bug report forums and we fix the desync problem so it doesn't happen again.
Our desyncs are 'fixed for 0.15'. How do we disable desync reports for 0.14?

Edit: Fix typo

Re: How to disable desync reports?

Posted: Sun Feb 12, 2017 11:42 pm
by Rseding91
Xeanoa wrote:
Rseding91 wrote:You upload the desync report to the bug report forums and we fix the desync problem so it doesn't happen again.
Or desyncs are 'fixed for 0.15'. How do we disable desync reports for 0.14?
You can't and probably never will be able to.

Re: How to disable desync reports?

Posted: Mon Feb 13, 2017 8:11 pm
by cpy
Disassembly you say? Thought i'd never have to hack an app. Too bad.

Re: How to disable desync reports?

Posted: Mon Feb 13, 2017 8:48 pm
by Xeanoa
Please let me know if you managed. I've lost all interest playing 0.14, waiting for about 5 minutes several times a session just breaks the spirit, and the inconvenience of trying to avoid them doesn't help.

Re: How to disable desync reports?

Posted: Mon Feb 13, 2017 9:06 pm
by Rseding91
Xeanoa wrote:Please let me know if you managed. I've lost all interest playing 0.14, waiting for about 5 minutes several times a session just breaks the spirit, and the inconvenience of trying to avoid them doesn't help.
You do realize that at a minimum if you do manage to disable the creation of desync reports (unlikely as you'd need to patch the server and all peers) you still have to reconnect and re-download after a desync?

If you give us the desync report we can fix the issue forever and then you never have to wait for a download or a desync report to be created.

Re: How to disable desync reports?

Posted: Mon Feb 13, 2017 9:57 pm
by Adil
If the bottleneck is the write speed (1 GB is kinda much), it is kinda possible to speed things up, I guess (I've tested this on small games).

I did it on ubuntu.
While the the game hangs up completely if it is unable to open file for writing (for example if the directory is readonly), which I'd say is a bug, it is possible to let it write to ram which should be fast. For this you'll probably have to sacrifice the amount of ram the size of the desync log. And ubuntu has tools to automatically remove those logs to free the space for the next ones.

So, in ubuntu I've opened the terminal in the factorio folder and then used the following commands:
Bash
I got this knowledge from stack overflow, it also suggests alternative method, but I didn't fancy fiddling with kernel modules.

Guess on windows you could find equivalent tools but I'm of no help here.

Also, funnily, pretty much every I've traversed while searching "redirect directory to /dev/null" starts with "A particular program is making log files, I cant disable them and I want to prevent their creation" and among the discussion there's always "why on the earth someone would not allow to configure writing logs?"

Re: How to disable desync reports?

Posted: Mon Feb 13, 2017 10:12 pm
by Xeanoa
I have a feeling write speed is not the reason it's slow. Otherwise they'd take only a few seconds. Usually it takes 2-3 minutes just for the report.

Re: How to disable desync reports?

Posted: Tue Feb 14, 2017 12:28 am
by Rseding91
Adil wrote:If the bottleneck is the write speed (1 GB is kinda much), it is kinda possible to speed things up, I guess (I've tested this on small games).

I did it on ubuntu.
While the the game hangs up completely if it is unable to open file for writing (for example if the directory is readonly), which I'd say is a bug, it is possible to let it write to ram which should be fast. For this you'll probably have to sacrifice the amount of ram the size of the desync log. And ubuntu has tools to automatically remove those logs to free the space for the next ones.

So, in ubuntu I've opened the terminal in the factorio folder and then used the following commands:
Bash
I got this knowledge from stack overflow, it also suggests alternative method, but I didn't fancy fiddling with kernel modules.

Guess on windows you could find equivalent tools but I'm of no help here.

Also, funnily, pretty much every I've traversed while searching "redirect directory to /dev/null" starts with "A particular program is making log files, I cant disable them and I want to prevent their creation" and among the discussion there's always "why on the earth someone would not allow to configure writing logs?"
We already do saving to RAM first and to disk at the same time. We use a 20 x 1 MB cycling buffer while saving. As pieces of the map are saved they're written into a 1 MB chunk of the buffer and when that chunk is full it's swapped over to the thread that in parallel is compressing and writing those chunks out to disk.

Re: How to disable desync reports?

Posted: Tue Feb 14, 2017 8:07 pm
by cpy
Our MODDED game is desyncing! Nobody fixes that!

Re: How to disable desync reports?

Posted: Tue Feb 14, 2017 8:12 pm
by Rseding91
cpy wrote:Our MODDED game is desyncing! Nobody fixes that!
Yes we do. The last few modded desyncs ended up being core-game desyncs with work arounds to prevent the desyncs until 0.15 is released.

Re: How to disable desync reports?

Posted: Tue Feb 14, 2017 10:00 pm
by Adil
Now this conversation is getting into a loop.

Code: Select all

- My game takes too long to create a desync log!
- But we need those to fix the bugs.
- Okay, here it is.
- Oh, we've already fixed that for release in the end of march.
- But my game still takes too long to create a log!!
- But we need those...
And over a nothing, really. It's not like the addition of a switch will require a major rewrite that will severely impact the game fps or something.

Re: How to disable desync reports?

Posted: Wed Feb 15, 2017 12:11 am
by Nexela
Adil wrote:And over a nothing, really. It's not like the addition of a switch will require a major rewrite that will severely impact the game fps or something.
And now everyone has desync reports disabled. So desyncs don't get fixed. If you want to avoid descyns don't do the things that are causing the desyncs until they are fixed.

Re: How to disable desync reports?

Posted: Wed Feb 15, 2017 12:58 am
by Adil
I fail to follow your logic.
Nexela wrote:And now everyone has desync reports disabled.
Why is that?
There are times to disable it and there are times when it doesn't hurt. Have it as a command line option and then only people who really need that will bother.
And even if it is disabled. So what? It's their choice.
Nexela wrote:So desyncs don't get fixed.
Not to mention that a mere creation of the log doesn't mean anything. It ain't gona send itself without the user.

Re: How to disable desync reports?

Posted: Thu Feb 16, 2017 12:45 pm
by cpy
I'm not uploading 1400MB desync logs because of some power pole placement with HEAVILY modded and scripted game!

Quote from modded bug report forum:
Desyncs in modded game will be ignored most of the time, until it is clearly proven that the desync is not caused by scripting.

So there you have it. Let us disable all reports with mods detected and everyone will be happy. Do you even know how long that friggin report generates?

Re: How to disable desync reports?

Posted: Thu Feb 16, 2017 1:08 pm
by prg
How about you fix the cause of the desync then?

If it's caused by the base game, file a bug report.
If it's caused by a mod, complain to the author.
If it's caused by a piece of code you wrote yourself and have no idea how to fix it, ask in the modding help forum.

If you could disable desync reports, desyncs would still be annoying, just slightly less so. Seems better to fix the cause.

Re: How to disable desync reports?

Posted: Thu Feb 16, 2017 1:43 pm
by Xeanoa
cpy wrote:I'm not uploading 1400MB desync logs because of some power pole placement with HEAVILY modded and scripted game!
Just deleted 12 GiB of logs on my second machine because I was running out of disk space. It only has a 120 GiB SSD. At least they should not stay there infinitely.