141
Off-Topic Discussion / Re: Check out my new website design!
« on: September 23, 2011, 02:22:33 PM »
The 'articles' li in the menu wraps around to a new line. Chromium 14 64-bit, Linux.
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. 141
Off-Topic Discussion / Re: Check out my new website design!« on: September 23, 2011, 02:22:33 PM »
The 'articles' li in the menu wraps around to a new line. Chromium 14 64-bit, Linux.
142
Game Development / Re: New Robot combat game- in progress.« on: September 20, 2011, 10:18:57 PM »To give an update, we haven't started at all yet.What he said. Unfortunately, client work is more important. 143
Existing Games / Re: Team Fortress 2« on: September 20, 2011, 10:16:41 PM »In quake everyone is given the same weapons, and it is a lot more simple to play. To play TF2, you always need steam running.. blegh when you find a server, the VAC thing takes like 2 minutes to do its thing... bajkdaf And once you are in you have to like wait in a waiting room or something, i dont get it.obvious troll is obvious 144
Existing Games / Re: Team Fortress 2« on: September 19, 2011, 07:35:28 PM »
Your computer sucks massive balls, it sucked even when you bought it 5 years ago. You have 768MB of RAM, run your display in 1024x768, a game takes up 2/3 of your hard drive space and you think you can run TF2? Please. Even a $400 netbook has better specs than this.
145
General Support / Re: Menu doesn't work.« on: September 18, 2011, 07:07:58 AM »Have you tried turning it off and on again?Turning system updates on and off? ![]() 146
General Support / Re: Menu doesn't work.« on: September 16, 2011, 11:59:18 AM »
Have you tried turning it off and on again?
147
Off-Topic Discussion / Re: 'NTLDR is Missing'« on: September 11, 2011, 05:30:43 PM »
That error means the first stage Windows bootloader can't find the second stage bootloader. This could mean a couple of things:
- A very, very, very nasty virus infection - A corrupted Windows installation 148
Off-Topic Discussion / Re: Action Script 3.0 help« on: September 08, 2011, 02:33:58 PM »
Also, you should keep using Python, it's a much wider used language than AS. And yes, you can write games with it. Check out PyGame (very easy game library) or pyglet (very advanced multimedia and OpenGL framework).
149
General Support / Re: GMF Queries« on: September 07, 2011, 04:39:47 PM »DP: It allows you to choose a display mesh for the object. Usually, in RA2, the display mesh has a collision proxy, but you can also have a collision mesh have a display proxy - the end effect is the same. So yes, if you set an empty mesh as a proxy for an object, it will become invisible, but still collide with the world. 150
Off-Topic Discussion / Re: Action Script 3.0 help« on: September 07, 2011, 02:48:45 PM »
I've never programmed in AS, but I guess in your function checkFor2Hit, the argument should be of SpecialBaddie type, not Baddie (unless you find a way to convert a SpecialBaddie to a Baddie object in AS - in other languages this is called polymorphism).
151
Existing Games / Re: Team Fortress 2« on: September 07, 2011, 02:42:07 PM »TIL eFFe and Serge played in the EF2TL highlander tournament. Yeah, and apparently we get medals for that or something :P. 152
Off-Topic Discussion / Re: In Need Of A New Graphics Card« on: September 05, 2011, 01:29:13 PM »
a) get a clue about computer hardware first
b) you HP pavilion may not be made for expansion - it may be too mslal to fit a gfx card, the PSU may be too weak, or it may even have no gfx cars lot at all c) that riva TNT2 is older than you 153
Chatterbox / Re: Need help decifering this captcha« on: September 05, 2011, 01:23:44 PM »
Can't you just request another captcha? -_-
154
Off-Topic Discussion / Re: Parental Controls gone mad?« on: August 31, 2011, 01:23:20 PM »13, my father is a control freak and my mother can't work out a 5 year old mobile, let alone a PC.Then deal with it, lol. 155
Off-Topic Discussion / Re: Parental Controls gone mad?« on: August 31, 2011, 01:02:36 PM »
Disable WPC. How old are you, 12?
156
Off-Topic Discussion / Re: Pwn needs help in C« on: August 31, 2011, 09:24:42 AM »
Acutally, it does work well when you disable O_NONBLOCK on both fthe reader and writer, but the writer will stay blocked at open() until the reader is ran, too.
Code: [Select] [root@parallelogram ~]# uname -a
157
Off-Topic Discussion / Re: Pwn needs help in C« on: August 31, 2011, 09:01:26 AM »I'm compiling through BBS, and my university's computers are running CentOS 5 (HAHAHAHA SO OLD).Oh wow. It works fine on ArchLinux, but it does fail on CentOS (I just tested on my CentOS 5.5 box). I'll look into it. 158
Off-Topic Discussion / Re: Pwn needs help in C« on: August 31, 2011, 08:51:58 AM »I disabled both O_NONBLOCKs and for some reason the program just stops at open(). The printf() that followed it didn't come out. D: What OS are you using? Did you delete the fifo, and kill the old reader / writer processes? Because it's working fine here on Linux. If you're on Windows, maybe you should look into WinAPI equivalents? 159
Off-Topic Discussion / Re: Pwn needs help in C« on: August 31, 2011, 08:09:02 AM »
You need to disable the O_NONBLOCK flag on both the reader. Otherwise, read() won't block until it receives data, the loop will keep running, and printing invalid data (since read() didn't receive any data, and so, no valid data was written to the buffer).
Code: [Select] q3k@luna ~ $ ./pwn Code: [Select] q3k@luna ~ $ ./pwn EDIT: Another option, if you want to keep the asynchronous (=non-blocking) reading on the reader, you can refrain from printing data to the client unless read() returns > 0, which would mean some bytes were actually read, This way, the reader can still run on a loop, and do some other processing in the meantime (printing the time, blinking a cursor, whatever). However, this can be more CPU intensive, as a infinite loop like this (=a polled loop) is very CPU intensive. A good compromise between the two (something asynchronous, but not so CPU intensive) is to use the select() syscall (or some OS equivalent, kpoll on Linux, something on Windows I forgot - they are usually even fatser than select(), which is standarized). This syscall allows you to specify a bunch of file descriptors (be it open files, fifos, or even network sockets), and will block until one or more of these descriptors can be read from or written to. Here's the fun part: you can also specify for how long it will block! This allows you to write code that will block, for example, for 0.1 seconds (waiting for the fifo to have somedata), and then return. If it returned the file descriptor, it means some data was available on it - then you can read() it. If it returns 0, it means the block time has expired, and no data was read from the fifo. After you either handle or not the descriptor, you can do whatever more processing you want, and then loop back to the select() call. Of course, all of this is unnecessary if you can live with having a blocked loop :P. 160
Off-Topic Discussion / Re: Show your Desktop!« on: August 26, 2011, 08:12:35 AM »Like that's some sort of free pass for acting like a moron.Or just don't post stupid sh** and lies like that to begin with and just keep it to yourself.I REALLY HAVE AUTISM YOU IMBECILE |