0 Members and 1 Guest are viewing this topic.
Maybe, but he's literally just tried and seen it so the latest fixes haven't worked for false positives.
It's not me epinter, but one of my fellow mods. He's getting it with Windows Defender. Fine for him with virustotal.
Hey o/It's meLast release 10hours agoLast edit 8 hours agoYou did not update the release, it seems.Also, I checked the source and there are issues and lots of warnings using MSVS2019 because you're playing with the memory manually without checks and safety, although it's fine this is hard to read and can be source of issues.It's working fine though so let's hope it stays like this.What changed btw ? From Ragnarok to Eternal Embers ? I'm curious.Wagi
diff --git a/MAPDecomp.cpp b/MAPDecomp.cppindex e1ee25d..cd2097d 100644--- a/MAPDecomp.cpp+++ b/MAPDecomp.cpp@@ -10,6 +10,8 @@ #define SHR_SIZE 2 /*sizeof(unsigned short)*/ #define FLT_SIZE 4 /*sizeof(float)*/ #define PTR_SIZE sizeof(void*)+#define FILENAMES_BUFFER_SIZE 65535+#define FILENAME_SIZE 256 void mkdirtofile(char* path) { size_t length = strlen(path);@@ -67,7 +69,13 @@ void main(int argc, char **argv) { fwrite(sec, INT_SIZE, 1, wrlFile); bool outOfOrder = true;- char fileNames[1024][256];++ char ** fileNames = (char **) malloc(FILENAMES_BUFFER_SIZE * sizeof(char*));++ for (int i = 0; i < FILENAMES_BUFFER_SIZE; i++) {+ fileNames[i] = (char *) malloc(FILENAME_SIZE);+ }+ eofdetect = fgetc(mapFile); unsigned char* buffer; while (!feof(mapFile) && !ferror(mapFile)) {@@ -318,12 +326,12 @@ void main(int argc, char **argv) { } //.sd else if (0x18 == sec[0]) {- sprintf_s(fileNames[1023], 255, "%s", argv[2]);- *(fileNames[1023]+strlen(fileNames[1023])-3) = 's';- *(fileNames[1023]+strlen(fileNames[1023])-2) = 'd';- *(fileNames[1023]+strlen(fileNames[1023])-1) = 0;+ sprintf_s(fileNames[FILENAMES_BUFFER_SIZE-1], 255, "%s", argv[2]);+ *(fileNames[FILENAMES_BUFFER_SIZE-1]+strlen(fileNames[FILENAMES_BUFFER_SIZE-1])-3) = 's';+ *(fileNames[FILENAMES_BUFFER_SIZE-1]+strlen(fileNames[FILENAMES_BUFFER_SIZE-1])-2) = 'd';+ *(fileNames[FILENAMES_BUFFER_SIZE-1]+strlen(fileNames[FILENAMES_BUFFER_SIZE-1])-1) = 0; - writeBuffer(buffer, CHR_SIZE, sec[1], fileNames[1023], "wb");+ writeBuffer(buffer, CHR_SIZE, sec[1], fileNames[FILENAMES_BUFFER_SIZE-1], "wb"); } //Data chunks. Output by other sections.@@ -341,6 +349,12 @@ void main(int argc, char **argv) { eofdetect = fgetc(mapFile); } ++ for (int i = 0; i < FILENAMES_BUFFER_SIZE; i++) {+ free(fileNames[i]);+ }++ //close the world. open the nExt. fflush(wrlFile); fclose(wrlFile);
Hello, I have a problem with unpacking the map. When I decompiled the map, the information about the zones that the player cannot enter (the "Passable" brush on the level editor panel) is not imported.Screen #1P.S. I applied this zone myself, it was not in the decompiled mapFor example, in the original, it is not possible to go into the river. After decompiled a level with river, do a Rebuld patch and compile the map, I can freely move into these zones.Screen: #2, #3Can you say something about this situation?P.S.2. Sory for my bad English.