This also reminded me of this fairly epic story: http://mina.naguib.ca/blog/2012/10/22/t ... uldnt.htmlXon1 wrote:Twinsen; those download issues reminds me of the old Sip packet of death. Aka buggy network controller firmware.
Sometimes just encrypting everything to stop network gear in the middle from "helping" may be your best bet. Alternatively padding a UDP packet so it is always some minimum size may help.
Friday Facts #175 - Programmable Speaker
Re: Friday Facts #175 - Programmable Speaker
-
- Fast Inserter
- Posts: 232
- Joined: Thu Dec 31, 2015 7:36 am
- Contact:
Re: Friday Facts #175 - Programmable Speaker
Ahhhhh cant wait to 0.15 to make some music. With nuclear reactors and sound FX - i am unstoppable!
Re: Friday Facts #175 - Programmable Speaker
Even better with snoop dogg versionFish wrote:Wow, that looks so cool.
Great choice of song btw. Gravity Falls is awesome.
Re: Friday Facts #175 - Programmable Speaker
Why don't you use TCP to downloading the map?
You will get a higher speed for high volume transfer, and won't have to take so much care in what's between the 2 end points.
You will get a higher speed for high volume transfer, and won't have to take so much care in what's between the 2 end points.
Last edited by tarou00 on Fri Jan 27, 2017 6:39 pm, edited 1 time in total.
Re: Friday Facts #175 - Programmable Speaker
we Need more sensors not recivers with limited usage
Mining Drill Operator
-
- Burner Inserter
- Posts: 17
- Joined: Tue Mar 08, 2016 12:44 am
- Contact:
Re: Friday Facts #175 - Programmable Speaker
Try posting on StackOverflow.stackexhange.com - your question on NetworkEngineering was suspended for being off-topic.
Re: Friday Facts #175 - Programmable Speaker
This was answered in FFF-136tarou00 wrote:Why don't you use TCP to downloading the map?
You will get a higher speed for high volume transfer, and won't have to take so much care in what's between the 2 end points.
Using TCP would have three important consequences: It would force players to open TCP ports as well as UDP ports in firewalls and NAT servers, it would remove the possibility of using NAT punching now or later with MP matching server and it would cause problems with downloading from multiple players at the same time.
Re: Friday Facts #175 - Programmable Speaker
I have posted my guess on the original thread, but I have no real way of further verifying it without the help of someone affected.
TL;DR - possible bug in one or more routers along the way when UDP checksum is 0x0000.
TL;DR - possible bug in one or more routers along the way when UDP checksum is 0x0000.
- hansinator
- Fast Inserter
- Posts: 160
- Joined: Sat Sep 10, 2016 10:42 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
A speaker! So nice! <3
-
- Fast Inserter
- Posts: 106
- Joined: Thu Jul 30, 2015 7:11 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
With the possible simple fix of checking outbound checksums and "fixing" the packet to make this particular one impossible. (Is this possible? I haven't worked with UDP much)sillyfly wrote:TL;DR - possible bug in one or more routers along the way when UDP checksum is 0x0000.
If the checksum for the problem packets is null (0) that would make it much more likely that that is the problem is with the checksum than something in the packet data.
Re: Friday Facts #175 - Programmable Speaker
milo christiansen wrote: With the possible simple fix of checking outbound checksums and "fixing" the packet to make this particular one impossible. (Is this possible? I haven't worked with UDP much)
This would only work if the problem is in the first NAT (the one in the router of one of the players), as the checksum takes the IP addresses into account. As this problem occurs in both directions this is almost surely not the case, and so since Factorio has no sensible way of knowing the real (behind the NAT) IP address, this isn't really a feasible solution.
However, instead of a random byte they could choose to send a byte (or two) counting the number of attempts. This will have the same result of changing the checksum, but will have the added benefit of being both deterministic and informative (could possibly also help in cases of packets getting dropped for other reasons).
-
- Fast Inserter
- Posts: 106
- Joined: Thu Jul 30, 2015 7:11 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
That sound like a good idea, particularly just sending a resend counter would be quick and easy.
EDIT: Read, then post.
EDIT: Read, then post.
-
- Burner Inserter
- Posts: 5
- Joined: Mon Jul 04, 2016 5:05 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
Is the sound just going to be a piano? I mean, I see a dropdown box so obviously not, but what other sounds are planned? Because if you haven't thought of it, the game needs klaxons. Here is one (with an air siren) example. Klaxons, sirens and other alarms would be a great fit for a giant sprawling factory.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
Kinda reminds me of this old program at school called Logicator. Was a flowchart programming peice of software, and one of the things it allowed you to do was generate a tone through the PC Speaker. you know, the one on the motherboard, back from the MS-DOS Era, in this case, the PC was running Windows 3.1.
Anyway, using simply the abillity to play a tone of a specific frequency.... Someone wrote a program to play an entire symphony. one of Bethoven's I think.
Reminds me of that.
Anyway, using simply the abillity to play a tone of a specific frequency.... Someone wrote a program to play an entire symphony. one of Bethoven's I think.
Reminds me of that.
Re: Friday Facts #175 - Programmable Speaker
That sound isn't a claxon, its an air raid siren: https://www.youtube.com/watch?v=cURcd2_w-rg. So if its not in the base game and someone decides to mod it in, change the sprite to an actual air raid siren and not a speakerWonder Spaceship wrote:Is the sound just going to be a piano? I mean, I see a dropdown box so obviously not, but what other sounds are planned? Because if you haven't thought of it, the game needs klaxons. Here is one (with an air siren) example. Klaxons, sirens and other alarms would be a great fit for a giant sprawling factory.
Re: Friday Facts #175 - Programmable Speaker
milo christiansen wrote: With the possible simple fix of checking outbound checksums and "fixing" the packet to make this particular one impossible. (Is this possible? I haven't worked with UDP much)
I did a quick Google search.
"UDP has a special case where 0x0000 is reserved for "no checksum computed". Thus for UDP, 0x0000 is illegal and when calculated following the standard algorithm, replaced with 0xffff."
https://ask.wireshark.org/answer_link/19845/
Here's the same information in RFC 1122:
"[T]he UDP checksum is optional; the value zero is transmitted in the checksum field of a UDP header to indicate the absence of a checksum. If the transmitter really calculates a UDP checksum of zero, it must transmit the checksum as all 1's (65535). No special action is required at the receiver, since zero and 65535 are equivalent in 1's complement arithmetic. "
http://www.freesoft.org/CIE/RFC/1122/79.htm
Re: Friday Facts #175 - Programmable Speaker
FYI the sound you hear is the intro from Gravity Falls: https://www.youtube.com/watch?v=ZtlX1pujSr4
Nice that the Factorio team likes it too.
Nice that the Factorio team likes it too.
Re: Friday Facts #175 - Programmable Speaker
Always love hearing about new circuit network features. I think the speaker is a great addition - it will allow the player to create very specific and custom alerts for various things, giving us an idea of any issues straight away rather than us finding it many hours down the track.
Looking forward to hearing more about the upcoming circuit network features in a future FFF!
Looking forward to hearing more about the upcoming circuit network features in a future FFF!
- aRatNamedSammy
- Fast Inserter
- Posts: 216
- Joined: Tue Jul 08, 2014 4:26 pm
- Contact:
Re: Friday Facts #175 - Programmable Speaker
........ speakers..... .....
after the super display, now the sound.. next, a gameboy playing tetris with the russian music, in factorio ...
cant even imagine what creation some ppl will do.. looking foward to these futur pieces or arts .
no limit except imagination,.. and well, cpu capacity lolll
after the super display, now the sound.. next, a gameboy playing tetris with the russian music, in factorio ...
cant even imagine what creation some ppl will do.. looking foward to these futur pieces or arts .
no limit except imagination,.. and well, cpu capacity lolll
Teeth for Two (so sorry my bad english)
-
- Filter Inserter
- Posts: 311
- Joined: Sat Jan 09, 2016 1:11 am
- Contact:
Re: Friday Facts #175 - Programmable Speaker
are you gonna also add some simpler way to play sound via the lua api?
Having to create transparent explosion or vehicule to create sound in a mod is a real pain.
Having to create transparent explosion or vehicule to create sound in a mod is a real pain.