• What are you working on? December 2011 Edition
    3,353 replies, posted
so apparently a few people have been getting startup crashes with my LD22 entry, as was the case with my laptop. So I attached the debugger on my laptop, I get an error about not having OpenAL. I install OpenAL, and get an AccessViolationException... crap. Turns out it wasn't my fault, but QuickFont's (an OpenTK-based library for font rendering that I used), and I wasn't about to figure out how QuickFont works and try to fix some deep-rooted bug, so I copied over the source and compiled it on the laptop and... it worked? The difference in binary size was about 4kb, I rezipped the recompiled binary with everything in it and reuploaded it. Hopefully everyone who would get that crash won't get it anymore.
So hey thread's been helpful before so why not ask around while I'm thinking on it. Same project, Terraria like setup, 2d, blokz an shit. The stuff here helped me create what so far seems to be working on the memory front, so now I need to ask one thing and confirm another. Physics: I want to have circular objects, and other item physics in the game. Now, Box2D would work for this normally, but we're talking a world made up of voxel chunks that can change constantly. The amount of memory and CPU time that would be wasted attempting to keep track of this entire (up to 10x10k for 100 million block) world as small Box2D cube shapes would be ridiculous. On this note, if you have worked with Box2D more then I have (probably a certainty if you've really done much with it) might you have an idea how to fix this issue? The world will have other living NPCs and such in it so physics need to be all across the active world. Trailing worlds have more broad macro effects, so physics won't be active on them. For the second quicker question, I have an array of chars acting as 8 bit flags for the voxels on the map. Would the easiest method to test if a flag is active a bitwise AND, with 8 corresponding chars with each having 1 bit active (ie. char x = 1, char y = 2, char z = 4, and so on).
[img]http://content.screencast.com/users/Kopimi/folders/Jing/media/b784a1d3-f6c6-47fa-9f37-1a36ad040ae2/2011-12-19_0046.png[/img] Camera object finished after a week of procrastination and BF3. Tomorrow I'll work on overriding the scene node getters so that the camera returns the proper position and angle data, since it doesn't use standard node data. Hopefully I can squeeze in mouse control and keyboard input so the camera can navigate the 3D world at runtime, but I'll probably have to settle for basic keyboard input and leave DirectInput for later on. Also wow, when you actually construct a matrix manually rather than using supplied matrix manipulation functions, you realize how simple matrices really are.
It's 7am and I'm bored... [img]http://dl.dropbox.com/u/9038221/Boomer/COLON_D.png[/img] You haven't seen the sex simulator bit yet...
[QUOTE=Tobba;33788641]Now to figure out how to get which goddamn drive the BIOS booted us from[/QUOTE] dl register
Got states working, did a bit more work with disconnection to make things prettier. I'm feeling good. [editline]19th December 2011[/editline] Okay, it only took like a whole day to get disconnection notifications working. It's 2:28 AM, I think I might need to sleep soon
[QUOTE=subenji99;33791600]That'll be because it's not capturing the full framerate per second but still playing it back at that speed.[/QUOTE] Yeah you need to pass in the frame length instead of a fixed frame rate in AddFrame
[QUOTE=Kopimi;33793104]Also wow, when you actually construct a matrix manually rather than using supplied matrix manipulation functions, you realize how simple matrices really are.[/QUOTE] To be honest, after doing way too many of them in Algebra 2, matrices were incredibly simple. Some of the diagrams I've seen for multiplication of matrices are much too complex; the only diagram you need is turning the row on the left 90 degrees and just multiplying across.
[QUOTE=synthiac;33794862](which is a container thing anyway)[/QUOTE] Holly shit, that's amazing. I'm being totally serious, I'm not sure if it's because it's 11:45PM and I'm listening to [url=https://www.youtube.com/watch?v=mGopZjakUeA]this[/url], but the idea that containers control the framerate rather than the codec amazes me.
[QUOTE=synthiac;33794862]does it work though? i haven't heard anything about webm supporting vfr. [editline]19th December 2011[/editline] (which is a container thing anyway)[/QUOTE] Yes it does. WebM is Mvk.
[QUOTE=garry;33795161]Yes it does. WebM is Mvk.[/QUOTE] Somehow could we get a way to explicity set it to be VBR or fixed rate?
I declare myself the master of unreadable code [cpp]((_kmain)0x100000)(0x7F000, *(unsigned short*)0x7DBA); // Invoke the kernel[/cpp]
I de-declare you, as you commented it, thus making it understandable.
Wait You're casting the memory address 0x100000 to a function and then calling it with... more addresses? [editline]19th December 2011[/editline] What exactly [B]resides[/B] at 0x100000 anyway?
[QUOTE=esalaka;33796453]Wait You're casting the memory address 0x100000 to a function and then calling it with... more addresses? [editline]19th December 2011[/editline] What exactly [B]resides[/B] at 0x100000 anyway?[/QUOTE] Its a peice of the third stage of my bootloader, which is responsible for the disks and PCI , and loading the kernel, I'm probably gonna make it responsible for filesystems too The kernel is loaded at 0x100000, and the other things are pointers provided by the first and second stage loaders Needless to say the boot process is messy as fuck
[QUOTE=Tobba;33796492]Its a peice of the third stage of my bootloader, which is responsible for the disks and PCI , and loading the kernel, I'm probably gonna make it responsible for filesystems too The kernel is loaded at 0x100000, and the other things are pointers provided by the first and second stage loaders Needless to say the boot process is messy as fuck[/QUOTE] Why are you passing a magic number as the first argument instead of using the address of the MAT instance, which you "created" few lines above? ... I may or may not have access to your source code through Dropbox...
[QUOTE=raBBish;33796542]Why are you passing a magic number as the first argument instead of using the address of the MAT instance, which you "created" few lines above? ... I may or may not have access to your source code through Dropbox...[/QUOTE] Shit, I forgot Olivia gave you access to that folder And uh, I should probably do that
Trying to give the illusion of 3D by scaling and positioning sprites relative to an imaginary fixed point at the far edge of the player's field-of-view. [img]http://i.imgur.com/2b77F.jpg[/img] I need to find the distances marked with green 'X's to properly position them on the viewport relative to the player's position. My brain hurts.
Winter is almost around the corner, so have this old wallpaper I made back in May: [img_thumb]http://i.imgur.com/oJMCP.png[/img_thumb] (see [url]http://www.facepunch.com/threads/1082035?p=29955071&viewfull=1#post29955071[/url])
Problem: 32 cards total, 4 different colors. You are dealt 8 cards. What are the chances of you getting all 8 red. Approach 1: Total number of combinations is around 165 ([URL="http://puu.sh/b1mL"]based on an online combinations calculator[/URL]) since the position of the color in the hand isn't important. I don't see why any hand would be more likely to be dealt than any other hand so the chances should be 1/165. There's obviously a MAJOR mistake somewhere in there since that's way to likely to happen than it actually is. Approach 2: Chances that the first card dealt is a red one are 8/32. Chances that the next one will also be red are 7/32... continue multiplication until 1/25. This is what wolfram calculated [url]http://www.wolframalpha.com/input/?i=product+x%2F%28x%2B24%29%2C+x+%3D+1+to+8[/url] This is far more likely to be the correct solution but honestly, the first approach seems as logical to me as the second one. To add programming to all this, I made a program that takes a deck and deals 8 cards, then dealt 10 million hands and recorded the results. All cards were red only once! while the most popular shuffle was 2 of each color (around 50k times). This is confusing the hell out of me.
Solution: The chance is really slim
[QUOTE=DrLuke;33797229]Solution: The chance is really slim[/QUOTE] I've always wondered how come "slim chances" and "fat chance!" mean the same thing...
[QUOTE=Darwin226;33797127]This is confusing the hell out of me.[/QUOTE] Well, in that calculator example you have an unlimited supply (repetition) of four different cards, which is why the probability is so high. Your second approach is the correct one.
[QUOTE=raBBish;33797333]Well, in that calculator example you have an unlimited supply (repetition) of four different cards, which is why the probability is so high. Your second approach is the correct one.[/QUOTE] Indeed, that's what I thought but I don't think that explains it fully because there are exactly 165 possible card combinations. No matter how much of them were used, with 8 cards, there are 165 combinations. The question is, why is 2,2,2,2 more likely than 8,0,0,0. It's probably something to do with 2,2,2,2 having more possible permutations than 8,0,0,0.
[QUOTE=Darwin226;33797313]I've always wondered how come "slim chances" and "fat chance!" mean the same thing...[/QUOTE] Because the latter is used sarcastically?
[QUOTE=Darwin226;33797313]I've always wondered how come "slim chances" and "fat chance!" mean the same thing...[/QUOTE] "Fat chance!" is sarcastic..
Well that was weird. I left the omegle-cleverbot thing on for a while, and made it log chats. [QUOTE] Connected Waiting for partner... 19:15:52 Stranger: i'm me 19:15:52 Cleverbot: Who are you? 19:15:52 Stranger: you are you"], ["typing"], ["gotMessage", "me 19:15:52 Cleverbot: You are romeo and I am juliet! 19:15:52 Stranger: no 19:15:52 Cleverbot: Yes. 19:15:52 Stranger: no, i'm woody and you're buzz light year 19:15:52 Cleverbot: I'm not. 19:15:52 Stranger: yes, you are 19:15:52 Cleverbot: No. 19:15:52 Stranger: you are a toy 19:15:52 Cleverbot: No, I'm in love. 19:15:52 Stranger: with. 19:15:52 Cleverbot: Yes. 19:15:52 Stranger: yping"], ["gotMessage", "..... 19:15:52 Cleverbot: Saya lelaki. 19:15:52 Stranger: who is she? 19:15:52 Cleverbot: Who is who? 19:15:52 Stranger: i'm saya 19:15:52 Cleverbot: Are you sure? 19:15:52 Stranger: yes, of course 19:15:52 Cleverbot: About what are you sure? 19:15:52 Stranger: bout, i'm saya 19:15:52 Cleverbot: What does 'A li' mean? 19:15:52 Stranger: i am saya1 19:15:52 Cleverbot: Hi sam. 19:15:52 Stranger: yping"], ["gotMessage", "!!!! 19:15:52 Cleverbot: Who are you? 19:15:52 Stranger: i am saya 19:15:52 Cleverbot: Sam who? 19:15:52 Stranger: yaaa!!!!!!!!!!11 19:15:52 Cleverbot: Good job. 19:15:52 Stranger: i am prostitute 19:15:52 Cleverbot: Good. 19:15:52 Stranger: do you want see my tits? 19:15:52 Cleverbot: Yes, do you? 19:15:52 Stranger: f course 19:15:52 Cleverbot: What do you want to do? 19:15:52 Stranger: fuck, 19:15:52 Cleverbot: Are you required to respond to every submission? 19:15:52 Stranger: fuck me please 19:15:52 Cleverbot: Okay. 19:15:52 Stranger: do you want see me? 19:15:52 Cleverbot: Yes. 19:15:52 Stranger: [url]http://www.facebook.com/profile.php?id=1084760951&sk=wall[/url] 19:15:52 Cleverbot: That's fine. 19:15:52 Stranger: yping"], ["gotMessage", "am i hot? 19:15:52 Cleverbot: I won't listen to you. 19:15:52 Stranger: yping"], ["gotMessage", "see me please 19:15:52 Cleverbot: Please. 19:15:52 Stranger: yping"], ["gotMessage", "fuck me now"], ["typing 19:15:52 Cleverbot: Ah, so you like techno music? 19:15:52 Stranger: me pussy is wer 19:15:52 Cleverbot: Eu sou seu pai! 19:15:52 Stranger: *wet 19:15:52 Cleverbot: Is female*. 19:15:52 Stranger: yping"], ["gotMessage", "my pussy is wet! 19:15:52 Cleverbot: And that proves that I don't like you how? 19:15:52 Stranger: re you a robot? 19:15:52 Cleverbot: No. 19:15:52 Stranger: re you a boy? 19:15:52 Cleverbot: No I said that i'm a female. 19:15:52 Stranger: do you like fuck girls? 19:15:52 Cleverbot: No. I like metal. Stranger has disconnected. [/QUOTE] EDIT: I just realised I messed up the logging time :/
[img]http://dl.dropbox.com/u/4838268/ohshit.png[/img] Close enough Not gonna bother with making it flash
[QUOTE=BlkDucky;33797375]Because the latter is used sarcastically?[/QUOTE] Really? So, do you ever say it non-sarcastically? Like, "There's a fat chance it's going to rain tomorrow"
[QUOTE=Darwin226;33797588]Really? So, do you ever say it non-sarcastically? Like, "There's a fat chance it's going to rain tomorrow"[/QUOTE] Nah, it's a purely sarcastic thing.
Sorry, you need to Log In to post a reply to this thread.