How to disable desync reports?

Arrange meetings with other people to play MP, announce your servers.
Post Reply
User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

How to disable desync reports?

Post by cpy »

We are playing really big map and desync causes long pause because it generates 1GB+ report. How do i disable it?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to disable desync reports?

Post by Rseding91 »

You upload the desync report to the bug report forums and we fix the desync problem so it doesn't happen again.
If you want to get ahold of me I'm almost always on Discord.

Xeanoa
Fast Inserter
Fast Inserter
Posts: 190
Joined: Tue Apr 26, 2016 4:32 pm
Contact:

Re: How to disable desync reports?

Post 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
Last edited by Xeanoa on Mon Feb 13, 2017 12:01 am, edited 1 time in total.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to disable desync reports?

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: How to disable desync reports?

Post by cpy »

Disassembly you say? Thought i'd never have to hack an app. Too bad.

Xeanoa
Fast Inserter
Fast Inserter
Posts: 190
Joined: Tue Apr 26, 2016 4:32 pm
Contact:

Re: How to disable desync reports?

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to disable desync reports?

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: How to disable desync reports?

Post 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?"
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Xeanoa
Fast Inserter
Fast Inserter
Posts: 190
Joined: Tue Apr 26, 2016 4:32 pm
Contact:

Re: How to disable desync reports?

Post 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.
Attachments
Capture.PNG
Capture.PNG (542.69 KiB) Viewed 4784 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to disable desync reports?

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: How to disable desync reports?

Post by cpy »

Our MODDED game is desyncing! Nobody fixes that!

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to disable desync reports?

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: How to disable desync reports?

Post 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.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: How to disable desync reports?

Post 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.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: How to disable desync reports?

Post 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.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: How to disable desync reports?

Post 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?

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: How to disable desync reports?

Post 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.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Xeanoa
Fast Inserter
Fast Inserter
Posts: 190
Joined: Tue Apr 26, 2016 4:32 pm
Contact:

Re: How to disable desync reports?

Post 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.

Post Reply

Return to “Multiplayer”