00:00
00:00
Newgrounds Background Image Theme

VCR 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,046,325 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2014-01-21 17:32:10


Why is there, what appears to be, a fourteen year old girl posing in your room?

Response to The Flash 'Reg' Lounge 2014-01-21 17:49:19


At 1/21/14 05:32 PM, Diki wrote: Why is there, what appears to be, a fourteen year old girl posing in your room?

That's just Rusty relaxing.

Response to The Flash 'Reg' Lounge 2014-01-21 17:50:46


At 1/21/14 05:22 PM, Rustygames wrote: Ha just found this of my old place where I had my setup in my room

Is that Warcraft 3?

Response to The Flash 'Reg' Lounge 2014-01-21 18:14:05


At 1/21/14 08:29 AM, Innermike wrote: An unstoppable creative force.

Also, what do you guys think of pop culture references in video games? I thought it was pretty neat the first couple times but now it's like every game that comes out needs to have a Breaking Bad reference in the first 5 minutes or some shit.

Pop culture, fine in moderation. Internet memes? I recommend that the company stop making games immediately.


Tale of Enki: Pilgrimage, an RPG with a few twists. Available to buy it on Steam here!

BBS Signature

Response to The Flash 'Reg' Lounge 2014-01-21 18:21:15


At 1/21/14 05:50 PM, Sam wrote:
At 1/21/14 05:22 PM, Rustygames wrote: Ha just found this of my old place where I had my setup in my room
Is that Warcraft 3?

No, because it does not have Menu, Allies, Chat buttons on top-left, and also it has some excessive row of icons on the top-left, which should not be in Warcraft 3. Warcraft 3 should display a column of heroes in the top-left, not a row.
And it is displaying some strange large structure that I have not seen in Warcraft 3.
Also, there's some picture in the bottom-right of some orcish banner, in Warcraft 3 there need to be buttons, but some mods allow to customize that area with a picture, so this may be a mod.
But still, a mod may not display a row of icons in top-left.
So I think this is either Dota 2 or League of Legends.

Response to The Flash 'Reg' Lounge 2014-01-21 19:04:23


At 1/21/14 03:16 PM, kkots wrote: What's that? You made me realize I need to learn iterative equations!

It's equations that you can find their roots by "iterating" over them.

That's an example. (1/3) ( 4 + X(n) - 2ln( X(n) ) ) = X(n+1)

n here refers to the order of X.

When X(n) = X(n+1), that's the root. To solve such equation above for example, bring up your calculator, replace every X(n) with "Ans", and (of course) neglect X(n+1). while that "Ans" is 1.5. Keep pressing "=" until the result doesn't change anymore. That's the root. That's because the next "=" generates X(n+1), and it's actually the same value as the previous X, therefore X(n) equals X(n+1), hence, that's the root.

Also, I have completely no idea how does that work, but it just does.


Nav.. I'm the Nav!

Response to The Flash 'Reg' Lounge 2014-01-21 19:13:25


At 1/21/14 06:21 PM, kkots wrote: So I think this is either Dota 2 or League of Legends.

The minimap is in the bottom left, so it's not LoL. It's sc2.

Response to The Flash 'Reg' Lounge 2014-01-21 20:54:57


At 1/21/14 07:18 PM, Innermike wrote: which is just a method of approximation when the equations themselves just can't practically be solved by analytical means

That's the only part of it that I'm sure is indeed true. I feel like I'm being ignorant...

I believe it can also take you further away from the correct answer in some cases

Yep, that's why we're supposed to draw graphs to observe the approximate value of the root, and then use the method to calculate it using that number.

In our own syllabus though (IGCSE, Cambridge, Maths AL syllabus) it always gives you thresholds for the minimum and maximum value of the root, and then it asks for a value accurate to N decimal places. In most cases, 3. It's quite easy, really. You just turn on your calculator, type the equation there, and write down the answers on your answer booklet. The problem is, it doesn't come that way. It's always a big question with some differentiation, integration, some trigonometrical identities, and then, in the end, some 1 or 2 marks go for the iteration.


