00:00
00:00
Newgrounds Background Image Theme

SlipperyTaint just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,519,521 Views | 60,106 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2014-02-24 15:39:45


At 2/24/14 03:25 PM, Glaiel-Gamer wrote: They're both built on top of IP, the speed difference is not as significant as it seems at first, most of the delay in TCP comes from if it loses a packet, the endpoint needs to wait till the missing packet arrives before it can continue processing the new ones (since not only are the packets guaranteed to arrive, but guaranteed to arrive in order), but packet loss is pretty rare in the first place (unless your connection is really shitty to begin with), and even 3-4% packet loss can significantly affect a multiplayer game.

I would say most of the waiting comes from ACK. Also the fact that the packets generally have a large (comparatively-speaking) header that needs to be parsed out before any real information is actually given. Processing power/wait time is larger compared to UDP. I'd still use UDP for things that require a lot of packets and don't matter if something happens to them.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-02-24 15:49:18


At 2/24/14 03:04 PM, egg82 wrote: Universal Data Protocol? I think?

UDP stands for User Datagram Protocol.

And I have no idea how that AppWarp thing could possibly achieve high performance real-time data transmission in Flash Player; that seems rather dubious to me. I tried finding out how it actually works on their website, but they offer no explanation, at least not that I could find, and it's not open source.

Response to The Flash 'Reg' Lounge 2014-02-24 15:57:33


At 2/24/14 03:49 PM, Diki wrote: UDP stands for User Datagram Protocol.

Fuck. I was close! Ish.

And I have no idea how that AppWarp thing could possibly achieve high performance real-time data transmission in Flash Player; that seems rather dubious to me. I tried finding out how it actually works on their website, but they offer no explanation, at least not that I could find, and it's not open source.

Honestly it might just be as simple as "it's just that fast"
When I use a loopback with AS3 clients and servers, data transmission is pretty damn quick. Much quicker than what they showed, actually.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-02-24 16:15:57


At 2/24/14 03:49 PM, Diki wrote: And I have no idea how that AppWarp thing could possibly achieve high performance real-time data transmission in Flash Player; that seems rather dubious to me. I tried finding out how it actually works on their website, but they offer no explanation, at least not that I could find, and it's not open source.

I found the git link, but there's just a swc :(

When I bother NG servers to give me save file info or whatever, is that tcp or udp or neither? What's the preferred way of doing multiplayer in general?

Response to The Flash 'Reg' Lounge 2014-02-24 16:35:57


At 2/24/14 04:15 PM, MSGhero wrote: When I bother NG servers to give me save file info or whatever, is that tcp or udp or neither?

That would be TCP.

At 2/24/14 04:15 PM, MSGhero wrote: What's the preferred way of doing multiplayer in general?

