« first day (916 days earlier)      last day (4258 days later) » 

01:00
You have the drawing right there
what are you confused about !?!?
@Pawnguy7 Bumper.
Wait, wait.
Shoulder Buttons === Bumper
@Borgleader That has trigger and bumper, XInput has shoulder and thumb. It isn't "on the drawing", I would argue.,
Thunmbstick is thumbstick
Eh. I feel kind of stupid -_-
Makes sense, though, I was kind of confused why the trigger would be a button.
Xeo
Xeo
01:02
input frameworks normally have the triggers as a seperate Z axis
Yes.
@Pawnguy7 You can "click" the sticks.
Those count as "buttons".
Yes, I learned that today.
Pretty neat design.
I gotta ask, have you ever used an xbox controller before?
Not that much.
01:05
Do you own one?
Nope.
And you are supporting it because?
To pester us.
A friend has a robot he wants to control with a controller. Long story.
Although, I would hope to support it in my XNA game as well, but... well, that is XNA, not xinput. Hesitant to do that if I don't test it though.
Source (for all of you borderlands fans)
01:24
@CatPlusPlus I agree
Praise the Sun
JOOOOOOOOOOOOOOOOOLLLLLLLLLLLLLLY COOOOOOOOOOOOOOPERATIIOOOON
user1357851
I want to have some jolly cooperation right now. =[
Xeo
Xeo
01:27
@LucDanton: Hah, found the paper that mentions you.
@Pawnguy7 XInput is easy to use and XNA is built on top of that.
You're not allowed to use the Big Button in the center: Microsoft explicitly doesn't send messages about it and you have to do some low-level trickery to get a message for it.
In short: don't use it. =l
I don't know what it would be used for in this circumstance, but it is on the controller, so I looked into it. It sounded like you might be able to get it using some undocumented methods, but I think I will leave it be.
On the XBox, it calls the Home Screen or w/e it is and overlays your game.
On the Desktop, it activates GFWL overlay or calls up a diagnostic bubble.
It makes no sense to use the guide button if youre not developping for XBox or GFWL
In either case, it's not worth getting at it because Microsoft has hogged the behavior for it.
01:31
Seems logical.
I laughed at the signature of the pow method being "double pow". I don't know if I am clever, or tired :\
@Pawnguy7 Hint if it's undocumented, don't touch it
I wanna do a Let's Play with like, Cat or something. =[
Especially when the documentation explicitly says that if any other bit is set in that bitset, it's reserved and unspecified
@ThePhD Well it is in my plans for some unspecified future
I don't know if I'll be able to defeat my mic anxiety or be any good at it and ugh
What is a Let's Play?
@CatPlusPlus Tell me when I'll be there <333 !!
If I ever finish my game, maybe I'll let you play it on your stream
And you can tell me how epically bad it is.
01:39
rofl
I'm sure it'll be fine
Also
Temperature managed to skyrocket during these past few days
Yep.
It is now 14 degrees
At 4AM
Used to be frigid-wintery, now it's getting a whole lot warmer really fast.
If I have the thumbstick giving me, on each axis, a value ~-32000-32000, and I want the magnitude of the stick, would it be the greater (abs) of the two?
01:46
... Uhhh.
Magnitude?
(val) / 32768.0f => Normalized XInput Stick Value
Xeo
Xeo
Magnitude is usually not just the maximum in one direction, but the length of the total vector.
This yields an infinitely useful -1.0f to 1.0f, which can be used to scale all kinds of values in a sane manner.
YOu can split this up for Horizontal and Vertical axes, and create a Vector2 for the stick's current position
Dont forget to take into account the deadzone
01:48
Vector2 ( horiz_val / 32768.0f, vertic_val / 32768.0f )
I was planning on, not entirely certain why thinking back, on a magnitude (basically, how far from the center it is, 0-1) and the direction.
^ What Borgleader said too, you should ignore -DEADZONE to +DEADZONE values and set them as 0.
Yes, I plan to do that.
@Pawnguy7 You lose information.
Unless you store 4 values now, one for each direction.
thats inefficient in terms of space, [-1.0f, 1.0f] is a better choice
01:49
It should be - like every game programmer and their Mom is used to - [-1.0f, 1.0f] for horizontal and vertical.
That way, the concept of left vs. right, front vs. back, etc. etc. is preserved.
@Borgleader Also in terms of computation. Nobody sends their values over like that.
yes yes that too
How about this: the wrapper might change. But, assuming I want to achieve what I stated above, is my plan correct?
Xeo
Xeo
Alright, time to head to an awesome 4 1/2h of sleep...
Also, it's a waste because you'd never have -1.0f AND 1.0f at the same time on one single axis, so there's no pointer to separating the values because they're inheritently 1 value?
@Xeo Go to sleep earlier. :c
Xeo
Xeo
Couldn't, had to talk to Richard Smith :s
01:51
I'm worried about you, you're going to sleep late every night and you get up to deal with AS3's bullshit everyday. How are you doing it? D:
Xeo
Xeo
@ThePhD And I'm not even hungry most of the day :D
Also, yesterday, I just fell asleep at ~8pm or so?
LIES, I wasn't there for it.
Xeo
Xeo
Anyways, yeah, g'night
Niiight.
@Xeo 'night <3
"This paper assumes a good working knowledge of modern computer game development as well as some experience with game engine threading or threading for performance in general."
fuuuuuuuuuuuuuuuuu
01:59
Huh?
Domagoj suggested I go nuts with my engine... so I am attempting something miles above my competence level
Hopefully I won't pull off a Zoidberg, I'd love to put having written a game engine on my CV
Mmm.
Which also means I more or less have 9 months to come up with something tangible
(This is where you say I'm bat shit retarded)
3D?
Yes 3d
02:08
I've been at mine for only about... 4 months.
With 9 months, I could take over the world, I'm sure.
Screenshots? :)
(After reinventing all the wheels, first. :D)
@Borgleader None which are worth showing just yet.
Awwww :(
I got a video or two of some artist stuff and a few related things but not of the game itself.
0
A: How to manipulate leaves of a JSON tree

seheHere's a straight forward approach in C++: #include <fstream> #include "JSON.hpp" #include <boost/algorithm/string/regex.hpp> #include <boost/range/adaptors.hpp> #include <boost/phoenix.hpp> struct RareWords : boost::static_visitor<> { ///////////////////////////////////// // do nothin...

^ Does anyone think they'd notice it's C++ instead of Java? /cc @LucDanton I've cleaned things up
02:09
It's gonna take time, probably because I'm being far too careful.
@sehe I'll go out on a limb and say "Here's a straight forward approach in C++:" is a dead giveaway <3
(still no karma generator, though)
@Borgleader xD I'm pretty evil
@Borgleader Do you want to maintain game engines?
@ThePhD This is a dumb meme
OH MY GOSH
SNEAKY SEHE
<333 I have found out @sehe's character for Alf Pilgrim v. The Mods
Sneaky Polarbear Sehe.
02:12
how to tags in markdown? [tag] ?
@ThePhD Not aesthetically pleasing
@Borgleader more or less
[tag:my-little-pony]
@sehe Sneaky Sehe is better.
@CatPlusPlus I want to work in the games industry which means I will be whether or not i want to
TBH Sehe is too lop-sided, will never work
02:13
Also, cut it out with the tag markdown :)
Starring that so Melak and Tomalak can see it.
@Borgleader Eh, I'd think finished games will be more useful CV-wise than a finished engine with no games using it
@CatPlusPlus ^ +1
@CatPlusPlus That's debatable, besides, it's hard to make a game with no artists.
I showed off my games when I (illegally) crossed buildings in Microsoft after breaking away from the Tour and from my designated work path.
I spent the whole day talking to game devs.
02:15
Not many people write their own engines nowadays
I'm calling the FBI on you now ThePhD!
Most of htem were bored with me 'till I whipped out the Windows Phone I "borrowed" and put my Tetris-Attack like game on it (complete with sounds and blips).
@CatPlusPlus Besides I did intern on tomb raider (multiplayer), I did participate in a game contest (by Ubisoft) and I will be interning for them this summer, so games wise "I'm covered"
Going to an interview with an actual game to play is the best thing you can do.
Because most of them will be bored if you want to show them Vertex Buffer Optimzation #4 without actually giving them a use case.
Engines are a boring busywork
02:17
Use Cases - e.g., a small game - drive the industry. Nobody has time for your conceptual nonsense and your engine, unless you're trying to break into game engine development specifically.
THAT BEING SAID, if you're trying to get into game engine dev, you develop a small-scale, quick 'n' dirty engine, then you go make a game with it.
Even if it's small, even if it's clonish, just make something with it.
Prove it's potentially worth using.
You'd be surprised what rushing game devs will settle for...
Well I'll definitely develop a demo for the engine (if i have time)
I wont just show up with an engine
probably something really simple à la Quake 3 Arena or wtv
Besides making an engine is a good excuse to learn a bunch of new things
That "if I have time" part is what we're talking about
You either make an engine or make a game
Would return std::atan(state.Gamepad.sThumbLX/state.Gamepad.sThumbLY); return the direction properly? After my asteroids movement issues, I am not sure anymore.
(Or write a windowing code for one platform and that's that of the project)
.... Wat.
@Pawnguy7 What are you doing? o.0
02:21
I want to get the direction (0-359) of the thumbsticks.
The issue isn't why, I am sure it is bad, just how.
First,
you mean 0 -> 2pi
Because everything in code is radians.
Always.
Forever.
Second, why are you working with angles in the first place?
because keeping everything in straight, parallel lines is boring
If you have a Vector2 of ( 0.5, 0.5 ) (you're normalizing the 2 axes),
you take your movement vector and multiply it by that,
and presto, you have your movement
In the direction you desire.
No atan2 whatthefuck, angle bullshit nonsense required.
For example, your speed is 10, you multiply that by a person who is holding the control stick perfectly up ( 0.0, 1.0 ), then you get a delta movement that is (0.0, 10.0)
In the horizonal case, those numbers are swapped.
Because your game is 2D, movement translates directly.
TIL I can override inline style with CSS
Stupid parsers with their inlining style shit.
user142019
@Rapptz It's a very important feature.
02:30
That is why they are inlined in the first place, isn't it?
@Zoidberg lol
@Pawnguy7 They're inlined because people are lazy fucks.
Honestly I don't know.
user142019
Inline styles are bad in 99% of cases.
Yeah I never use them
Inline styles only make sense when they're generated on the fly
Kind of true. But as I understood it, inlining is a good way to ensure it is not overridden to to being more specific (unless you have !important). I would say in most cases you use external style sheets, or at the least... I forget what the middle tier is called all of a sudden.
user142019
02:32
The other 1% is bar charts.
@Zoidberg s/bar/pie/
user142019
Fuck pie charts. I want pizza charts.
@ThePhD Sorry, you completely lost me. This is not connected to my game or XNA.
@Pawnguy7 :D
user142019
02:33
user142019
Want.
^ This guy hates his life, so much.
The smile is just like "WhydidIdothisWhydidIsayyesWHYISSHEPREGNANT"
Hamburger Helper Hat?
Oh. I know why I want to use direction. Think about it. If I am thinking, "which radian is straight down", I have no clue. With direction, I know it is 270.
I'm guessing you've never used cylindrical coordinates, spherical coordinates or polar coordinates?
02:42
Nope.
@ThePhD so my Atan method would not work?
Well degrees to radians is a pretty easy conversion.
It is. But I don't plan to use radians.
Ookay. :D
I don't know what language you're using but every trigonometric function I've seen takes in radians not degrees.
What do you need degrees for
You'll just convert to and fro over and over again
02:44
Oh. True. I had forgotten. Perhaps I do need radians.
@Pawnguy7 Have fun wrapping all the c++ math library, all the things use radians
i suggest you get used to it
Assuming the values are radianized, would Atan be correct?
arctan for what?
finding the angle given the two components.
"two components"?
Are they vector quantities?
user1357851
02:46
@CatPlusPlus lol cool if your system is no performance critical
@Rapptz I think he wants to get the angle of a vec2d
so the 2 components are x,y
It's just pointless and potentially lossy
Fuck performance
Radians are the way to go.
I like my angles Pi'd.
@Pawnguy7 It'd be theta = \arctan{\frac{y}{x}}
@Borgleader more or less, yes
02:48
so yeah?
I don't get why everybody uses radians :\
8 mins ago, by Rapptz
I'm guessing you've never used cylindrical coordinates, spherical coordinates or polar coordinates?
@Pawnguy7 Because degrees are shitty?
Trigonometric math is easier with radians.
All computation with circles in done in terms of radians.
02:51
Because radians are an SI unit
It's based on the idea that the circumference of the Unity Circle is exactly Pi.
Exactly.
Unity Circle
Why do some silly conversion from degrees in the hardware when people can just not use shitty units?
return (std::atan(state.Gamepad.sThumbLX/state.Gamepad.sThumbLY)*180)/3.1415;this look good?
lmao
02:52
Pi, bitch. PI.
Everything is called Unity these days
Unit Circle.
Unity Circle.
Same thing.
Hey, Firefox, you fucking asshole, could you please remember which window is open on which monitor
@Pawnguy7 Why are you converting?
It returns a radian.
Yes. And I want a direction :D
02:53
@Rapptz ~~~~ Degreees ~~~~
You are a horrible person Pawnguy
What is wrong with my pi? Needs more precision?
Why are you dividing this
By anything
It returns the angle.
You're done.
02:54
arctan returns an angle
Yeah I just checked too, arctan returns degrees.
Hello, all
Oh. I misread that. It says for return, the arc tan of arg in radians.
http://wiki.blender.org/index.php/Dev:Ref/GoogleSummerOfCode/2013/Ideas
Oh I hope Google sponsors a lot of them :3 (There were 16 last year)
Why would it return degrees :psyduck:
Also use atan2 instead of atan with division
02:55
acos returns radians.
@Pawnguy7 Do you mean atan() from the standard lib?
Yes.
@Rapptz No it doesn't
> Returns the principal value of the arc tangent of x, expressed in radians.
02:56
@CatPlusPlus Yeah I misread. :(
Sigh...
Is it radians or degrees? :\
radians
also holy shit, std::hypot
> (1,1) cartesian is (1.41421,0.785398) polar
looks like radians to me
02:57
lol
That quote is from the example output at cppreference.com that @Rapptz linked
@Rapptz What atan returns is nearly never relevant. You nearly always want to use atan2 (but it returns radians also).
Wow, rapptz
What the hell, degrees? :c
You're like, the math guy.
02:58
I haven't used degrees since I was like 9
The math guy. You can't mess that shit up. =[
G'night.
I use degrees everyday... when I check the temperature :3
2
@Borgleader What about Kelvins?
You use Kelvins daily, @Rapptz?
03:01
Damn right.
So you're a physicist or chemist?
lol no, I'm a biomedical scientist
I don't actually use Kelvins :(
@Code-Guru I used to wear Kelvin Cleins, does that count? :-)
4
@Rapptz Only when reading the temperature of the Warp Core.
@JerryCoffin Never heard of it.
03:03
@JerryCoffin Were they Lord Kelvin Cleins? =p
Is it the spin off of Calvin Klein?
@Rapptz Having come from my mind, the operative word would probably be "warp" rather than "spin".
2
@Code-Guru Lord, how would I know?
Stars, stars everywhere!
I'm gonna go see if I can get some Jolly Cooperation in Dark Souls now. :D
@Rapptz It's almost a spoonerism.
@JerryCoffin I had trouble following the thread of your logic ;)
@ScottW yeah it seems were extremely funny tonight
03:07
@Code-Guru Don't link to that crap
lolol or that
@Borgleader Woof!
Not sure people got my thread joke =.=;
@Pawnguy7 Oh if you ever do come back, the angle between two vectors v to u is \arccos\left(\frac{v \cdot u}{\|v\|*\|u\|}\right), image
jerry was talking about spin & warp, and i made a reference to threads (thread warp)
03:09
@CatPlusPlus which crap? wikipedia?
user1357851
user1357851
me 2
@HuskyStarcraft, Los Angeles, United States
Starcraft commentator, e-sports fanatic and a well below average gamer.
6.5k tweets, 103k followers, following 137 users
@Borgleader Yes. I deliberately mis-took your mention of threads as referring to threads you'd weave with -- which are the warp and the woof...
user1357851
03:10
@ScottW why was I the last person who you asked in this lounge, I feel like a reject :'(
@Borgleader H to the usky Husky.
@ScottW Yah, I should have done that to start with...
@CatPlusPlus I'm surprised no one jumped on me right after I posted that link...I couldn't remember if that was the despised site or the other one...
@Telkitty He's mine. <3
And will always be mine. <3
Also, JOLLY COOPERATIION
@Borgleader Well. You lost that bet!
@Watt updated with readRareWordList() and showing how to do exact matches only. EDIT also skipping the first element in every array now (see comment) and removed the regex matching that I picked from your code, but wasn't what you wanted after all. — sehe 52 secs ago
user1357851
@ThePhD OMG Scott, you are two-timing me! Who else you are having a relationship with on this lounge!
03:13
Thank you! Going to try this now.. will be back in 10-15 min. — Watt 1 min ago
^ awesome. inb4 "it doesn't work" (hint - guy doesn't know how to compile a c++ program?)
user1357851
Now I am so hurt, I am going back to my coding ...
03:28
Hiya folks!
03:43
JAVA
@CatPlusPlus Whats up with that?
@ThePhD Did you check out the LP it's fuun
@GamesBrainiac Yes

« first day (916 days earlier)      last day (4258 days later) »