|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-1-24. : 4:51 am] O)FaRTy1billion[MM] -- This particular function uses the mapScrollX, mapScrollY, and then constants 640 (screen width) and 400 (screen height) ![]() [2016-1-24. : 4:48 am] O)FaRTy1billion[MM] -- is screenLeft/Top/Right/Bottom the visible area of the map?[2016-1-24. : 4:43 am] jjf28 -- should be there, reload the file if your intellisense is broken, include "Chkdraft.h" at the top of the cpp if it isn't[2016-1-24. : 4:30 am] jjf28 -- leaving semicolons off at the end of a class at the end of a file: absolute nightmare[2016-1-24. : 4:18 am] O)FaRTy1billion[MM] -- That's what happens when I type code in notepad at work ![]() [2016-1-24. : 4:16 am] O)FaRTy1billion[MM] -- Valid: ISCRIPT_CreateSprite(image, is_get(u16, isptr - 4), is_get(s8, isptr - 2), is_get(s8, isptr - 1), image->spriteOwner->elevationLevel + 1);[2016-1-24. : 4:16 am] O)FaRTy1billion[MM] -- VS keeps saying functions are undefined when 10 lines above the same function, with the same parameters, is valid. ;o[2016-1-24. : 4:00 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: also having interviewed recently: wouldn't it be undefined behavior (usually resulting crash)? Yes![]() [2016-1-24. : 4:00 am] O)FaRTy1billion[MM] -- If I do selection circle stuff, I haven't gotten it from SC yet ![]() [2016-1-24. : 3:57 am] Moose -- Except afterwards you realize he's probably not wrong and how absolutely horrifying that is.[2016-1-24. : 3:54 am] Doodle77 -- jjf28jjf28 shouted: if you're on/have time, mind seeing if that still compiles in mingw doodle? it works in VS now, just wanna be sure before merging it yes[2016-1-24. : 3:53 am] Moose -- jjf28jjf28 shouted: also having interviewed recently: wouldn't it be undefined behavior (usually resulting crash)? It's C++, do you have to ask? XDDDDDDD![]() [2016-1-24. : 3:52 am] jjf28 -- also having interviewed recently: wouldn't it be undefined behavior (usually resulting crash)? ![]() [2016-1-24. : 3:51 am] jjf28 -- if something crashes you did it wrong imo (SCMDraft crashing when you put in UnitID 228 smh)[2016-1-24. : 3:48 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: FaRTy1billion not terribly important, it would be nice to have a default case for out of bounds "paletteType"s tho They just crash SC but we could just add some error checking[2016-1-24. : 3:48 am] Moose -- That would actually be pretty dumb, though, considering SCBW is written in C++.[2016-1-24. : 3:47 am] Moose -- jjf28jjf28 shouted: w/e's easiest and doesn't end up looking like crap HOW ABOUT CHANGING LANGUAGES, LMAO![]() [2016-1-24. : 3:46 am] Moose -- jjf28jjf28 shouted: w/e's easiest and doesn't end up looking like crap Stop giving me ammunition to troll XDDDDDDDDD![]() [2016-1-24. : 3:42 am] jjf28 -- but if you make that call in multiple places... you might end up putting that switch in a function and pretty much emulating the exact behavior of a function array anyways xD[2016-1-24. : 3:39 am] jjf28 -- and to see what you're actually calling at the place it's called rather than find the array declaration[2016-1-24. : 3:38 am] jjf28 -- FaRTy1billionFaRTy1billion shouted: ;o I'm getting to drawfunctions ... Should I use function pointers like SC, or switch cases? not terribly important, it would be nice to have a default case for out of bounds "paletteType"s tho[2016-1-24. : 3:38 am] Moose -- Use function pointers, it'll deter newbies who would ruin the code from working on it X^DDDDDDDD[2016-1-24. : 3:36 am] O)FaRTy1billion[MM] -- image->updateFunction = imgUpdateFxns[image->paletteType].func;[2016-1-24. : 3:35 am] O)FaRTy1billion[MM] -- ;o I'm getting to drawfunctions ... Should I use function pointers like SC, or switch cases?[2016-1-24. : 3:35 am] O)FaRTy1billion[MM] -- bit array, drawbuffer, whatever .. but I haven't looked in to it[2016-1-24. : 3:35 am] O)FaRTy1billion[MM] -- I think it just has the thing I said, you just update the texture with your bit array[2016-1-24. : 3:33 am] jjf28 -- FaRTy1billionFaRTy1billion shouted: I'm not sure how this would be done with opengl, unless you just constantly re-update a texture's bits with the drawbuffer I'm sure it has SetDIBits equivalents, what I'm really hoping is that it has well optimized stuff for setting some bits, drawing text on top of it, and then setting some more, it's super sucky to SetBits-SetBitsToContext-DrawText-GetContextBits-SetBitsToContext and all that inside double buffering[2016-1-24. : 3:30 am] Moose -- Actually, I don't know. Never really looked at one. Used make a bunch to build things from source tho.[2016-1-24. : 3:29 am] O)FaRTy1billion[MM] -- I'm not sure how this would be done with opengl, unless you just constantly re-update a texture's bits with the drawbuffer[2016-1-24. : 3:29 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: can you compile <windows.h> dependent code on Linux? a lot of times linux versions just have windows.h with some windows-specific defines![]() [2016-1-24. : 3:28 am] Moose -- Won't know until I try. WINE was able to run chkdraft the last time I tried tho[2016-1-24. : 3:28 am] jjf28 -- long term I wanna replace all the code with openGL/Qt but it's definitely not there yet[2016-1-24. : 3:27 am] jjf28 -- if you're on/have time, mind seeing if that still compiles in mingw doodle? it works in VS now, just wanna be sure before merging it[2016-1-24. : 3:24 am] jjf28 -- as a user I like my programs to just the executables when/e possible; I guess moreso it's just that I find it a irksome to have one version use the static version and one the dynamic ![]() [2016-1-24. : 3:12 am] jjf28 -- it has no respect for layering or anything, just needed some selection graphics ![]() [2016-1-24. : 3:10 am] O)FaRTy1billion[MM] -- SC adds them to the sprite's imagelist and has a bunch of code for it, I just commented it all out ![]() [2016-1-24. : 2:58 am] O)FaRTy1billion[MM] -- Do you draw selection circles, or should I retain that code in SC? |