• What are you working on? v16
    5,004 replies, posted
Is the Lugaru code any good for learning from? I remember reading it was a huge hackfest but i wish to learn from a 3rd person game like it Any other open source games you could recommend?
[QUOTE=SamPerson123;28500606]Oh man, I keep making different maze solving algorithms and they all have different strengths. One of them is king of perfect mazes and solves them like greased lightning. Another is best at non-perfect mazes with long and few solutions, and the last one is best for non-perfect mazes with short and plentiful solutions. They all pretty much suck at what they're bad at, but they excel in the right kind of maze. And to think I thought I was done with mazes.[/QUOTE] I this has gone from a computer science project to an unhealthy obsession with mazes. Please recline on this couch while I fetch my psychiatrist wig.
[QUOTE=Richy19;28501250]Is the Lugaru code any good for learning from? I remember reading it was a huge hackfest but i wish to learn from a 3rd person game like it Any other open source games you could recommend?[/QUOTE] Yeah, sure, it's a good enough resource. [url]http://code.google.com/p/lugaru/source/browse/Source/GameDraw.cpp[/url] [cpp] ... //Make Shadow static XYZ point; static float size,opacity,rotation; rotation=0; for(k=0;k<numplayers;k++){ if(!player[k].skeleton.free&&player[k].playerdetail&&player[k].howactive<typesleeping) if(frustum.SphereInFrustum(player[k].coords.x,player[k].coords.y+player[k].scale*3,player[k].coords.z,player[k].scale*7)&&player[k].occluded<25) for(i=0;i<player[k].skeleton.num_joints;i++){ if(player[k].skeleton.joints[i].label==leftknee||player[k].skeleton.joints[i].label==rightknee||player[k].skeleton.joints[i].label==groin){ point=DoRotation(player[k].skeleton.joints[i].position,0,player[k].rotation,0)*player[k].scale+player[k].coords; size=.4f; opacity=.4-player[k].skeleton.joints[i].position.y*player[k].scale/5-(player[k].coords.y-terrain.getHeight(player[k].coords.x,player[k].coords.z))/10; if(k!=0&&tutoriallevel==1){ opacity=.2+.2*sin(smoketex*6+i)-player[k].skeleton.joints[i].position.y*player[k].scale/5-(player[k].coords.y-terrain.getHeight(player[k].coords.x,player[k].coords.z))/10; } terrain.MakeDecal(shadowdecal,point,size,opacity,rotation); if(terrain.patchobjectnum[player[k].whichpatchx][player[k].whichpatchz]) for(l=0;l<terrain.patchobjectnum[player[k].whichpatchx][player[k].whichpatchz];l++){ j=terrain.patchobjects[player[k].whichpatchx][player[k].whichpatchz][l]; if(objects.position[j].y<player[k].coords.y||objects.type[j]==tunneltype||objects.type[j]==weirdtype){ point=DoRotation(DoRotation(player[k].skeleton.joints[i].position,0,player[k].rotation,0)*player[k].scale+player[k].coords-objects.position[j],0,-objects.rotation[j],0); size=.4f; opacity=.4f; if(k!=0&&tutoriallevel==1){ opacity=.2+.2*sin(smoketex*6+i); } objects.model[j].MakeDecal(shadowdecal,&point,&size,&opacity,&rotation); } } } } ... [/cpp] :gonk:
Whats hard to understand about that? Edit: Changed the framebuffer and got some sort of implementation of SMPEG. [url]https://github.com/mtwilliams/db-love/commit/9d9ec2f3886d2f3797790e84846eda74bdd9d4c7[/url]
[QUOTE=yakahughes;28501508]I this has gone from a computer science project to an unhealthy obsession with mazes. Please recline on this couch while I fetch my psychiatrist wig.[/QUOTE] Okay, the second algorithm I mentioned is now totally obsolete, now that I have reduced execution time on the third by about 95% with some simple optimizations that I didn't notice before. It runs just as well on either type of non-perfect maze. It's so beautiful. The birth of my firstborn child was NOTHING compared to this. I am crying tears of joy. Truly, no words could even begin to express this ecstasy.
I think either my sprite system is messed up, C# can't do maths, or I'm insane. I'm trying to make an item's sprite show up next to it's name in a menu. Using the same method of positioning each time, supposedly takes the position of the menu and offsets it to get the image to the right spot. So far, it ends up in a random place on the screen each build :downsgun:
[QUOTE=Overv;28500241]I'm going to play around with picture comparing tomorrow, see if I can write a script that recognises late content in LMAO pictures using a database. If it works, I could make a user script that automatically rates those posts late and hides them.[/QUOTE] Someone did this thing for the minecraft section that showed you artistic pictures based on ratings. People will started posting dicks and everyone rated it artistic.
I'll probably take a look into my portal test thing, which I somehow broke in the past, and quickly fixed now. I think I have some better ideas now how to do it properly after understanding rendering, stencil buffers, render targets etc. a little better, here's the "fixed" version right now, just to show you the concept I mean. Note that only the first portal is rendered right now. [HD]http://www.youtube.com/watch?v=wyKvprV6Nuo[/HD]
Working on my first ever project in C#, a window handler. The trigger button currently maximizes the hooked window, I will add more features later. [img]http://imgur.com/oINI3.png[/img]
[QUOTE=Shanethe13;28496265]Hooray: just got my mark back for the Canadian Computing Contest, and I nearly got perfect. Now to compete to be on the Canadian Computer Science team in a few months. Did anyone else write the contest? How'd you do? I saw a Cyril post last page, is that the same Cyril who completely dominates every programming contest I've ever competed in?[/QUOTE] Does that have anything to do with the IOI at all? [editline]9th March 2011[/editline] [QUOTE=high;28498130]var num = new int(5);[/QUOTE] You've got to be kidding.
Took a sick day after falling ill last night, and took a day off from development. Ended up installing Ubuntu on my laptop because I've wanted to learn a bit about Linux for a while now but couldn't be bothered to deal with dual booting and all that mess. I've installed Code::Blocks and started messing with wxWidgets, which I'm really liking! I'm going to try using wxWidgets on Windows so I can start making something more than just SFML games and console windows. I'll be able to make data generators and things like that, so I'm pretty excited :buddy: Also, Ubuntu is nice, but I should find a guide, I'm really just surviving via tutorials :v:.
[QUOTE=Kopimi;28504743]Took a sick day after falling ill last night, and took a day off from development. Ended up installing Ubuntu on my laptop because I've wanted to learn a bit about Linux for a while now but couldn't be bothered to deal with dual booting and all that mess. I've installed Code::Blocks and started messing with wxWidgets, which I'm really liking! I'm going to try using wxWidgets on Windows so I can start making something more than just SFML games and console windows. I'll be able to make data generators and things like that, so I'm pretty excited :buddy: Also, Ubuntu is nice, but I should find a guide, I'm really just surviving via tutorials :v:.[/QUOTE] [i]man[/i] is your friend. [editline]8th March 2011[/editline] also, note that [i]less[/i] is more than [i]more[/i]
And also make yourself a update script and run it everyday. Something like [code] sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y [/code] apt-get is your installing software friend and -y makes it automatically answering yes to any question, this will not break your system. sudo is needed my apt-get to pull you to superuser, it will ask you for your password.
[QUOTE=Vbits;28504925]And also make yourself a update script and run it everyday. Something like [code] sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y [/code] apt-get is your installing software friend and -y makes it automatically answering yes to any question, this will not break your system. sudo is needed my apt-get to pull you to superuser, it will ask you for your password.[/QUOTE] Wouldnt some upgrades require a reboot?
Yes they would but the reboot is not automatic, your power icon in the upper conner will turn a different color to show the need to reboot. Otherwise the system will be uneffected.
[QUOTE=Vbits;28505165]Yes they would but the reboot is not automatic, your power icon in the upper conner will turn a different color to show the need to reboot. Otherwise the system will be uneffected.[/QUOTE] What if the kernel is updated?
[QUOTE=Vbits;28505165]Yes they would but the reboot is not automatic, your power icon in the upper conner will turn a different color to show the need to reboot. Otherwise the system will be uneffected.[/QUOTE] What if the kernel is updated?
aMAZEing. Edit: I'm a page late. Fuck you all, I'm out of here.
[QUOTE=kraffslol;28505230]What if the kernel is updated?[/QUOTE] The new kernel will be loaded on next startup, the old kernel does not go away, it is just not booted into, you can see all of them in /boot/.
[QUOTE=Vbits;28505271]The new kernel will be loaded on next startup, the old kernel does not go away, it is just not booted into, you can see all of them in /boot/.[/QUOTE] Okay :>
[QUOTE=MedicWine;28502392]Someone did this thing for the minecraft section that showed you artistic pictures based on ratings. People will started posting dicks and everyone rated it artistic.[/QUOTE] It won't be based on late ratings, it will make the user automatically rate a skipped post late for people who don't have the user script.
Cloud Sixteen are working on a game called [url=http://sidelined.cloudsixteen.com]Sidelined[/url] and I've just been spending a load of time binding stuff to Lua. I've uploaded a .rar file where you can check out the Lua side of stuff, obviously I don't really want to upload the source. I've also written some docs in lua/docs/ so you can play around with it a little. [url]http://kurozael.com/distro.rar[/url] [editline]9th March 2011[/editline] Probably gonna implement Box2D this weekend for physics.
[QUOTE=Overv;28499382]Something like Todo Freely would work best, I think. [img_thumb]http://images.overvprojects.nl/Todo_Freely-2011-03-09_00.46.23.png[/img_thumb][/QUOTE] I keep getting an error when I start Todo Freely. Something about date/time not going into a string and then it doesn't load my tasks. Know any decent alternatives?
[QUOTE=VoiDeD;28501616]Yeah, sure, it's a good enough resource. [url]http://code.google.com/p/lugaru/source/browse/Source/GameDraw.cpp[/url] [cpp] ... //Make Shadow static XYZ point; static float size,opacity,rotation; rotation=0; for(k=0;k<numplayers;k++){ if(!player[k].skeleton.free&&player[k].playerdetail&&player[k].howactive<typesleeping) if(frustum.SphereInFrustum(player[k].coords.x,player[k].coords.y+player[k].scale*3,player[k].coords.z,player[k].scale*7)&&player[k].occluded<25) for(i=0;i<player[k].skeleton.num_joints;i++){ if(player[k].skeleton.joints[i].label==leftknee||player[k].skeleton.joints[i].label==rightknee||player[k].skeleton.joints[i].label==groin){ point=DoRotation(player[k].skeleton.joints[i].position,0,player[k].rotation,0)*player[k].scale+player[k].coords; size=.4f; opacity=.4-player[k].skeleton.joints[i].position.y*player[k].scale/5-(player[k].coords.y-terrain.getHeight(player[k].coords.x,player[k].coords.z))/10; if(k!=0&&tutoriallevel==1){ opacity=.2+.2*sin(smoketex*6+i)-player[k].skeleton.joints[i].position.y*player[k].scale/5-(player[k].coords.y-terrain.getHeight(player[k].coords.x,player[k].coords.z))/10; } terrain.MakeDecal(shadowdecal,point,size,opacity,rotation); if(terrain.patchobjectnum[player[k].whichpatchx][player[k].whichpatchz]) for(l=0;l<terrain.patchobjectnum[player[k].whichpatchx][player[k].whichpatchz];l++){ j=terrain.patchobjects[player[k].whichpatchx][player[k].whichpatchz][l]; if(objects.position[j].y<player[k].coords.y||objects.type[j]==tunneltype||objects.type[j]==weirdtype){ point=DoRotation(DoRotation(player[k].skeleton.joints[i].position,0,player[k].rotation,0)*player[k].scale+player[k].coords-objects.position[j],0,-objects.rotation[j],0); size=.4f; opacity=.4f; if(k!=0&&tutoriallevel==1){ opacity=.2+.2*sin(smoketex*6+i); } objects.model[j].MakeDecal(shadowdecal,&point,&size,&opacity,&rotation); } } } } ... [/cpp] :gonk:[/QUOTE] The rest of the code is horrible too. There's no game states, he's just using variables to check if the game is in the main menu or loading or in game :v:
Speaking of horrible code, I just ran my C# syntax highlighter through itself. The resulting HTML (and thus the source code) is here, if anyone's interested: [url]https://docs.google.com/leaf?id=0B6GoPQu-x44xMmQ2ZjQzMDctNmJlMS00ODM4LTkxNzItNDE4MmVjNzkyZWI2&hl=en[/url] It seems that if the doc gets stuck loading on Opera (appearing incomplete) but the solution to that is to just stop loading it. It's such a mess that I can't know whether it even works. Worked well enough for me though. [img]http://img852.imageshack.us/img852/4186/csyntax2.png[/img]
I can compare two images pretty well at the moment using the [url=http://stackoverflow.com/questions/843972/image-comparison-fast-algorithm]histogram method[/url], but it's too expensive to compare one image with potentially hundreds of images this way. Maybe I can store the histogram efficiently enough for a fast MySQL lookup. [img]http://images.overvprojects.nl/SS-2011-03-09_16.56.23.png[/img] I'll also need to write an exception for motivators and reaction images.
I just released the first version of my Json parser: [url]http://code.google.com/p/jzon/[/url].
[QUOTE=s0ul0r;28502839]I'll probably take a look into my portal test thing, which I somehow broke in the past, and quickly fixed now. I think I have some better ideas now how to do it properly after understanding rendering, stencil buffers, render targets etc. a little better, here's the "fixed" version right now, just to show you the concept I mean. Note that only the first portal is rendered right now. [HD]http://www.youtube.com/watch?v=wyKvprV6Nuo[/HD][/QUOTE] :O how is it were only just seing this ?
[QUOTE=Richy19;28509717]:O how is it were only just seing this ?[/QUOTE] He's posted it before, in a WAYWO long, long ago.
[QUOTE=MedicWine;28502392]Someone did this thing for the minecraft section that showed you artistic pictures based on ratings. People will started posting dicks and everyone rated it artistic.[/QUOTE] Hey, I'm the guy who wrote that little program. Although what you say is true, there isn't really an advantage to screwing with the ratings (it screws more with the flow of the thread than my program -- consider the hundreds of pictures that were posted in the Minecraft thread). Because of this, I didn't add any sanity checks on ratings for a particular post, but doing so would be trivial. [editline]1[/editline] Oh wow there goes my postcount.
Sorry, you need to Log In to post a reply to this thread.