Nav.. I'm the Nav!

Response to The Flash 'Reg' Lounge 2014-01-21 21:54:01


At 1/21/14 07:18 PM, Innermike wrote: I think what you're referring to is the Newton-Raphson iterative method, which is just a method of approximation when the equations themselves just can't practically be solved by analytical means. I believe it can also take you further away from the correct answer in some cases, though it's used in virtually all calculators for the square root button.

I know it all too well... Had to iterate that bitch many times. There's a function that gives you an estimate of the true value, takes like 2-3 iterations to converge to 10^-6 after using that.

Response to The Flash 'Reg' Lounge 2014-01-21 22:36:20


So as I'm going through this quick game I realized I needed a way to differentiate between the different types of data that the server will receive. Since there's only one TCP server running (okay, technically two but the second doesn't respond to anything except policy requests) and one UDP server running, I can't just say "data for this goes to this port..." - that would be terribly inefficient and messy anyway.

So what I did was prepend an int to the start of each packet I send out, and the codes given with that int tell the server what it should be doing.
The server then responds with the same int prepended to the returned packet and a second int telling the client the status code of the response.

So the overall client packet structure is as follows:
Type, Username/Password (or Key after auth), ?Character Name, ?Additional Args

And the server's response is layed out much the same:
Type, Response Code, ?Additional Args

This also lets me have server plugins/mods which can just take different "packet IDs" as I might call them later. The wrapper I made for the server should also help out with simplifying the modding process, since the "onData" function takes a custom ClientInfo class (address, port) and a ByteArray of the actual packet (same for the UDP)


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-01-22 00:19:57


At 1/21/14 10:36 PM, egg82 wrote: So as I'm going through this quick game I realized I needed a way to differentiate between the different types of data that the server will receive. Since there's only one TCP server running (okay, technically two but the second doesn't respond to anything except policy requests) and one UDP server running, I can't just say "data for this goes to this port..." - that would be terribly inefficient and messy anyway.

So what I did was prepend an int to the start of each packet I send out, and the codes given with that int tell the server what it should be doing.
The server then responds with the same int prepended to the returned packet and a second int telling the client the status code of the response.

So the overall client packet structure is as follows:
Type, Username/Password (or Key after auth), ?Character Name, ?Additional Args

And the server's response is layed out much the same:
Type, Response Code, ?Additional Args

This also lets me have server plugins/mods which can just take different "packet IDs" as I might call them later. The wrapper I made for the server should also help out with simplifying the modding process, since the "onData" function takes a custom ClientInfo class (address, port) and a ByteArray of the actual packet (same for the UDP)

Umm you're telling me you've been using serialized data types all this time? *facepalm* Newbie101, nobody serious about networking uses serialization unless it's 110% required (there's nothing I can think of).

Wait until you have to further manage bandwidth by squeezing multiple flags into one byte.

Also, a 32 bit integer is overkill for a packet op code, you're better off using a simple byte as the data type or if that's not enough, you can take it to the absolute extremes using a 16 bit short instead, but a 32 bit value for an opcode that wont likely go beyond 100, is just... too much of a waste.

Response to The Flash 'Reg' Lounge 2014-01-22 04:13:09


Am i late to the party?

My Second monitor isnt connected right now. HDMI cord is being used on my xbox right now.

Also, My ninja game is ready for testers if anyone here is interested

The Flash 'Reg' Lounge


BBS Signature

Response to The Flash 'Reg' Lounge 2014-01-22 08:06:40


At 1/21/14 09:18 PM, Innermike wrote: Wasn't familiar with the IGCSE till just now, only heard of it before, it seems like a nice step up from the regular GCSEs but looking at the related CIE A-Levels (well I only looked at maths and further maths so they're the only ones I can speak for, physics and chemistry are all over the place in any curriculum so I didn't bother checking) it doesn't seem like theres a similar step up from normal A-Level maths and further maths. It seems about the same, actually slightly less extensive than the standard Edexcel A-Level curriculum, which seems strange. Is it just the international aspect that makes it appealing?

Actually some IGCSE guys study Edexcel here. CIE's AL and Edexcel's AL are quite similar, and I doubt that "less extensive" part. Actually, I believe they're almost identical, except for the exams.

IGCSE is "International" GCSE, now it can make sense for you :D


Nav.. I'm the Nav!

Response to The Flash 'Reg' Lounge 2014-01-22 11:23:00


At 1/22/14 12:19 AM, slugrail wrote: Umm you're telling me you've been using serialized data types all this time? *facepalm* Newbie101, nobody serious about networking uses serialization unless it's 110% required (there's nothing I can think of).

