« first day (559 days earlier)      last day (4474 days later) » 

12:10 AM
Oh, you got to watch the recent ones?
 
got a multitouch problem
@Override
public boolean onTouchEvent(MotionEvent ev) {

x = ev.getX();
y = ev.getY();
final int action = ev.getAction();
switch (action & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN: {
x = ev.getX();
y = ev.getY();
if (x < 200 && y < 200){
a = a + 1;
}
if (x > 200 && y > 200){
b = b + 1;
}

// Save the ID of this pointer
mActivePointerId = ev.getPointerId(0);
break;
}
case MotionEvent.ACTION_POINTER_DOWN: {
x = ev.getX();
y = ev.getY();
if (x < 200 && y < 200){
a = a + 1;
}
if (x > 200 && y > 200){
i'm testing multitouch, and i'm not very succesfull
i want the a int to increase when i press the part of the screen wich coordinates are less then 200 x and y, to increase b int when i press > 200, and increase both, when i press both
that looked simple to me in the beggining
but im stuck there like 3 hours
 
Still Android stuff?
 
well now it's something more sirious
or it's basic stuff on you opinion?
 
I have no clue what it is, which is why I'm asking if it's Android related?
 
oh
yes
that's android stuff
 
umm
i can't
 
i'm baned there :D
 
Wow.
Good luck then.
 
can i ask it here, in gamedev?
 
12:22 AM
They'll redirect you and possible move the question to Android.SE.
 
We cannot move his questions if he is banned on other sites.
IIRC he is also banned on SO also, nevermind he was just there 26 seconds ago. That's where you should be.
 
i can't ask questions
in SO
because i called some guy a douche bag
@Noctrine aren't you an android dev?
 
Well, I'm pretty sure you'll end up banned here as well if you keep this up. The chat is pretty lax though, but it isn't really for questions like yours, chat is mostly for discussions that are too lengthy for comments.
 
@Liukas I am, and I've already helped you. And what William-ole-chap says is correct.
This chat is for discussion of game development related topics, your questions have been and likely will continue to be off-topic on the main site and really you should be asking questions on those.
@WilliamMindWorXMariager Why William and not Nikolaj?
 
@Noctrine, People seem to have a hard time pronouncing or even attempting to pronounce my first name, so I usually stick with my middle name. :)
 
12:31 AM
Niko-lah?
 
I pronounce that "Nick"
 
I should totally stick with Nikolaj.
It's pretty unique, and shows mostly me when googling "Nikolaj Mariager" :P
The whole first page of Google is just me. :P
 
@WilliamMindWorXMariager We won't forget you when you finally drop MindWorX. And if you get really popular, people'll learn how to pronounce it.
Like Molyneux
 
i can't pronounce molyneux.
 
We can't pronounce Ohio, don't be a jerk.
:D
 
12:44 AM
to be fair, no one can pronounce Ohio
 
O-hio
or, ou-hai-ou
 
i liked your earlier edits better
 
:p
Slight ohio animosity is to be expected from michigan :p
 
So here's a random question, any of you have any experience with diets/weight loss? :P
 
12:48 AM
i'm insanely thin, so no
 
I've been doing this thing Alton brown suggested and it's been pretty cool. But I'm not an expert. There is, a SE for that though :p
 
I've eaten 57% of the recommended daily calorie intake, and I'm nearing the end of the day so I won't be eating more. :P Dunno if that's a bad thing.
@Noctrine There is?
 
yes
 
I could only find Cooking.SE.
 
12:49 AM
well, there you go, then
 
Ohhh, a beta site. Sexy.
 
I'm thin as a rail naturally
I might need tips for gaining weight :P
 
1:08 AM
Hey guys, is there any decent free screen capturing software out there?
 
for screenshots or video?
video, camstudio is the only one that's free and exists, as far as i know.
for screenshots, there's irfanview that is both free and good
 
Video. Just found and checking out fraps
 
1:29 AM
You changed your gravatar!
No more team pink gravatar! Hah!
 
Hehe, me? I'M EVOLVING!!!
 
@Ohio doesn't evolve, not now, NOT EVER!
 
the free version of fraps is limited to 30 seconds
camstudio doesn't have that limit
 
Yeah, it said it exported as a flash swf though. Does youtube take that?
 
camstudio exports to avi
 
Aaaahh, then definitely grabbing that
Thanks!
 
it's tricky to set it up at first (getting audio to work especially), but it's really the only decent free video recording software out there
at the very least, try it.
 
1:53 AM
Yeah, I'm downloading it right now. Better than nothing and beats 30 seconds
 
it might not actually like directx stuff. i'm not sure.
 
Welp, only one way to find out.
I'll play with it tomorrow. I'm out for the night. Later taters.
 
night
 
 
3 hours later…
4:42 AM
There was a question a few months back or so that talked about using mathematical functions to control behavior in games. I can't seem to find it, anyone know what I'm talking about?
 
You talking D&D?
 
no... it was a fairly broad question as i recall
but i'll give an example of what i'm trying to accomplish
i have a power-up in a game that's drawn as a simple texture. i'd like it to kind of bounce and maybe "throb" every second or so
it would seem appropriate to control its scale and z position with a mathematical function
 
first thing that makes me think of is sin
heh, umm... as in Math.Sin
 
yeah, but i want it to be fairly subtle -- a pure sin function would be really obnoxious
 
Well.. a scaled sine function no?
 
4:46 AM
if you were to graph what i have in mind, the x values would stay mostly flat
 
so, from a scale of 0.9 to 1.1 where the 0.2 difference was determined by a sine function
 
i could draw this on a whiteboard really quickly... :)
one sec
 
k
Google Docs is great for this kind of stuff if you have it
 
something like that
 
ah
so binary
 
4:49 AM
i envision controlling both the scale and z positioning with that (to make it bounce)
well those humps probably look very much like a sin function
but otherwise it's mostly flat
 
yup
if I were to do it (not a math or eng major here), I'd still look at using a sine function, but in combination with a min, so: min(0.7, sin(x))
or something of the sort
 
the humps could be drawn using f(x) = - sin(x) + 1, or something along those lines
ok
so what you've done there is really just take the peaks of the sin function
that sounds appropriate
i think that sounds appropriate, i'll give it a shot.
do you happen to know any general resources on the matter? i'd like to use this sort of technique a lot more, but i could use a good primer
 
alright, let me know how it goes, and yeah, just the tip
 
thanks much :)
 
you asking about the performance of a sine?
or.. docs?
I don't really know much of either, but I wouldn't worry about the performance until there's a performance problem
 
4:54 AM
no, not worried about performance
i just want a good introduction to the theory, i guess
(and i know there was a post on GD:SE a while back that discussed this, i can't seem to find it though)
 
yeah... I don't remember seeing it, sorry
 
5:13 AM
john, that gets me pretty close. i should be able to play with this and get exactly what i'm looking for. thanks a lot!
 
 
3 hours later…
7:53 AM
greetings
 
 
1 hour later…
9:15 AM
0
Q: tags: security vs. anti-cheat

LohorisI've added security to two questions tagged anti-cheat, then I realized there is no clear question which addresses "anti-cheat" without being also more in general related to "security". I'd like us to either produce some guidelines about when to use these tags, or to remove anti-cheat altogether...

 
 
4 hours later…
1:13 PM
Finally someone starting simple. Unfortunately they asked a really bad question - not sure how to encourage that.
1
Q: Developing user interface

Zavaeli am beginner in graphic development and have no experience with it, i only developed always with standard win controls. Now i want to create interface in c# for my sports management simulation game, something like this: some other game What would be the best for this? use some library? whitch c...

 
 
1 hour later…
2:13 PM
@JonathanDickinson oh thanks for this, didnt know about chat room :)
 
well, getting them to the chat is usually a good first step :)
 
