Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - alway

Pages: 1 ... 405 406 [407] 408 409 ... 474
6091
Awesome, thanks!

6092
Just came across a weird bug in my direct input code. In both my book and a sample tutorial from the documentation in VC++ '08 it says to use the following when checking for a keypress.
Code: [Select]
bool DirectInput::keyDown(char key)
{
    return (mKeyboardState[key] & 0x80) !=0;
}
This then gives me a compiler warning (c4309, variable truncation) for large DIK values (for example, DIK_LEFT = 0xCD = 205), and for said values it will not give correct readings on whether the key is pressed. Reading the book a bit more about it said the 'key' variable is basicly just an index, so I used an unsigned int key rather than the char key, and it worked just fine.
So my questions are thus:
1. Why use char rather than an unsigned int for this?
2. What would cause this error?
3. And most importantly, will anything explode at a later date for using an unsigned int rather than char?

6093
General Discussion / Re: There's a Hole in the Bottom of the Sea
« on: June 19, 2010, 12:06:51 am »
http://www.guardian.co.uk/world/picture/2010/jun/14/bp-oil-spill-oil-spills#zoomed-picture
Oh dear. I don't think the ocean is supposed to look like a Chihuly glass exibit...

6094
General Discussion / Re: Homeowners CAN be sued by burglars
« on: June 18, 2010, 10:31:57 pm »
So if I had a Danger! High Voltage! sign on the stairs leading up to my house and then pumped near lethal voltage through the metal safety rail.....
That would be a mess any time a bird or squirrel landed...

6095
Did you get half way through plucking that one and putting it in the oven, only to realize it wasn't the chicken you bought at the grocery? Because that is a really naked bird.
What. WHARTTDS? This definitely already happened. You said this already. A while ago. WHAT.
Ah, that happens alot.  :-\ I have a tendancy of forgetting what I wrote after about 2 days.

6096
General Discussion / Re: The Metal Thread
« on: June 18, 2010, 07:57:09 pm »

In other news, since we had Viking metal and Pirate metal posted already, I went looking for Ninja metal:
http://www.youtube.com/watch?v=K5-bmJDlIsg&feature=related
I couldn't get past the second line of that without cringing and turning it off at the horrible, horrible voice. It didn't sound ninja-y at all... You would need some strange oriental version of an electric guitar to pull off ninja metal.

6097
Did you get half way through plucking that one and putting it in the oven, only to realize it wasn't the chicken you bought at the grocery? Because that is a really naked bird.

6098
Other Games / Re: Company of Heroes
« on: June 18, 2010, 04:36:14 pm »
There was a map I found way back where one side had OMGWTFBBQ defenses built into the map, with the other side playing as the offensive team. It also came with a game mode which IIRC made the player the defender and the attackers constantly got stronger, to the point where even said uber defenses would not save you. I remember a match of that going for several hours as the german tanks drove in, were destroyed by my full supply worth of artillery, and more just kept coming. There was probably no more than a 2 second gap between various types of artillery barrages. Now that was pretty.  :D

6099
Creative Projects / Re: +The Engravers Guild+
« on: June 18, 2010, 01:18:04 pm »
That's 260 million pixels! No wonder it goes slow, if that's 32 bit (4 bytes) format, that would be around 1 gig of memory for one image.

6100
Other Games / Re: Portal 2
« on: June 18, 2010, 09:20:22 am »

6101
General Discussion / Re: There's a Hole in the Bottom of the Sea
« on: June 17, 2010, 10:00:50 pm »
How hard does one have to work to get oil off their skin?
However hard it is to use a grinder.

6102
General Discussion / Re: There's a Hole in the Bottom of the Sea
« on: June 17, 2010, 08:09:46 pm »
What if some dick in good old America decided to go "DERP LETS SET IT ON FIRE" And threw a match out into the oil thingy, thus igniting the entire thing. Because of him alone.

Heh, makes you think how much pow-ar we hold. Then again the smoke from the oil burning would be fuckhuge. No, not fuckhuge, fuckfuckfuckshitcockhhuge.
Meh, been done. http://www.scientificamerican.com/blog/post.cfm?id=a-vortex-of-fire-erupts-at-the-oil-2010-06-16

6103
General Discussion / Re: There's a Hole in the Bottom of the Sea
« on: June 17, 2010, 07:01:54 pm »
Is it evil of me to giggle with glee every day their stock goes down?  :D
Also, they are now #4. http://en.wikipedia.org/wiki/Largest_oil_spills#Largest_oil_spills

6104
5 weeks out here. :P

6105
General Discussion / Re: Laptop Charger Bent
« on: June 17, 2010, 06:52:24 pm »
1. Stick the cable into the laptop.
2. Apply duct tape
3. Watch as the charging continues.
4. Celebrate your new desktop computer!

1. Find trailer park
2. Drive around until someone throws out a computer
3. Grab
4. Install new HD
5. Celebrate your new desktop computer (which smells like a burning tobacco field).

1. Find trailer park
2. Drive around until someone throws out a computer
3. Grab
4. Take to geeksquad and get them to make it work
5. Steal the data stored on the hard drive
6. Sell data and/or blackmail original owners
7. Buy a brand new, $2000 laptop. With $1000 left over for extra chargers.
8. Invest $10000 of savings in BP stock so as to satisfy karma

Pages: 1 ... 405 406 [407] 408 409 ... 474