• What are you working on? December 2011 Edition
    3,353 replies, posted
  • [QUOTE=Lexic;33851560]I was also impressed by the way you authentically froze the browser in the woods area.[/QUOTE] I'm playing this right now, after reading that
  • [QUOTE=Lexic;33851560]Wow, that was some damn creepy creepypasta. I was also impressed by the way you authentically froze the browser in the woods area.[/QUOTE] It's very difficult [csharp] while(true) { continue; } [/csharp] [editline]22nd December 2011[/editline] Also, input is disabled in case firefox does the "this plugin is not responding" thing and stops the loop.
  • I started to work on my c++ opengl 3.0 game again. I think it is going to involve space monsters and weird looking flowers. I have a long way to go but it feels good to be back. [IMG]http://i.imgur.com/mlvPA.jpg[/IMG]
  • I should use source control. I held ctrl+z until I found what I did. then I accidentally hit the T did now I have to write 10 mins worth of code again :v:
  • [img]http://puu.sh/biSp[/img] Added some background textures to my game. still working on them.
  • [QUOTE=wingless;33844714]Goddammit. The part on Source Control. Source Control has been something that has been completely pissing me off lately, not because I can't use it or it doesn't work for me. Because of a friend I am working with on some project absolutely hates it, he continually wants to move to FTP and it always saying FTP does what Source control does but is't as volatile. The other day he re-arranged all the shit on my SVN, in a way that removed all way of reverting back WHILE leaving all the hard drive space taken up by the delta's. Worst part is he will not read up on it, Refuses to, avoid it whenever brought up. I tried to get him to get the "[B]Version Control by Example[/B]" book (Brilliant book, I love Version Control because of it) but he said his family would freak the fuck out if a random book appeared in his name, so I found him an online version and PDF version. Still won't read it.[/QUOTE] I have that book. Pretty good, even though it's mostly the same chapter copy-pasted four times with some modifications. I guess it has to be like that so you can compare the differencens between version control systems.
  • [QUOTE=supersnail11;33851320]I made [url=http://www.kongregate.com/games/Supersnail200/pale-luna]this[/url] in an hour or two after reading the creepypasta.[/QUOTE] [IMG]http://i.imgur.com/tnhv8.png[/IMG] From [URL="http://inuscreepystuff.blogspot.com/2011/08/pale-luna.html?showComment=1312598846484#c3690053536448066085"]here[/URL].
  • How do you guys handle filepaths? Some functions I have work if I ask it to load "test.txt", it'll pick it up off of the exe's directory, some if I do load "test.txt" I never find out and end up typing out a full path. What's the best way to get/set the directory so everything can be relative to the theoretical install directory?
  • [QUOTE=Lord Ned;33854067]How do you guys handle filepaths? Some functions I have work if I ask it to load "test.txt", it'll pick it up off of the exe's directory, some if I do load "test.txt" I never find out and end up typing out a full path. What's the best way to get/set the directory so everything can be relative to the theoretical install directory?[/QUOTE] Couldn't you just store the directory somewhere and then just append the file name onto that?
  • [QUOTE=garry;33843066]Made a little coding blog: [url]http://garry.tv/post/14613360572/coding-evolution[/url][/QUOTE] Setup git on dropbox :smile: Now im trying to setup premake, managed to get premake working, but is there anyway to set the directory that the makefiles created by premake build to?
  • [QUOTE=reevezy67;33854207]Couldn't you just store the directory somewhere and then just append the file name onto that?[/QUOTE] Getting the directory is fuzzy - it should be sent to the program as the first arg, but that's untrue if you're debugging (though I know you can manually set what's passed to it) - I wouldn't want the entire thing to fall apart because it didn't have the directory. C++ for the record.
  • [QUOTE=Lord Ned;33854278]Getting the directory is fuzzy - it should be sent to the program as the first arg, but that's untrue if you're debugging (though I know you can manually set what's passed to it) - I wouldn't want the entire thing to fall apart because it didn't have the directory. C++ for the record.[/QUOTE] What IDE? The dir is always passed in for me, regardless of whether I'm debugging or not. Also, there are methods to get the current working directory and stuff if you need it.
  • [QUOTE=Chuushajou;33853896][IMG]http://i.imgur.com/tnhv8.png[/IMG] From [URL="http://inuscreepystuff.blogspot.com/2011/08/pale-luna.html?showComment=1312598846484#c3690053536448066085"]here[/URL].[/QUOTE] [img]http://sae.tweek.us/static/images/emoticons/emot-tinfoil.gif[/img]
  • [QUOTE=Lord Ned;33854278]Getting the directory is fuzzy - it should be sent to the program as the first arg, but that's untrue if you're debugging (though I know you can manually set what's passed to it) - I wouldn't want the entire thing to fall apart because it didn't have the directory. C++ for the record.[/QUOTE] [url=http://msdn.microsoft.com/en-us/library/sf98bd4y(VS.80).aspx]Tried _getcwd()?[/url], although I can't see why it wouldn't work. Also a reminder that questions are best off in the "What do you need help with?" thread.
  • [QUOTE=SteveUK;33854789][URL="http://msdn.microsoft.com/en-us/library/sf98bd4y%28VS.80%29.aspx"]Tried _getcwd()?[/URL], although I can't see why it wouldn't work. Also a reminder that questions are best off in the "What do you need help with?" thread.[/QUOTE] How about we use getcwd() instead? You know, to avoid having your code Windows-only because Microsoft deprecates half the standard functions. Edit: Ah, it's a POSIX function, that's probably why Microsoft ignore it. A simple '#define getcwd _getcwd' should fix that and give you instant portability.
  • [quote] NW4gNDcgMzEgNDcgNjUgNTUgNnAgNDggNTUgNnIgNDIgNm4gNj EgNnIgNDIgNDMgNTkgMzIgMzUgNG8gNjEgNDcgNTYgNTQgNTEg NTQgNnAgNG4gNTIgN24gNTYgNzMgNW4gNDggNnAgNDMgNTEgNn EgNHIgNzUgNTMgNnEgNjggNnAgNTUgMzIgNjQgNzAgNTkgNnEg MzAgMzUgNjUgNTcgNTIgNDggNW4gMzIgNnAgNHEgNTEgMzAgNz AgNzMgNTcgNTYgNjggNHMgNHEgNDUgNnAgNzAgNjQgMzIgNnAg NjkgNjIgNTQgNnAgMzUgNW4gNDUgNjQgNnIgNjEgNTUgNzggND QgNTMgNm4gNHIgNjEgNTcgNDUgMzQgNzcgNTMgNTcgNnAgMzMg NjEgNTcgNG4gNzQgNHMgNTggNnAgNm8gNTIgMzIgNjQgNzAgNT QgNDUgNHIgNG8gNHEgMzEgNzAgNTkgNTQgNm4gNDIgNG4gNjEg NTggNjQgNzAgNTkgN24gNDkgMzUgNHEgNTcgNTIgNDggNW4gMz IgNnAgNHEgNTEgMzAgNnMgN24gNTcgNnAgNjggNHMgNHEgNDUg NnAgNzAgNjQgMzAgMzUgNDQgNW4gMzIgNzQgNG8gNTEgMzEgND YgNzIgNTMgNm8gNHIgNTQgNTEgNTcgNjQgNG4gNjIgNTQgNTYg MzIgNTkgMzIgMzUgNTMgNjIgMzAgNnAgNzAgNjQgMzIgNnAgNm 8gNHEgNnAgNW4gMzYgNW4gNDUgNHIgNG4gNjMgMzAgNnAgNzQg NHIgNTggNW4gNm4gNjIgNnAgNG4gNzYgNTMgNTcgNnAgMzMgNj EgNTcgNHEgNzkgNHMgNTQgNDYgNm8gNTIgMzIgNjQgNzAgNTQg NDUgNHIgNG8gNjIgNDYgNnAgNTkgNTQgNm4gNDIgNG4gNjEgNT ggNjQgNzAgNTcgNnAgNjQgNDcgNjUgNnEgNTIgNDQgNTMgNTgg NHIgNG4gNjIgNnEgNTIgNzMgNTkgN24gNHIgNTIgNjEgNTUgNz ggNDQgNTMgNm4gNHIgNjEgNTcgNDUgMzQgNzcgNTMgNTcgNnAg NzIgNHIgNzcgM3EgM3E= [/quote] Directions for Pale Luna.
  • [sp]var dir:Array = new Array("north","east","north","west","north","west","south","west", "north","west","north","south","east","east","west","west");[/sp] Teehee.
  • Never knew but apparently this box appears when an unhandled exception occurs in the main application thread. Wish I knew earlier because apparently this causes the exception to be 'handled' and it wont be passed to the appdomain unhandled exception handler. So basically your program has 0 knowledge of this exception so you cannot handle or log it. [img]http://goo.gl/GzfCt[/img] [editline]22nd December 2011[/editline] [QUOTE=danharibo;33841749]That's not a terrible way to go about it tbh, using scope like that isn't a bad thing.[/QUOTE] Especially seeing as if an exception is thrown by the code in the first snippet your layout is now stuck suspended.
  • [QUOTE=NovembrDobby;33854355]What IDE? The dir is always passed in for me, regardless of whether I'm debugging or not. Also, there are methods to get the current working directory and stuff if you need it.[/QUOTE] Visual Studio 2010. Maybe because it's a windows application? [img]http://i56.tinypic.com/2u8i047.png[/img] [QUOTE=SteveUK;33854789][url=http://msdn.microsoft.com/en-us/library/sf98bd4y(VS.80).aspx]Tried _getcwd()?[/url], although I can't see why it wouldn't work. Also a reminder that questions are best off in the "What do you need help with?" thread.[/QUOTE] I feel that putting them here leads to a lot more discussion (such as what Jookia pointed out), and it tends to lead towards more overall knowledge. [QUOTE=Jookia;33854867]How about we use getcwd() instead? You know, to avoid having your code Windows-only because Microsoft deprecates half the standard functions. Edit: Ah, it's a POSIX function, that's probably why Microsoft ignore it. A simple '#define getcwd _getcwd' should fix that and give you instant portability.[/QUOTE] Interesting enough, crtdbg.h defines "getcwd" to: "#define getcwd(s, le) _getcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__)" That being said, getcwd/_getcwd work wonderfully, though my usage of strcat is probably not the best... [code] char *GetWorkingDirectory() { char *buffer; char *trail = "\\"; buffer = getcwd( NULL, 0); strcat(buffer, trail); return buffer; } [/code]
  • I have been using love2d for some time and I would like to move on to something... sexier. I want something good. I heard XNA is real good, but I don't know.
  • [QUOTE=C:\;33855853]I have been using love2d for some time and I would like to move on to something... sexier. I want something good. I heard XNA is real good, but I don't know.[/QUOTE] I found XNA pretty sexy. Simple and powerful.
  • [QUOTE=C:\;33855853]I have been using love2d for some time and I would like to move on to something... sexier. I want something good. I heard XNA is real good, but I don't know.[/QUOTE] XNA is good. It's better if you use YogUI.
  • super meat boy pro video game developers [img]http://i.imgur.com/jUSnx.png[/img] lol: [img]http://i.imgur.com/lqlqz.png[/img]
  • Why edit out the names and passwords if you just showed us how to find them? :v:
  • [QUOTE=swift and shift;33856685]super meat boy pro video game developers [img]http://i.imgur.com/jUSnx.png[/img] lol: [img]http://i.imgur.com/lqlqz.png[/img][/QUOTE] Wait, you connected to the SMB database?
  • [QUOTE=Jookia;33856718]Why edit out the names and passwords if you just showed us how to find them? :v:[/QUOTE] so skids can't fuck around, only those who have some sort of technical proficiency [editline]23rd December 2011[/editline] also lol: [img]http://i.imgur.com/rGGkU.png[/img]
  • [QUOTE=swift and shift;33856778]so skids can't fuck around, only those who have some sort of technical proficiency[/QUOTE] It'd be a shame if their MySQL login data just disappeared right after you discussed that, wouldn't it? Also, I don't like the developer(s). They pretty much went 'fuck you' to Linux users.
  • Well, I mean, how bad is it? Can you just read information that you'd have access to through the game client anyway, or is it something more critical, like login information or the ability to modify/drop records from the database? Of course, don't get yourself into trouble or do anything stupid. [editline]23rd December 2011[/editline] [QUOTE=Jookia;33856820]They pretty much went 'fuck you' to Linux users.[/QUOTE] They did a pretty solid port, I think, database security issues aside. Is there something I missed?
  • [QUOTE=ROBO_DONUT;33856823]Well, I mean, how bad is it? Can you just read information that you'd have access to through the game client anyway, or is it something more critical, like login information or the ability to modify/drop records from the database?[/QUOTE] SELECT, UPDATE, and INSERT work. [img]http://i.imgur.com/pC5zB.png[/img] [editline]23rd December 2011[/editline] [QUOTE=Jookia;33856820]Also, I don't like the developer(s). They pretty much went 'fuck you' to Linux users.[/QUOTE] The OS X version can't go fullscreen.