« first day (1133 days earlier)      last day (3821 days later) » 

12:00 AM
Oh.
 
user3010322
It used to be a void*, but for typesafety reasons, sometimes its a typedef HWND__ { int dummy; } _HWND, *HWND;
 
user3010322
Mmm, glorious C syntax.
 
For my Level, it... draws itself.
 
nope, no members.
 
user3010322
No members?
 
user3010322
12:00 AM
I thought it had a dummy thingy in there.
 
why would they have any members?
it's an opaque handle.
struct HWND__; more than enough.
 
Now, for this generation screen.
I will have, say, three choices, and I want to draw them.
Should I do a copypaste on the drawing function and reuse it?
 
don't copypaste
 
Well.
Not entirely, but it took me a while to get the offsets working.
Either that, or I need to not make food.
Currently, it makes food A) on construction, B) whenever a snake eats something.
Suggestions?
 
fooooooooooooooooood
 
user3010322
12:04 AM
If it works, why does it matter? :O
 
If what works?
 
er
there is such a thing as, you know, ease of use, quality of code, that kind of thing.
technically, coding everything in assembly would "work".
 
Is this to me?
 
@DeadMG do you know if there is another way of getting mouse clicks? When I cheat to make my borderless window draggable...I don't receive anymore mouse button events :E
 
@Pawnguy7 no, phd.
@melak47 Could try RawInput.
 
user3010322
12:07 AM
@DeadMG @melak47 Second this approach.
 
@DeadMG Oh, I can get button events through that, too?
 
user3010322
You can get everything through RawInput.
 
user3010322
Literally, everything.
 
should be able to receive mouse and keyboard events through RI at least.
@ThePhD Buttsecks?
 
@DeadMG keyboard events seem fine the way they are :3
 
user3010322
12:08 AM
Hot steamy HID buttsex.
 
it's not that kind of interface D:
 
you know
I've gotta admit, it seems odd seeing PhD and Pawnguy in the same chat.
I totally viewed Pawnguy as PhD v2.0
 
user3010322
:D
 
Oh?
 
yeah
 
12:10 AM
While we are admitting things.
 
I mean, you both suck terribly, but you appreciate it more.
 
The only thing I remember about PhD is that they left. I felt like everybody knew something I didn't :\
 
yeah bit before your time
 
user3010322
Lol
 
user3010322
I was here when Pawnguy got here
 
12:12 AM
I also used to think MooingDuck was a regular.
 
user3010322
And the entire time he was doing all of his penis fish
 
Or they were and left, I cannot remember.
 
user3010322
And trees
 
user3010322
and lifghtning
 
@Pawnguy7 He is. Just not frequent.
if he asked a question, I'd answer it.
 
user3010322
12:12 AM
MooingDuck is just more productive than all of us. Plus, recently married, so.
 
probably.
 
@DeadMG did it used to be more frequent?
 
@Pawnguy7 Maybe. I don't really recall.
 
@DeadMG technically you binned him :D
 
only cause I didn't notice :P
 
user3010322
12:14 AM
Oh how I wish compilation was faster.
 
user3010322
OH GOD MORE UNREOLSVED EXTERNAL SYMBOLS @__@
 
lollerskates
 
Does WinAPI have... sound?
 
@Pawnguy7 DeadMG has not been frequent since he stopped eating.
 
From the parts that I have seen, it is useful, and... everything else is terrible. But the else in this case is graphics and such things.
 
12:16 AM
@Pawnguy7 it has Beep :)
 
@ThePhD Oh look - link problems. That's unusual:)
 
@melak47 any more snake pictures?
 
@Pawnguy7 It has an audio API, yes.
 
@Pawnguy7 nope. been asleep all day
 
@Pawnguy7 Try googling "Anaconda".
 
user3010322
12:17 AM
WinMM and XAudio
 
user3010322
Are the 2 sound APIs
 
user3010322
DirectSound is deprecated at this point.
 
@DeadMG I haven't worked on my anaconda for three days - w**k intervened:(
 
I still find it odd I used Xinput without a controller.
But the cool part was.
It worked.
 
@MartinJames Damn you're just desperate to insert any kind of filthy joke.
just go have sex with your wife or something
 
Ell
12:20 AM
Portaudio is a low level sound API you can use
 
I still feel kind of bad after I couldn't create a window :\
 
pretty sure last time I checked, your application had a window.
 
Ell
Why do you feel bad? O.o
 
@DeadMG that would be SFML
 
oh, you mean a native Windows window?
 
12:21 AM
Yes.
Registering it and whatnot.
 
just rip my code.
 
Ell
Just read the docs and keep trying
 
"invalid parameter" when you have 7 parameters, need to register it, AND have the struct, I have no idea what was wrong.
 
Ell
Don't feel bad
 
@Pawnguy7 Just steal my code.
 
