For a long while, we’ve been having issues with autodownload on our custom maps servers preventing people from downloading all of the custom maps at the same time (after the 12th pk4, the download would stop).
Now, I could set it to only have people download the maps in the current campaign, but for various reasons I’ve been asked to have it give you the full download list.
It was pointed out to me about an hour ago that the issue was not with the number of files, but with the length of the file list string. As it’s limited to 1024 characters, our (relatively long) base URL plus the large number of items results in the string being truncated midway through the thirteenth file.
I found (what could be considered) the offending line:
Simply raising the size of each static string would alleviate the issues on our end, though it seems like a stupid thing to do. I’m wondering if I should go through and replace the use of char* with a smart string (that is, one that knows its own length).
From a cursory look, I’m thinking that if I replace the idStr internals it’d be a proper fix for the issue.
Anyway, if anyone was interested in this problem, this looks to be the cause. Uni starts up tomorrow, though, so we’ll see whether or not I’m able to get around to it in short order.