• What are you working on? November 2011 Edition
    3,673 replies, posted
I step by step understand how unreal's game engine is working, it's actually really simple
What do you guys think of like a top-down 3D "town-building" game like Age of Empires or whatever except it's kind of a simulation too with a functional economy and shit. EXCEPT, it's based upon a zombie apocalypse where at night zombies try to attack your town centre, and during the day they wander about. Instead of resources like Gold, Silver and Wood, you'd have stuff like Wood, Food and Ammo. If you guys think it's a good idea I'm gonna put a lot of effort into making this!
[QUOTE=benjojo;33511756]Sounds like [url]http://clientsfromhell.net/[/url][/QUOTE] [img]http://speedcap.net/img/aadeb96bb708a2e5bceb75a7a95c8002/f1d8437b.png[/img] :v:
[QUOTE=ZenX2;33513058]Do a Linux Mint theme, it's just so sexy[/QUOTE] I'm not artistic enough for that :(
[QUOTE=TheCloak;33513276][img]http://speedcap.net/img/aadeb96bb708a2e5bceb75a7a95c8002/f1d8437b.png[/img] :v:[/QUOTE] [img]http://dl.dropbox.com/u/45554193/images/wyewgb.png[/img] :v: :v:
[img]http://dl.dropbox.com/u/23280705/cakelink/speed1.jpg[/img] [img]http://dl.dropbox.com/u/23280705/cakelink/speed2.jpg[/img] [img]http://dl.dropbox.com/u/23280705/cakelink/speed3.jpg[/img] (the first one is mouseover)
[QUOTE=Darwin226;33512964]Well that certainly sucks... The only way to do it right is to waste memory and processing power on making new objects every time you want to move something...[/QUOTE] Surely that is not actually a big deal.
[vid]http://dl.dropbox.com/u/4093439/animation.webm[/vid] My animation editor is WORK!
[QUOTE=Darwin226;33512964]Well that certainly sucks... The only way to do it right is to waste memory and processing power on making new objects every time you want to move something...[/QUOTE] Now that I think about it you can do. [csharp] protected Point _position; public Point Position { get {return _position;} set { _position = value;} } public int X { set { _position.X = value; } get { return _position.X; } } [/csharp] Still I would recommend using fields in this case. Seems Microsoft uses fields for valuetypes.
[QUOTE=supersnail11;33513558][img]http://dl.dropbox.com/u/23280705/cakelink/speed1.jpg[/img] [img]http://dl.dropbox.com/u/23280705/cakelink/speed2.jpg[/img] [img]http://dl.dropbox.com/u/23280705/cakelink/speed3.jpg[/img] (the first one is mouseover)[/QUOTE] I had to ask myself why I clicked those and expected something to happen
What would be the best/easiest way to smoothly cycle through red/green/blue? I currently am using counters and lots of if/else checks to count one color up to 255 and then decrease that while increasing the other values, is there easier and more efficient way of doing this? Basically how can I cycle through the hue/color circle? I am using sfml by the way.
Does anyone happen to have a decent tutorial for creating an OpenGL Context and window inside of OSX Cocoa? The OSX documentation says "Override the usual methods with your own" then fails to say what should be within them...
[QUOTE=Fetret;33513841]What would be the best/easiest way to smoothly cycle through red/green/blue? I currently am using counters and lots of if/else checks to count one color up to 255 and then decrease that while increasing the other values, is there easier and more efficient way of doing this? Basically how can I cycle through the hue/color circle? I am using sfml by the way.[/QUOTE] [code] r = 255.0 * (t < 0.3333 ? t < 0.1666 ? 1.0 : 1.0-t : t < 0.6666 ? 0.0 : t < 0.8333 : t : 1.0); g = 255.0 * (t < 0.5 ? t < 0.1666 ? t : 1.0 : t < 0.6666 ? 1.0-t : 0.0); b = 255.0 * (t < 0.5 ? t < 0.3333 ? 0.0 : t : t < 0.8333 ? 1.0 : 1.0-t); [/code] For a time t in the range [0, 1] It's basically the same thing.
Scanned 58 routers doing a simple 'dictionary' attack. [csharp] var passwords = new[] { "admin:admin", "admin:1234", "admin:password", "admin:", };[/csharp] Found 9 out of the 58 that were using one of those default logins. Edit: (Adjusted the numbers. Did it again counting the timeouts, etc)
[QUOTE=Siduron;33506225]What kind of GUI are you using? A library or custom made?[/QUOTE] We're using Torque3D which has a built in GUI system and editor (the editor is pretty bad and annoying though).
I should really make an interface editor for my game.
[quote] CLIENT: &#8220;I cannot get a picture on my TV.&#8221; ME: &#8220;Is it just black, or are there some numbers or text on the screen?&#8221; CLIENT: &#8220;No picture, but I can see the clock telling me what time it is.&#8221; ME: &#8220;Ok, there should be some buttons on the side where you can change the channel or input. Do you see those buttons?&#8221; CLIENT: &#8220;I don&#8217;t see anything about channel, but there are buttons.&#8221; ME: &#8220;What buttons do you see?&#8221; CLIENT: &#8220;Well, I see Time, Start/Stop and Defrost&#8230;&#8221; ME: &#8220;Ma&#8217;am, are you looking at your microwave?&#8221; CLIENT: &#8220;&#8230;Oh dear. I hope not.&#8221; [/quote] hahahaha :v:
[IMG]http://triebr.com/MusicSync/music.php/1.png[/IMG] Finished my new avatar/WinAmp Plugin :v: Hoping to find a graphic artist to make it sexier.
[QUOTE=icantread49;33515251]hahahaha :v:[/QUOTE] Can we not make this a CIPWTTKT thread? [editline]30th November 2011[/editline] [QUOTE=thisBrad;33515285][IMG]http://triebr.com/MusicSync/music.php/1.png[/IMG] Finished my new avatar/WinAmp Plugin :v: Hoping to find a graphic artist to make it sexier.[/QUOTE] What does it do?
[QUOTE=supersnail11;33515289]Can we not make this a CIPWTTKT thread? [editline]30th November 2011[/editline] What does it do?[/QUOTE] Shows what I'm listening to in winamp in real-time. But I just realized fucking avatars are cached :( God damn it. It's useless on this forum now. edit: They aren't even cached, they are copied right over to the fucking FP server.
Great, now this desktop thing will take a lot more programming than expected. I want it to look like a real computer - Ubuntu, to be exact. The top bar will have programs, memory, stats, the bottom bar will have programs and memory usage. You can visit multiple websites at once (more memory usage though) with windows (on the desktop, not the OS). All in theory, of course.
[cpp]/* b64_f.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define WIDTH 76 #define ENDL(c) if (c % WIDTH == 0) { putchar('\n'); fflush(stdout); } #define btd(B) (((B[0]=='1') * 32)+((B[1]=='1') * 16)+((B[2]=='1') * 8)+((B[3]=='1') * 4)+((B[4]=='1') * 2)+((B[5]=='1') * 1)) static char d2b[128][9] = { "00000000", "00000001", "00000010", "00000011", "00000100", "00000101", "00000110", "00000111", "00001000", "00001001", "00001010", "00001011", "00001100", "00001101", "00001110", "00001111", "00010000", "00010001", "00010010", "00010011", "00010100", "00010101", "00010110", "00010111", "00011000", "00011001", "00011010", "00011011", "00011100", "00011101", "00011110", "00011111", "00100000", "00100001", "00100010", "00100011", "00100100", "00100101", "00100110", "00100111", "00101000", "00101001", "00101010", "00101011", "00101100", "00101101", "00101110", "00101111", "00110000", "00110001", "00110010", "00110011", "00110100", "00110101", "00110110", "00110111", "00111000", "00111001", "00111010", "00111011", "00111100", "00111101", "00111110", "00111111", "01000000", "01000001", "01000010", "01000011", "01000100", "01000101", "01000110", "01000111", "01001000", "01001001", "01001010", "01001011", "01001100", "01001101", "01001110", "01001111", "01010000", "01010001", "01010010", "01010011", "01010100", "01010101", "01010110", "01010111", "01011000", "01011001", "01011010", "01011011", "01011100", "01011101", "01011110", "01011111", "01100000", "01100001", "01100010", "01100011", "01100100", "01100101", "01100110", "01100111", "01101000", "01101001", "01101010", "01101011", "01101100", "01101101", "01101110", "01101111", "01110000", "01110001", "01110010", "01110011", "01110100", "01110101", "01110110", "01110111", "01111000", "01111001", "01111010", "01111011", "01111100", "01111101", "01111110", "01111111" }; static char base64table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int main(int argc, char **argv) { FILE *fp; fp = fopen(argv[1], "r"); if (fp == NULL) { printf("Can't open %s\n", argv[1]); return 1; } char tb[9], tf[5], tmp[9]; register char test; int cc = 0; int po, pt; while (!feof(fp)) { test = getc(fp); strncpy(tb, d2b[(int)test], 9); putchar(base64table[btd(tb)]), cc++; ENDL(cc); tf[0] = tb[6], tf[1] = tb[7]; test=getc(fp); strncpy(tmp, d2b[(int)test], 9); pt = test + 1; tb[0] = tf[0], tb[1] = tf[1]; tb[2] = tmp[0], tb[3] = tmp[1], tb[4] = tmp[2], tb[5] = tmp[3]; putchar(base64table[btd(tb)]), cc++; ENDL(cc); tf[0] = tmp[4], tf[1] = tmp[5], tf[2] = tmp[6], tf[3] = tmp[7]; test=getc(fp); strncpy(tmp, d2b[(int)test], 9); po = pt ? 1 : test + 1; tb[0] = tf[0], tb[1] = tf[1], tb[2] = tf[2], tb[3] = tf[3]; tb[4] = tmp[0], tb[5] = tmp[1]; if (!pt) { printf("=="); break; } putchar(base64table[btd(tb)]), cc++; ENDL(cc); putchar(!po ? '=' : base64table[btd((tmp+2))]), cc++; ENDL(cc); if (!po) break; } fclose(fp); return 0; }[/cpp] My 83 line base 64 encoder... It's just between 0 and 1 ms slower than GNU coreutils base64 as of now.
And completely unreadable.
[QUOTE=Jookia;33516045]And completely unreadable.[/QUOTE] Yeah, I had gratuitous comments in the loop for my own understanding, but I took them out. If you space out the code it's not so bad.
[QUOTE=synthiac;33516077]what the fuck[/QUOTE] Lookup table of binary values from 0 to 127, faster than converting each decimal to binary using loops
[QUOTE=Octave;33516074]Yeah, I had gratuitous comments in the loop for my own understanding, but I took them out. If you space out the code it's not so bad.[/QUOTE] Why would you take comments out?
[QUOTE=Jookia;33516094]Why would you take comments out?[/QUOTE]Well they were kind of cluttering the code. I'm on a 10.1" netbook screen and they were wrapping.
[QUOTE=synthiac;33516119]what[/QUOTE] Just an array that maps values to other values essentially. So if I have 'a', i do d2b['a'] which is the same as d2b[97] and I get the appropriate value. [url]http://en.wikipedia.org/wiki/Hash_table[/url]
[vid]http://dl.dropbox.com/u/4093439/maurice.webm[/vid] We love you Maurice.
[QUOTE=synthiac;33516154]that's not a hash table.[/QUOTE] You don't even know what a hash table is and now you say that mine isn't a hash table? :v: And I don't really give a damn what it is, it's faster than using a loop to get the binary value.
Sorry, you need to Log In to post a reply to this thread.