12:22 AM
I thought about stealing the SFML code too.
 
ask your predecessor about the wisdom of just ripping DeadMG's code.
 
But at that point, I was tired of it :D
 
he had an unfortunate incident involving Clang
 
Well.
 
and about two months of trying to figure out why his code didn't work
 
12:23 AM
My problem is, I don't know what some of it does.
 
I'll explain it to you, it's not that complex.
 
I thought MSDN explained it too, but I still messed up.
 
the trick is that virtually all of the parameters, you don't have to care about.
 
@DeadMG I think half of them were NULL
My guess is it is in the registration.
 
I think I have about half my parameters being 0.
 
12:24 AM
Not fond of null?
 
Derp. TIL it's stupid to go hunting down the cause of weird D3D object destructions in your application when FRAPS is running and injecting crap into it >_>
 
they're not pointers.
most of them anyway
 
Well.
Yes.
 
honestly I ripped that code from my old D3D application which is like, three years old and barely worked to begin with and the code was really awful.
 
NULL to me says that, though: nothing is there.
If it is 0, I might wonder if it is window position or something.
 
12:26 AM
some of them are window positions.
 
Speaking of which, how is the default window position calculated.
 
Ell
The window manager guesses
 
you pass it in to CreateWindowEx.
also the window manager guesses.
frankly I don't really know or care.
 
What do the Ex functions do, anyway?
Seems to be more... information.
 
user3010322
Pretty much.
 
12:28 AM
I have noticed several of them.
 
they're basically version 2 of that API.
 
user3010322
Can't go breaking the old API of win32
 
there's an ExEx somewhere and rumours of ExExEx have surfaced.
 
user3010322
Because there's code that depends on it
 
user3010322
So you just attach "Ex" to all the functions that need a pick-me-up.
 
12:29 AM
it's poor man's C-style namespacing.
essentially.
 
And the newer ones are to be preferred?
 
yes
 
Oh, also.
How do you turn off unicode :\
Not sure why, but prefixing all the strings with L bugs me.
 
you don't.
 
Oh. I thought you could #undef UNICODE, though that failed.
 
12:31 AM
well
even if you call the ansi versions of the APIs, they just forward to the Unicode versions virtually all of the time.
 
user3010322
Do yourself a favor, prefix those strings with L.
 
or wrap them in delicious TEXT macros
 
yeah but seriously, non-Unicode is bad and you should just get over the whole L"" thing.
 
hi
 
user3010322
Orrr,
 
user3010322
12:33 AM
you can use encoded strings.
 
user3010322
And not have to deal with L at all. <3
 
yeah I already submitted that to the Committee :P
 
user3010322
WideString wstr = regular_string; <333
 
user3010322
@DeadMG Roll your own, the committee has little desire to support localization.
 
Wow you actually used WinAPI for Snake?
 
12:34 AM
No.
 
Not you.
I meant DeadMG.
 
Oh. Then yes.
 
why wouldn't I?
I'm quite familiar enough with that API to achieve what I needed.
 
it's so.. meh.
 
@ThePhD I think I saw an std::locale once.
 
user3010322
12:35 AM
Too bad it's API is shit and it's basically useless.
 
locales are weird
they're not that useless
 
user3010322
Well, they're good for one thing.
 
whenever I learn something new about locales I think they're neat but that's just my opinion.
 
user3010322
std::get_money
 
std::locale is a fucking abomination.
 
12:36 AM
I would probably care more if I was making something people used.
 
should have been put down years ago but nobody got around to it.
 
user3010322
Now we just need a std::fuck_bitches
 
I wonder if I like SFML just because I started with it.
Every time I see a Brush, I feel repulsed, but I cannot say why.
 
I like SFML.
If I feel like it I'll make a Snake clone too
 
Compared to what I have seen, I do too.
Still, people say that for many things.
Say, SDL.
Or, say.
You might always be fond of your first language.
 
12:41 AM
My first language was TI-BASIC.
It's utter crap but I enjoy its novelty
 
augh, this whole thing is a huge mess. and I don't know where to start fixing :E
 
Washing machine.
 
I'd have to print out the code first to wash it :p
 
Toaster
 
anybody know wtf is a generic error device busy on 16 on a unique_lock<mutex>? Should fucking be busy because I inserted mutex there...
 
12:47 AM
@DeadMG @ThePhD anybody feel like looking at the mess I made and telling me where it sucks the worst? :D
 
What is this mess part of?
 
@melak47 probably needs more comments.
 
@melak47 not currently
 
@DeadMG I'll send you a picture of a piece of cake?
 
@Mikhail No clue. The only errors I've ever had on mutex is when I forgot to create it.
 
I want to scroll down to read the rest, but it isn't there :\
 
@Rapptz That would just crack me up.
 

« first day (1133 days earlier)      last day (3821 days later) »