2:28 PM
@Zavael welcome - this is where you can ask questions like that (stuff that isn't really specific or might violate the FAQ)
 
 
2 hours later…
user4704
4:36 PM
Geez, the rep requirements to suggest a tag synonym are crazy
 
yeah. all the stuff dealing with tags are pretty high
except creating a tag
 
5:11 PM
oh hey, i guess something did happen with this:
Posted by David Fullerton on February 15th, 2012

A few months ago we had James Portnow of Extra Credits on the podcast.  We’re huge fans of everything that they’re doing over at Extra Credits, so when they asked us to help them write an episode on programming, we jumped at the opportunity.  Here’s the link:

If you’ve never heard of Extra Credits, it’s a weekly show about the video game industry from the perspective of people who actually work in it.  It’s a fascinating look into game craftsmanship — not just how video games are made, but what makes them work, what games do well and not so well, and th …

 
I was surprised by this part: "The episode ended up being a two-parter, because apparently we gave them way too much material to fit into one episode."
 
if they don't at least mention some tiny thing from my answer in meta i will be very sad
 
5:28 PM
Wish they said
GameDev.StackExchange
instead of Stackoverflow :(
 
I was wondering about that, but they also don't specifically say anything about being a game developer
Maybe that will be in part 2?
Was there a similar meta topic on SO?
 
Don't think so
 
I just did a search, and there's none
 
that too. i also kind of wish the blog post had linked to the meta topic, since it wasn't really just stack overflow who did stuff
 
Look at the episode notes
"This week, we discuss the skills it takes to be a great developer (with lots of help from the folks at Stack Exchange)."
Stack Exchange is a link pointing to GD.SE.
 
5:39 PM
ah, cool.
 
heh, interesting
Because "Stack Exchange" is just the generic term for the entire collection of websites, everything from programming to cooking
 
Guess I should check the analytics then and see if it made an impact.
 
@Noctrine Is analytic data posted publicly?
 
I would guess there would be a minimal impact. When people hear "Stack Exchange", they usually think "Stack Overflow", and common', what self-respecting programmer hasn't heard of Stack Overflow? And therefore nobody would click the link.
 
@ClassicThunder no. Though, using Data.StackExchange you can see quite a bit.
 
5:52 PM
You know what's depressing? google.com/search?q=game+development+Q%26A - Area51 site is #2. GD.SE doesn't even feature.
 
yeah wow
 
That sucks
We need more proper incoming links.
Luckily we do alright for questions, not the top link all the time but on the front page. Like Flash Game Development Question
That's a cool one also
 
this is potentially cool: gmo.chronus.com/p/main/about there's apparently a decent amount of mentors who don't have anyone to mentor at the moment
 
6:11 PM
@thedaian Looks interesting. How does it work?
More specifically is a Mentor guaranteed to be an industry professional? And how would a mentor keep track of progress?
The site is a little lacking on details
 
6:27 PM
yeah, it is. i haven't signed up for it or anything, just saw it in a link on google+
there's some FAQ type stuff, but beyond that, i don't know
 
7:01 PM
 
 
2 hours later…
8:35 PM
@tylerrrr07 I love this site so much.
 
 
1 hour later…
9:41 PM
ah, finally got the mess of a LINQ query i was working on to work and everything. i'm happy
 
10:17 PM
@thedaian gotta make sure everything comes from the same context. Once you've got that it's not so bad
 
Interesting. Never heard of LINQ before. Looks just like SQL.
 
Why are all https libraries harder to use then just doing it yourself with sockets :(
 
what is an https library?
 
Secure http connection
So you can send encrypted http data
 
what are you trying to do?
 
10:27 PM
stress test a website
 
:(
in C#?
 
python
 
hmm
wouldn't you just do something like
urlopen('https://foo').read()?
sorry, urlopen
 
@ClassicThunder Because you have to use the HTTP protocol on top of SSL?
 
okay I guess was wrong
 
10:32 PM
@jimmy I have certain headers and parameters I wan't to send over the library isn't putting them together as I would expect
 
Trying to think of the downsides of using bitwise to store the players inventory state in a zelda-like game. Does anyone have anything besides, changing the size of the inventory being a pain compared to just using like json or something?
 
@Noctrine stackability of items
 
how would that work if you need to store more than 1 of each item?
 
Very badly, I was thinking of doing something else for multiples of the same item like collectables, and things that you could run out of. But for the 10-20 items that you'd get in the game that it was only ever possible to have one of it seems as though it would work out alright.
 
also, items that have per-instance attributes. Like, you can't have a +5 Godly Battleaxe of Smashing
unless you wanted that to be a separate bit from normal battleaxes
 
10:41 PM
also, seems like a pain to have 2 systems one for stack-able items and one for non stack-able
 
That is what's making me lean away from it.
Guess a 2D array would be for the best then.
 
why a 2d array?
 
Inventory Position, GUID of the Item in it, and how many you have
 
oh i see, you mean basically an array of tuples
[[sword,1], [rat tails,19]]
 
but inventory expansions are awesome prizes
I shelled out some serious cash for backpack improvements in dragon age
 
10:52 PM
But for Zelda?
 
oh not for zelda
 
$10 DLC for the Longshot
 
lol
 
wow httplib is stupid. It doesn't put a '?' between the url and parameters automatically
 
11:21 PM
One day on a beta site and I have the Quorum badge. Huzzah. :P
 
Which site?
 
bah, here I was being all smart and using the default parameters in C#, but Vector2.Zero is not a compile-time constant apparently
 
Same goes for String.Empty. :( I know it's the same as "", I just think String.Empty feels like the right way.
 
Why aren't they compile-time constant?
 
11:26 PM
yeah, but with a string, "" would work, no?
@Talon876 I have no idea, you'd think it would be
Anyone?
 
"".equals(empty.string) but you cant ==
 
 "" == String.Empty
 
@ClassicThunder I think you're confusing C# with Java
 
That's valid.
However, you should always do:
!String.IsNullOrEmpty(someString);
 
== requires the same memory reference and empty.string is a static variable that = "". Wouldn't var x = "" point to a different location in memory and thus x == "" would be false?
 
or does the compiler know about string.empty and automatically point any variable set to "" to is
 
In C#, there's a string pool, so when two strings contain the same characters, they will refer to the same location in memory
4
Unless you use the StringBuilder
The StringBuilder bypasses the pool
 
I think using .equals is the way to go, but == will sometimes work but you could be adding weird issues that may or may not show up
 
never knew about the shared pool.
that explains some performance issues I encountered on my last project.
 
yeah, a lot of javalanders think that way, but == works just fine for strings that are created properly (normally, or through the string builder and manually added to the intern pool)
I prefer == because it's easier to read too
 
11:36 PM
hey I went from C++ to C# to Java
i c++ you can't do == either
 
I'm always switching between java and C# so it makes it that much more obnoxious
 
yeah... I guess so. I always think of ".Equals" as being a java thing
 
I assume == is faster than equals as you don't have to iterate though the charactors
 
".Equals" is never wrong, so if you're going back and forth and can't remember the rules, that will work
yeah
That's usually not a problem unless you are processing a lot of text
 
I try to maintain efficient habits
 
11:40 PM
Me too, my time is worth more than the CPUs
 
@ClassicThunder what can't you do in c++
 
string a = "hello";
string b = "hello";
if(a == b){ cout << "Yay!"; }
 
that's a valid c++ code;
 
yeah, but it won't print "Yay!"
 
in which compiler?
 
11:47 PM
ok, maybe the compiler would fix that, but what if you read "hello" and "hello" from files?
the == operator is comparing the addresses in C++, a and b would be referring to different addresses because there's no string pool in C++ unless you make one
 
in VC at least it always prins yay
 
the == versus Equals thing really only comes up in C# if you're casting to/from object
 
@JohnMcDonald nope
 
@Gajet You're saying that there's a string pool in C++?
 
no but there is string class!
 
11:50 PM
.. yeah...
 
and that is not just a container for pointer.
even containers may have over over written their operator ==
 
true, so what you're saying is that if(a == b) works, but if((object)a == (object)b) doesn't due to an overloaded == in the string class that will compare the strings character by character?
 
if(string("hello") == string("hello")){ cout << "Yay!"; } is completely different thing from if("hello" == "hello"){ cout << "Yay!"; }
the first one compares them character by character, but the second one is just checking their pointers.
 
you can even write if(string("hello") == "hello"){ cout << "Yay!"; }
 
11:52 PM
also @JohnMcDonald, even in C#, if you read "hello" from files
the references would not be equal
strings aren't automatically interned, just the static ones in your program
 
this will also mean checking character by character, since operator ==(std::string, char*) is not overloaded.
 
@Jimmy yeah, I'm reading up on that
 
so it just looks for most relevant cast, and boom it first casts char* to std::string and then checks if two string values are equal
 
@Jimmy Yeah, what do you know. I was under the impression that all new strings were added to the pool unless you used the string builder
 
that would be surprising behavior. the intern pool is an implementation detail you should never rely on.
like, if all strings were automatically interned, you'd get crazy memory usage just doing ReadLines on a large file
 
11:57 PM
what is intern pool exactly?
 
@Gajet all static strings in a C# program are stuck in a fixed string buffer at compile
 
got it, it was started!
 
Yup, I was assuming that the "==" compared references in the pool, but since that's also false, the two wrongs make a right
 
yeah, the only thing to be aware of is that operators are not virtual
so that is why people got in the habit of doing .Equals like they do in java
because in C# 1.0, containers were untyped
 
operators can not be virtual in c#?
that's some bad news
 
11:59 PM
ok
 
@Gajet why is that bad news?
 

« first day (559 days earlier)      last day (4474 days later) »