What's the recommended way, then? I couldn't think of anything better than "add your own header"

Wait until you have to further manage bandwidth by squeezing multiple flags into one byte.

If I needed to do that, I would probably combine packets and have the server split them where the first one's supposed to end.

Also, a 32 bit integer is overkill for a packet op code, you're better off using a simple byte as the data type or if that's not enough, you can take it to the absolute extremes using a 16 bit short instead, but a 32 bit value for an opcode that wont likely go beyond 100, is just... too much of a waste.

you're right about that one, I completely forgot I could write 16-bit ints to arrays. If I'm going for modding support, 255 possible flags might not be good enough. I dunno, it really all depends.


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-01-22 12:03:34


At 1/21/14 05:50 PM, Sam wrote:
At 1/21/14 05:22 PM, Rustygames wrote: Ha just found this of my old place where I had my setup in my room
Is that Warcraft 3?

Starcraft 2. It looks like I was watching a pro game (full screen so it looks like I'm playing)


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2014-01-22 12:05:24


At 1/21/14 05:32 PM, Diki wrote: Why is there, what appears to be, a fourteen year old girl posing in your room?

Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P

Also I should have bothered to cut that out, I'm sure she won't like me putting that picture up


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2014-01-22 12:22:36


At 1/22/14 12:05 PM, Rustygames wrote: Also I should have bothered to cut that out, I'm sure she won't like me putting that picture up

And I should have cut out Lego Bionicle toys.

Response to The Flash 'Reg' Lounge 2014-01-22 16:33:03


At 1/22/14 12:05 PM, Rustygames wrote: Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P

Damn, feed that woman some food. She looks like I could pick her up and shot put her. :)

At 1/22/14 12:05 PM, Rustygames wrote: Also I should have bothered to cut that out, I'm sure she won't like me putting that picture up

I can delete it if you want to re-post it.

Response to The Flash 'Reg' Lounge 2014-01-22 23:04:35


Took me about 30 tries for Math.random() to give me something less than .125 jeez.

Response to The Flash 'Reg' Lounge 2014-01-22 23:39:18


At 1/22/14 11:04 PM, MSGhero wrote: Took me about 30 tries for Math.random() to give me something less than .125 jeez.
private function awkwardFunctionName(lower:Number, upper:Number):Number { return Math.random() * (upper - lower) + lower; } trace(awkwardFunctionName(0, 0.125));

o.o


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-01-23 00:38:42


At 1/22/14 11:39 PM, egg82 wrote: o.o

to be fair, I'm not sure that would actually work with specific numbers and such (referring to negative values in different places) - but it was a quick thing so meh.
Speaking of things that may or may not actually work, I also quickly typed out a mod system for AS3 using Workers. It's very much untested (and hell, I'm not even sure it's a good idea) but I intend to use this in a fun little project so we'll see how it goes.

http://www.newgrounds.com/dump/item/b9b606d55c5415824d9609e0e2f5869a
^ download link
(requires AS3 Signals library because I was too lazy to use events)

-Basic implementation-
Main file:

public class SomeClass { private var _mod:Mod = new Mod(new File(File.applicationDirectory.nativePath + File.seperator + "myMod.swf")); public function SomeClass() { _mod.ON_COMPLETE.add(onComplete); _mod.ON_CHANNEL_MESSAGE.add(onChannelMessage); } private function onComplete(mod:Mod):void { mod.addChannel("testChannel"); mod.load(); mod.sendChannel("testChannel", {my:"data", more:"datas"}); } private function onChannelMessage(channelName:String, data:*):void { trace("data: " + JSON.stringify(data)); } }

