• What are you working on? V7
    2,001 replies, posted
Alt + PrntScrn
[QUOTE=birkett;19826440]Alt + PrntScrn[/QUOTE] does it automatically upload the image to a host of your choice and place the link in your clipboard?
/cough dropbox
[QUOTE=Jallen;19823251]Surely it would be better if you stored a pointer to the scene manager rather than using the get method every time you want to use it...[/QUOTE] Yeah it would. I actually don't know why I didn't do it already.
[QUOTE=garry;19820808]Gonna do some experimentation into evolutionary AI. Saw a documentary on it the other day and it got my knickers wet..[/QUOTE] Something like [url=http://www.framsticks.com/]framsticks[/url]? I remember trying to design a Theo Jansen walker with it once, the plan was to evolve new walker designs out of it later, but it didn't really work.. my PC couldn't handle the pressure. :eng99: Or did you mean a skynet-style AI?
[QUOTE=voodooattack;19828848]Something like [url=http://www.framsticks.com/]framsticks[/url]? I remember trying to design a Theo Jansen walker with it once, the plan was to evolve new walker designs out of it later, but it didn't really work.. my PC couldn't handle the pressure. :eng99: Or did you mean a skynet-style AI?[/QUOTE] If I had to take a guess he is talking about the end of a bbc video "The Secret Life of Chaos" (2010) Goto 2:00 mark [media]http://www.youtube.com/watch?v=w1ZZ6n2DMOU[/media]
That's essentially the same.
Why don't I have cool documentaries on TV I don't even have discovery, not that it would help much seeing how they are "BOOM BANG SHINY GHOSTS oh yeah, science and shit, right?" now. Mythbusters is cool though. [editline]05:16PM[/editline] I'm trying to learn to use libcurl, but the information on their site is either terrible or I'm incredibly stupid, because they refuse to define types: [code] easyhandle = curl_easy_init(); [/code] Which doesn't work obviously. I had to look around outside their website to find that the type needed was CURL *. This wouldn't be that big of a problem except that intellisense isn't working for their library, so I have no idea what the return types for functions are, or more importantly, the names of any of the functions.
[QUOTE=windwakr;19831019]Well, I'm still messing around with OpenGL in my spare time and got around to getting simple BMP loading, but with one problem lol.......The texture is supposed to be blue! Really couldn't follow the NeHe tutorial on this one(as it used some extremely outdated GLAUX shit), but I used the texture it supplies: [img]http://filesmelt.com/dl/texture_fail.PNG[/img][/QUOTE] That looks like the RGB channels are flipped... some image libs etc. read it Blue-Green-Red, so blue things look red and vice-versa.
[QUOTE=ryandaniels;19831167]except that intellisense isn't working for their library, so I have no idea what the return types for functions are,[/QUOTE] And this is why depending on intellisense instead of common sense can be bad. [url]http://curl.haxx.se/libcurl/c/allfuncs.html[/url] Shouldn't take more than a second to find any function.
[QUOTE=gparent;19831928]And this is why depending on intellisense instead of common sense can be bad. [url]http://curl.haxx.se/libcurl/c/allfuncs.html[/url] Shouldn't take more than a second to find any function.[/QUOTE] Much thanks. I don't know why I have difficulty finding stuff like this
[QUOTE=ryandaniels;19832217]Much thanks. I don't know why I have difficulty finding stuff like this[/QUOTE] If it makes you feel better I thought they'd make the link a bit more obvious myself. I dug to libcurl, went to the Multi functions, then saw "All functions" on the left.
[code]JE3D started. Win32 Error (0x57): The parameter is incorrect. Failed to register the window class.[/code] [cpp] instance = GetModuleHandle(0); WNDCLASSEXA windowClass; windowClass.style = CS_HREDRAW | CS_VREDRAW; // Edited title bar, leaving just the close button. windowClass.lpfnWndProc = (WNDPROC)staticWindowProc; // Send the events to this layer's windowProc. windowClass.cbClsExtra = 0; windowClass.cbWndExtra = 0; windowClass.hInstance = instance; windowClass.hIcon = LoadIcon(0, IDI_WINLOGO); windowClass.hCursor = LoadCursor(0, IDC_ARROW); windowClass.hbrBackground = 0; windowClass.lpszMenuName = 0; windowClass.lpszClassName = "JE3D"; windowClass.cbSize = sizeof(WNDCLASSEXA); if(RegisterClassEx(&windowClass) == false) // If it fails to register to the class. { logLastError(); IOLayer->log("Failed to register the window class."); return true; }[/cpp] The fuHow do I fix this? It's not registering. Also, is there a way to removing trailing newlines from my error printer? [cpp] char log[128]; DWORD lastError = GetLastError(); void* buffer; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM , 0, lastError, 0, (LPTSTR)&buffer, 0, 0); sprintf(log, "Win32 Error (0x%x): %s", (unsigned int)lastError, (char*)buffer); LocalFree(buffer); IOLayer->log("%s", log);[/cpp]
That fixed it. What about the trailing newlines though?
[QUOTE=Eleventeen;19838998]That fixed it. What about the trailing newlines though?[/QUOTE] It looks like it's part of the buffer. You can try playing with the output by chopping off the last byte or two (\n or \r\n depending on how it's formatted) and see how that goes, but otherwise I'm not sure.
It's outputing \n or \r\n and since my log() function adds an \n (should it add an \r?) I don't need it.
[QUOTE=Eleventeen;19839705]It's outputing \n or \r\n and since my log() function adds an \n (should it add an \r?) I don't need it.[/QUOTE] As far as I know Windows uses \r\n, *nix uses \n, and Mac used \r up till OS 9 (now \n). As for you adding your own \n, it depends on whether you're only going to be echoing errors or if you'll be putting other text through that doesn't have it's own linefeeds. I'd say just don't write it automatically, and if you want it put it in on the end of the parameter you call it with (so you're explicitly ending with a newline).
Still, it'd be great to learn to remove them anyway.
Then do [cpp]if(*logText.rbegin() != '\n') logText += '\n';[/cpp]
What. No, a log is ADDING \n to the end.
So either rewrite your log to not add it if one is already existent or write a wrapper around the Windows-error messages to remove the trailing \n. Actually, [url=http://msdn.microsoft.com/en-us/library/ms679351(VS.85).aspx]FormatMessage[/url] supports that. Look at the escape sequence %0 in 'Remarks:'.
Started working on brush texture changing, alignment etc.. At the moment the brushes work in game, they collide fine etc. They're all static at the moment though, no triggers etc. That will probably be a couple of weeks away. [img]http://dl.dropbox.com/u/3590255/Screenshots/Botch/25Jan2010_001.png[/img]
What do you plan to use Botch for anyway?
Gonna make games on it
[QUOTE=garry;19841701]Gonna make games on it[/QUOTE] :biggrin:
gmod2
Budgeted all week to complete this, and done 90% of it already. [img]http://dl.dropbox.com/u/3590255/Screenshots/Botch/25Jan2010_002.png[/img]
How about a thumbnail big guy?
Is it modular enough to have OpenGL support in the future?
[QUOTE=garry;19842528]Budgeted all week to complete this, and done 90% of it already. [/QUOTE] don'tcha just love it when you think 'fuuuckkk this is going to take forever' and you are done with it in hours?
Sorry, you need to Log In to post a reply to this thread.