|
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.
[2017-1-01. : 6:34 am] O)FaRTy1billion[MM] -- is there somewhere I can put the MPQ Block Size option on the main window of TinyMap? It's so inaccessible where it is[2017-1-01. : 6:26 am] jjf28 -- but hey I just solved my keeping-code-modular while minimizing database hits problem (optional params with the list of items queried from a higher level)[2017-1-01. : 6:23 am] O)FaRTy1billion[MM] -- now I still need to figure out why sometimes opening a map crashes, and other times opening the same map doesn't ![]() [2017-1-01. : 6:22 am] O)FaRTy1billion[MM] -- there was nothing really wrong with how I had it, this is just way cleaner and saves needing an extra variable & function[2017-1-01. : 6:17 am] O)FaRTy1billion[MM] -- Probably because I'm basing it off the old code that used IDs, so didn't think of changing that[2017-1-01. : 6:15 am] O)FaRTy1billion[MM] -- I guess I could put the file pointer as the item data in the listbox, if that's what you mean[2017-1-01. : 6:15 am] jjf28 -- if it's a param you can replace the fileId getting passed with the pointer to the file, is all I was getting at[2017-1-01. : 6:15 am] O)FaRTy1billion[MM] -- oh. for(i=0;i<listcount;i++){ if(SendMessage(mainwnd.lFiles, LB_GETSEL, (WPARAM)i, 0)){ fileID = SendMessage(mainwnd.lFiles, LB_GETITEMDATA, (WPARAM)i, 0); file = getMapFile(fileID);[2017-1-01. : 6:14 am] jjf28 -- in the calling function fileId could be a param, loop counter, or something[2017-1-01. : 6:12 am] O)FaRTy1billion[MM] -- MapFile* getMapFile(int id){ if(id >= mapFileCount) return NULL; return &mapFiles[id]; }[2017-1-01. : 6:11 am] jjf28 -- guess I would need context of "file = getMapFile(fileID);" I was assuming fileID was a param to the function that has this line[2017-1-01. : 6:11 am] O)FaRTy1billion[MM] -- idk, I didn't feel like making the mapFiles array global, and that was my solution for things that need to access it ![]() [2017-1-01. : 6:10 am] jjf28 -- mm, but can you use a pointer to a MapFile rather than passing around its id?[2017-1-01. : 6:10 am] O)FaRTy1billion[MM] -- I would be really close to having this done if I didn't keep getting distracted with heating coils and whatnot[2017-1-01. : 6:09 am] O)FaRTy1billion[MM] -- where would I get such a handle? it just returns a struct pointer that has a bunch of settings for each file in the map[2017-1-01. : 6:05 am] O)FaRTy1billion[MM] -- file = getMapFile(fileID); seems so silly when I can just extern MapFile* mapFiles; and just do mapFiles[fileID].stuff ![]() [2017-1-01. : 6:03 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: someone just set off fireworks here same here, which is why I was commenting on it. Except jjf28jjf28 shouted: but to be fair it did just turn midnight in our timezone is not the case here![]() [2017-1-01. : 6:02 am] O)FaRTy1billion[MM] -- Maybe I should set some fireworks off at 4 am and be like "Hawaii has a new year, too!"[2017-1-01. : 6:01 am] O)FaRTy1billion[MM] -- why do people keep doing stuff on every hour? Just because it's now 2017 somewhere doesn't mean you should care[2017-1-01. : 5:59 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: if it's too heavily coupled (lotsa globals, inappropriate params) I'd recommend rewriting it using your existing code as a guide that's what I'm trying to do ![]() [2017-1-01. : 5:58 am] jjf28 -- if it's too heavily coupled (lotsa globals, inappropriate params) I'd recommend rewriting it using your existing code as a guide[2017-1-01. : 5:56 am] O)FaRTy1billion[MM] -- and despite my efforts to clean it up, my code is still messy and bad D:[2017-1-01. : 5:52 am] jjf28 -- oh gawd, the pain of external dependencies (lines 1-8) https://github.com/jjf28/PacketReader/blob/master/PacketReader/PacketReader.h[2017-1-01. : 5:51 am] O)FaRTy1billion[MM] -- also if it's heisenbug, maybe that will tell me better where the problem is[2017-1-01. : 5:50 am] O)FaRTy1billion[MM] -- honestly, printf("%d\n", __line__); is sounding easier and easier ![]() [2017-1-01. : 5:49 am] jjf28 -- ah here we are: https://github.com/jjf28/Chkdraft/tree/master/Chkdraft/SFmpq[2017-1-01. : 5:48 am] O)FaRTy1billion[MM] -- maybe it'll work if I just include all the source files in to the project xD[2017-1-01. : 5:47 am] jjf28 -- could steal Chkdrafts, though I'd do my own build if whatever you're making is important[2017-1-01. : 5:47 am] Pr0nogo -- and when you have 250-1000 lines/map that's definitely out of the question[2017-1-01. : 5:46 am] Pr0nogo -- lil-Infernolil-Inferno shouted: you're better off not using waits at all not feasible for my campaigns, each individual dialogue would be its own trigger and it would be virtually impossible to time everything correctly without ludicrous amounts of testing[2017-1-01. : 5:46 am] jjf28 -- mostly just that VS doesn't by default care whether you maintain a makefile and accepts windows-only functions[2017-1-01. : 5:46 am] O)FaRTy1billion[MM] -- oh, shit, I won't have static build of sfmpqapi unless I rebuild it under VS D:[2017-1-01. : 5:45 am] O)FaRTy1billion[MM] -- I guess I'll make my project in VS. Hopefully there aren't any inconsistencies with VS and gcc ![]() [2017-1-01. : 5:44 am] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: this kinda thing must be a potential heisenbug tho that's what I'm afraid of, too D:[2017-1-01. : 5:44 am] Pr0nogo -- but it's not synced up in this rendition and the player that owns the death counter triggers has 0 waits |
Moose, EvelineRieder939, LeandroGwerder057, jun3hong