Mod file:

public class Main extends BaseMod { public function Main():void { ON_CHANNEL_MESSAGE.add(onChannelMessage); addChannel("testChannel"); } private function onChannelMessage(channelName:String, data:*):void { trace("omnomnom, data: " + JSON.stringify(data)); sendChannel(channelName, ["an", "array", "because", "why", "not", "?"]); } }

this is all in theory, though, since it's largely untested. It SHOULD work in practice >.>


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-01-23 07:29:48


At 1/22/14 11:39 PM, egg82 wrote: o.o

int(Math.random() • 8) == 0 is what I was looking for. As3's random seems to randomly have random behavior, like randomly not picking from a random range of numbers for some random reason.

Response to The Flash 'Reg' Lounge 2014-01-23 08:23:32


Bringing another topic into place, I saw that today. It's true. And because some people may not know, I know it's true because I'm Egyptian :c

The Flash 'Reg' Lounge


Nav.. I'm the Nav!

Response to The Flash 'Reg' Lounge 2014-01-23 10:44:57


At 1/22/14 12:05 PM, Rustygames wrote: Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P

No trophy wife in my photo but this is my work station.

The Flash 'Reg' Lounge


None

BBS Signature

Response to The Flash 'Reg' Lounge 2014-01-23 11:40:22


At 1/23/14 10:44 AM, Luis wrote:
At 1/22/14 12:05 PM, Rustygames wrote: Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P
No trophy wife in my photo but this is my work station.

1) There's that mouse. It's that mouse, right? Why is the rug under it so huge?
2) Low ceiling. You surely moved into a smaller building.
3) You seem to be cutting up Newgrounds interface into some sort of grid.
4) I can't see what's on the papers on the wall. Some pictures (*interest*).

Response to The Flash 'Reg' Lounge 2014-01-23 11:50:05


At 1/23/14 11:40 AM, kkots wrote: 1) There's that mouse. It's that mouse, right? Why is the rug under it so huge?

It is that mouse. I still draw with a mouse so i need a big mousepad.


None

BBS Signature

Response to The Flash 'Reg' Lounge 2014-01-23 14:50:25


The one relaxing thing about RPGs like mine:

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2014-01-23 15:16:34


At 1/22/14 04:33 PM, Diki wrote:
At 1/22/14 12:05 PM, Rustygames wrote: Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P
Damn, feed that woman some food. She looks like I could pick her up and shot put her. :)

Believe me she'd be extremely flattered to hear that! I think the photo is stitched weirdly (one of those panorama things you can do on your phone) and at a weird angle. She weighs a healthy amount. She's not fat... Oh god I'm just digging a hole here

At 1/22/14 12:05 PM, Rustygames wrote: Also I should have bothered to cut that out, I'm sure she won't like me putting that picture up
I can delete it if you want to re-post it.

Nah it's okay, the damage is done :P

At 1/23/14 10:44 AM, Luis wrote:
At 1/22/14 12:05 PM, Rustygames wrote: Sorry, that's actually my wife. She is petite, but I assure you, not 14 years old :P
No trophy wife in my photo but this is my work station.

lol trophy wife. I'm her throphy husband more like ;)

Is this your work desk though? I thought this was a home battle stations type dealeo?


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2014-01-23 16:36:38


At 1/23/14 03:16 PM, Rustygames wrote: Is this your work desk though? I thought this was a home battle stations type dealeo?

Oh. I dont work at home at all. I just check my tablet to answer e-mails and keep tabs. I've found I'm happier not taking my work home with me. You can only take so much newgrounds before you start going nuts.


None

BBS Signature

Response to The Flash 'Reg' Lounge 2014-01-23 16:56:22


At 1/23/14 04:36 PM, Luis wrote: Oh. I dont work at home at all. I just check my tablet to answer e-mails and keep tabs. I've found I'm happier not taking my work home with me. You can only take so much newgrounds before you start going nuts.

20 mins of general forum for me.