I wouldn't say there's any preferred way of implementing mutliplayer in general; all depends on what it is you're doing. If you're making a real-time multiplayer game, such as pretty much any MMO, or shooters like Team Fortress 2, then you'll want to use UDP. If it's something that is turn-based, like a game of chess, or a chat system, you would want to use TCP (especially so if you're making a chat application).

Basically if you need to guarantee that your data will arrive, like you would with chess or chatting, you want TCP. If you don't need a guarantee of the data's arrival, and just want to send/receive the most up-to-date information, such as in MMOs, or VoIP programs, you want UDP.

Response to The Flash 'Reg' Lounge 2014-02-24 18:03:06


Response to The Flash 'Reg' Lounge 2014-02-24 19:20:58


Thanks for the docs and help Diki, it's a drag that FP doesn't support UDP but I can do without it I guess.

Second day of uni and we're going to be getting into networking in a couple of hours. Had to make a Cisco student account and read through a whole load of crap I think has nothing to do with the subject.

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2014-02-24 20:33:34


At 2/24/14 07:20 PM, slugrail wrote: Second day of uni and we're going to be getting into networking in a couple of hours. Had to make a Cisco student account and read through a whole load of crap I think has nothing to do with the subject.

We had to install ubuntu for some reason. The terminal terrifies me. No idea why we have to use it right now, eventually we program GBA games in C, but that's not for a while.

Response to The Flash 'Reg' Lounge 2014-02-24 21:13:18


At 2/24/14 08:33 PM, MSGhero wrote: We had to install ubuntu for some reason. The terminal terrifies me.

I miss terminal every time I use command prompt, which is a useless pile of crap in comparison. PowerShell is certainly a lot better than command prompt, but it's still a poor man's terminal.

Response to The Flash 'Reg' Lounge 2014-02-24 21:21:56


At 2/24/14 09:13 PM, Diki wrote: I miss terminal every time I use command prompt, which is a useless pile of crap in comparison. PowerShell is certainly a lot better than command prompt, but it's still a poor man's terminal.

all of my this.

also, this is a thing. It's a thing that seems to have blown my mind. Excuse me while I pick up pieces of my brain again.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-02-24 21:22:10


At 2/24/14 09:13 PM, Diki wrote: I miss terminal every time I use command prompt, which is a useless pile of crap in comparison. PowerShell is certainly a lot better than command prompt, but it's still a poor man's terminal.

Updating haxe libs, attempting to rename files and failing, and javac/java-ing during the first couple weeks of java class before they let us use editors. Never touched it otherwise.

Response to The Flash 'Reg' Lounge 2014-02-25 07:56:02


At 2/24/14 08:33 PM, MSGhero wrote:
At 2/24/14 07:20 PM, slugrail wrote: Second day of uni and we're going to be getting into networking in a couple of hours. Had to make a Cisco student account and read through a whole load of crap I think has nothing to do with the subject.
We had to install ubuntu for some reason. The terminal terrifies me. No idea why we have to use it right now, eventually we program GBA games in C, but that's not for a while.

That's definitely way better than a 3 hour tutorial talking about rollover and straight cables. It took 2 whole hours to plugin and setup a router and a switch with this Cisco terminal crap. Just punching in a list of ipv6 install, ipconfig /all, enable commands blindly from a textbook and not understanding anything the terminal spits out is what the first tut consisted of.

Response to The Flash 'Reg' Lounge 2014-02-25 12:41:37


At 2/25/14 07:56 AM, slugrail wrote: That's definitely way better than a 3 hour tutorial talking about rollover and straight cables

rollover, crossover, and straight-through* :P


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-02-26 09:01:01


At 2/25/14 12:41 PM, egg82 wrote:
At 2/25/14 07:56 AM, slugrail wrote: That's definitely way better than a 3 hour tutorial talking about rollover and straight cables
rollover, crossover, and straight-through* :P

Man this thing kills me, who knew a router would be this complicated to setup. So rollover is for config, crossover is for devices with the same port and straight through is for connecting to the router?
Some clarification would be awesome since I didn't even bother listening in class especially the difference between crossover and straight throughs.

Response to The Flash 'Reg' Lounge 2014-02-26 12:37:44


At 2/26/14 09:01 AM, slugrail wrote: Some clarification would be awesome since I didn't even bother listening in class especially the difference between crossover and straight throughs.

Those are the two most common!
Omitting a bunch of stuff and oversimplifying for clarity:
Crossover is client to client (computer to computer)
Straight-through is client to server (PC to router, router to network)
Rollover is because fuck you that's why


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-02-27 19:43:26


At 2/26/14 12:37 PM, egg82 wrote:
At 2/26/14 09:01 AM, slugrail wrote: Some clarification would be awesome since I didn't even bother listening in class especially the difference between crossover and straight throughs.
Those are the two most common!
Omitting a bunch of stuff and oversimplifying for clarity:
Crossover is client to client (computer to computer)
Straight-through is client to server (PC to router, router to network)
Rollover is because fuck you that's why

Your oversimplified definition is two folds more descriptive than what the prof explained LOL

Response to The Flash 'Reg' Lounge 2014-03-03 20:52:30


Adobe lied to us: ints can be keys for associative arrays or object maps or whatever you call Objects tryna be Dictionaries. Also I hardly have time for gamedev right now sadface

Response to The Flash 'Reg' Lounge 2014-03-03 21:45:58


At 3/3/14 08:52 PM, MSGhero wrote: Adobe lied to us: ints can be keys for associative arrays or object maps or whatever you call Objects tryna be Dictionaries.

That's because of ECMAScript's retarded way of handling numbers and strings. It's just converting the integers to strings when used in that context, which is the same reason crap like this happens:

var data:Array = [1, 2, 10]; data.sort(); trace(data); // [1, 10, 2]

Response to The Flash 'Reg' Lounge 2014-03-03 22:26:23


At 3/3/14 09:45 PM, Diki wrote: That's because of ECMAScript's retarded way of handling numbers and strings. It's just converting the integers to strings when used in that context, which is the same reason crap like this happens:

But then he grabs the key from describeType, adds 1 to it, and (if it's an int) it gets treated like an int. So you're saying it gets converted during [key] access?

Response to The Flash 'Reg' Lounge 2014-03-03 23:12:56


At 3/3/14 10:26 PM, MSGhero wrote: But then he grabs the key from describeType, adds 1 to it, and (if it's an int) it gets treated like an int. So you're saying it gets converted during [key] access?

Yes, since that's what the ECMAScript spec says should happen. As for ActionScript being able to determine that the given key was originally an integer that's just a goofy special-case scenario that was included for whatever reason; if you use any other type, such as Number or a class with a toString() method, the key will be considered a String. Either way that behaviour is not part of ECMAScript, as you can see with this JavaScript code.

Response to The Flash 'Reg' Lounge 2014-03-05 00:34:59


I've been having a lot of issues with haxe/openfl in FD lately. It doesn't connect to the debugger during flash export, there's always some error with a plugin that doesn't check if the project is in as3 or haxe, and code completion never works. Anyone have a working workflow with it? I'm on one of the latest nightlies, but the main release had worse problems.

Response to The Flash 'Reg' Lounge 2014-03-06 22:57:25


So a couple days ago (in class) we were assigned topics for our persuasive speeches. We got to semi-choose ours, I chose the one that said "security and encryption" because that kinda sounded like my thing.

Turns out, I'm now supposed to make a six-minute speech (with data backing it up) persuading people that encryption is not only a viable replacement to login systems and firewalls (yes, login systems and firewalls specifically) but that it should ALWAYS be used in place of those.

Soo... Does anyone know anywhere I can find good supporting arguments for this? Because I'll be damned if I know where to start looking for this particular rabbit hole.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-03-07 09:25:50


At 3/6/14 10:57 PM, egg82 wrote: Turns out, I'm now supposed to make a six-minute speech (with data backing it up) persuading people that encryption is not only a viable replacement to login systems and firewalls (yes, login systems and firewalls specifically) but that it should ALWAYS be used in place of those.

A firewall analyzes and blocks packets, a login system validates login information; I don't see how encryption on it's own can replace either of these things.
Are you sure it's not about the importance of using encryption in conjunction with login systems / firewalls?

Response to The Flash 'Reg' Lounge 2014-03-07 09:37:27


At 3/5/14 12:34 AM, MSGhero wrote: I've been having a lot of issues with haxe/openfl in FD lately. It doesn't connect to the debugger during flash export, there's always some error with a plugin that doesn't check if the project is in as3 or haxe, and code completion never works. Anyone have a working workflow with it? I'm on one of the latest nightlies, but the main release had worse problems.

I use Sublime text 2, it has a plugin for haxe/openfl, allows you to select target platform, jumps to compilation errors and has decent code completion (the build-in code completion from Haxe). I've got nothing to complain about. The only thing that is a major pain in the ass is combining haxe/flash and the debugger; but that's not related to Sublime text 2.

Response to The Flash 'Reg' Lounge 2014-03-07 12:16:57


At 3/7/14 09:37 AM, Sandremss128 wrote: I use Sublime text 2, it has a plugin for haxe/openfl, allows you to select target platform, jumps to compilation errors and has decent code completion (the build-in code completion from Haxe). I've got nothing to complain about. The only thing that is a major pain in the ass is combining haxe/flash and the debugger; but that's not related to Sublime text 2.

A plugin had an update available, and it seems like that fixed everything (it wasn't checking the current project type, so it was doing as3 things to a hxproj). So now my issue is trying to get it to connect to the flash debugger and trying to understand @psvils' entity system.

Response to The Flash 'Reg' Lounge 2014-03-07 12:34:02


At 3/7/14 09:25 AM, Sandremss128 wrote: A firewall analyzes and blocks packets, a login system validates login information; I don't see how encryption on it's own can replace either of these things.
Are you sure it's not about the importance of using encryption in conjunction with login systems / firewalls?

That's exactly what I said to the teacher, and yes I'm supposed to persuade people to always use encryption in place of these two.
Thankfully the people I'm persuading don't know much about computers at all, so it should help. I might be able to get away with incorrect facts and some made-up crap thrown in.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2014-03-07 12:52:39


At 3/7/14 12:34 PM, egg82 wrote: That's exactly what I said to the teacher, and yes I'm supposed to persuade people to always use encryption in place of these two.
Thankfully the people I'm persuading don't know much about computers at all, so it should help. I might be able to get away with incorrect facts and some made-up crap thrown in.

how bout write a speech to persuade your teacher about what encryption actually is

Response to The Flash 'Reg' Lounge 2014-03-07 12:59:28


At 3/7/14 12:34 PM, egg82 wrote: That's exactly what I said to the teacher, and yes I'm supposed to persuade people to always use encryption in place of these two.
Thankfully the people I'm persuading don't know much about computers at all, so it should help. I might be able to get away with incorrect facts and some made-up crap thrown in.

I could understand if they wanted you to try and argue a difficult point - and provide some insight as to why it's not valid. But to argue that it should always be used it a strange one.

Good luck :|

"Encryption is a completely viable alternative to login forms and firewalls, any questions?"

Response to The Flash 'Reg' Lounge 2014-03-07 13:07:16


I don't know about you guys but I totally use a Caeser Cipher to log users into my applications. Just dick around with their login credentials and ta-dah they're logged in!

Response to The Flash 'Reg' Lounge 2014-03-07 18:26:12


At 3/7/14 01:07 PM, Diki wrote: I don't know about you guys but I totally use a Caeser Cipher to log users into my applications. Just dick around with their login credentials and ta-dah they're logged in!

"Caeser Cipher Cannot be cracked. No one can find out the offset. Best way to log people in and to setup firewall. In my hours of experience every system I found using Caeser Cipher was completely secure, more people should be using this system."
-Swish

Does that work as a source for you Egg?


BBS Signature