28 Results
The more I think about it, the more it appears that a "balance" is not achievable. I keep thinking of a group of players that build a 1,000 tile underground aqueduct expecting water to come gushing out the other end. Then I ask, what if someone decides to block it half-way? Th...
Night-Eagle Programming Reply
Deciding on a water simulation algorithm. I have a multiplayer online game where players build a settlement to harvest the land's natural resources to export goods while defending against seasonal attacks. I can either make the game world on the same scale as Minecraft with ...
Night-Eagle Programming Reply
Was going to post this in "Make a simple program as complicated as you can!" but then I realized I'd need to remove input to be legit. [url=http://eagle.undo.it:8083/img/kintel_21.png][img]http://eagle.undo.it:8083/img/kintel_21_rs.jpg[/img] [i]Click to view full size png[/i...
Night-Eagle Programming Reply
[code] using namespace std; string getEncryptedString(string unencrypted) { // found algorithm on renowned programmer's website // guaranteed to be unbreakable return FlipIt(ReverseIt(unencrypted)); } [/code] Did they seriously not hash and salt use...
Night-Eagle Polidicks Reply
Actually, since moving mirrors is instantaneous, there is potential for an infinite loop by moving a fourth mirror in front of a laser emitter to create a loop. It just depends on the implementation - but more than likely, his implementation will just result in no laser.
Night-Eagle Programming Reply
I have a separate VBO for every 8x8x128 voxels. I build them every time a change is made (dig block, place block). I use a triangle strip and render with glMultiDrawArrays(GL_TRIANGLE_STRIP, vaoFirst, vaoCount, vaoPrims); Oh, I also only build faces that are not adjacent to ot...
Night-Eagle Programming Reply
Just about finished tracelines. Got digging working pretty easily, and regenerating the mesh happens very quickly. [url=http://eagle.undo.it:8083/img/kintel_20.png][img]http://eagle.undo.it:8083/img/kintel_20_th.png[/img] [i]Click to view uncropped[/i][/url] The traceline algo...
Night-Eagle Programming Reply
This is the first time I've found a real, legitimate occasion to use C++'s switch without breaks/returns in a case in order to flow into the next case for execution. I don't know if there is a faster way to do this, but if anyone wants an algorithm for tracelines on voxels, h...
Night-Eagle Programming Reply
[QUOTE=Darwin226;29401948]Ok it's bugging me now. What are those things at the bottom?[/QUOTE] Factoid: It is actually partially transparent and covers the entire screen. Verbosity aside: A little debugging aid. From left to right: green thing - deallocated texture space (cons...
Night-Eagle Programming Reply
[QUOTE=BlkDucky;29401373]Not sure why it's such a big deal.[/QUOTE] Are you saying you prefer [code] public boolean renderBlockByRenderType(Block block, int i, int j, int k) { int l = block.getRenderType(); block.setBlockBoundsBasedOnState(blockAcce...
Night-Eagle Programming Reply
I wonder why he just doesn't put the render code in the child classes and call a single render method for the parent Block object (all the blocks extend the main Block class). Is there some penalty for importing the stuff for rendering in the block classes? Maybe the dispatch ...
Night-Eagle Programming Reply
For the exit of the block of the first if, wouldn't the compiler make an optimization to jump to the end of the chain? Regardless, it is wrong to say "Notch uses else-ifs over switch statements," is it not? [QUOTE=Robber;29399868]That's not too bad. It's easier to read than ...
Night-Eagle Programming Reply
[QUOTE=Jallen;29394088]So I'm challenging everyone who has ever said notch is a bad coder to give me examples of some of his bad code, because right now all I'm seeing is a dumb bandwagon.[/QUOTE] I thought he used else ifs over switch statements. But I was wrong. I take back...
Night-Eagle Programming Reply
Got UV mapping inside the vertex shader working. Took me awhile to figure out that glVertexAttribPointer wasn't working correctly when I passed GL_INT as [i]type[/i]. So, I passed GL_FLOAT as [i]type[/i] and it worked fine (even though I was using the data as integers in the s...
Night-Eagle Programming Reply
[QUOTE=Dlaor-guy;29351591][shiny stuff][/QUOTE] Very nice. If you want to whip out a second canister of turtle wax, you could add some noise/procedural variance to the acceleration sound and speed up the text scroll rate a tad bit.
Night-Eagle Programming Reply
Just figured out the difference between GL_ARRAY_BUFFER and GL_ELEMENT_ARRAY_BUFFER. The biggest difference, for me, is that using one over the other can cause 2 hours of rage. [img]http://eagle.undo.it:8083/img/kintel_16.png[/img] I'm modifying a GLSL shader to automaticall...
Night-Eagle Programming Reply
Oh god, what have I done! [img]http://eagle.undo.it:8083/img/kintel_15.png[/img] At least it renders them fast, so I know I'm going in the right direction :v:
Night-Eagle Programming Reply
[QUOTE=cdlink14;29284644]Something is definately happening.[/QUOTE] That whirring sound you hear is actually the combined resonance of marketing departments across the globe vibrating at 13,000 Hz.
Night-Eagle Polidicks Reply
[QUOTE=cdlink14;29277359][url]http://www.gamingmasters.co.uk/portal/[/url] According to this link, if you're playing "the ball" switch your focus to "Killing Floor".[/QUOTE] But it says KF will finish in 2 days 2 hours where The Ball will finish in 6:45. It also says The Ball...
Night-Eagle Polidicks Reply
[QUOTE=smurfy;29275530]...[url=http://www.facebook.com/photo.php?fbid=10150228527438689&set=a.10150228527433689.346684.93235358688]who are playing the game right now[/url][/QUOTE] Oh my fucking god. Fried chicken and a danish. Seriously though, is this the "overclocking", or ...
Night-Eagle Polidicks Reply
[QUOTE=Master117;29110362]I am only getting around 22 highway.[/QUOTE] 2009 Cobalt LT2, 2.2 L, 4 cyl. Consistently getting 28.4 MPG commuting to college and back now. Lowest fuel mileage I've ever gotten was 21.1 MPG four weeks after I got it, but that was making short trips ...
Night-Eagle General Discussion Reply
There is no option to uninvert the mouse pitch?
Night-Eagle Polidicks Reply
[img]http://eagle.undo.it:8083/img/hideTheBanana.png[/img] Why not use three list boxes and move buttons instead a clusterfuck of drop-down boxes? Or an array of checkboxes? Why can't I set a default option for new items? Oh, and it wouldn't hurt to not automatically fuck u...
Night-Eagle Hardware & Software Reply
[QUOTE=darkedone02;29060029]I used to play Dirt 2, but I got tired of the god damn controls, it's like a single slight turn will result into a full 360... it's ridiculous.[/QUOTE] Try aiming...err...steering next time. By chance, do you play CS with a gamepad?
Night-Eagle Polidicks Reply
[QUOTE=robmaister12;29082632]mouse input[/QUOTE] Might want to skip the whole "reset cursor position to the center of the screen" time-wasting thing and just jump straight to RawInput (Windows). As an added bonus, there is no need to worry about mouse acceleration. Methods to...
Night-Eagle Programming Reply
[QUOTE=B!N4RY;29071345]I hope DX11 mode is not tied to Geforce 590 owners exclusively like it was rumored.[/QUOTE] Why even bother using an API, then? Might as well just take a cash bribe to use a proprietary interface from nVidia. Oh, wait; that's another API.
Night-Eagle Polidicks Reply
There really is too little ammo towards the end of the game. I ended up just cloaking behind all the aliens and stealth-assassinating them since guns were such a pain in the ass to use. In the very last part of the game [sp](the park)[/sp], I think I only killed about 6-8 enem...
Night-Eagle Polidicks Reply
[QUOTE=MegaJohnny;28937556]hello i'm mister chess[/QUOTE] minor patch 2 delayed
Night-Eagle Polidicks Reply