@@ -229,25 +229,25 @@ function HandleModScript(MOD_DEF,Multi_pak)
229
229
local src = [[ .\_TEMP\DECOMPILED\]] .. file
230
230
if IsFileExist (src ) then
231
231
if _bRecreateMapFileTrees ~= nil then
232
- if _bAllowMapFileTreeCreator ~= nil then
233
- print (" MapFileTree creation/update on 2nd thread..." )
234
- Report (" " ," MapFileTree creation/update done by 2nd thread" )
232
+ -- if _bAllowMapFileTreeCreator ~= nil then
233
+ -- print(" MapFileTree creation/update on 2nd thread...")
234
+ -- Report(""," MapFileTree creation/update done by 2nd thread")
235
235
236
- -- copy it to a temp folder for processing
237
- -- because it may be removed later before creation is started/completed
238
- local src = [[ .\_TEMP\DECOMPILED\]] .. file
239
- local dest = [[ .\_TEMP_MAP\]] .. file
240
- CopyFile (src ,dest )
236
+ -- -- copy it to a temp folder for processing
237
+ -- -- because it may be removed later before creation is started/completed
238
+ -- local src = [[.\_TEMP\DECOMPILED\]]..file
239
+ -- local dest = [[.\_TEMP_MAP\]]..file
240
+ -- CopyFile(src,dest)
241
241
242
- if IsFileExist ([[ MapFileTreeSharedList.txt]] ) then
243
- WriteToFileAppend (file .. " \n " ,[[ MapFileTreeSharedList.txt]] )
244
- else
245
- WriteToFile (file .. " \n " ,[[ MapFileTreeSharedList.txt]] )
246
- end
247
- else
242
+ -- if IsFileExist([[MapFileTreeSharedList.txt]]) then
243
+ -- WriteToFileAppend(file.."\n",[[MapFileTreeSharedList.txt]])
244
+ -- else
245
+ -- WriteToFile(file.."\n",[[MapFileTreeSharedList.txt]])
246
+ -- end
247
+ -- else
248
248
-- in this thread processing
249
249
DisplayMapFileTreeEXT (ParseTextFileIntoTable ([[ .\_TEMP\DECOMPILED\]] .. file ),file )
250
- end
250
+ -- end
251
251
else
252
252
print (" Skipping MapFileTree creation/update" )
253
253
-- Report(""," Skipping MapFileTree creation/update")
@@ -3271,7 +3271,7 @@ function MapFileTree(TextFileTable,file)
3271
3271
local j = 0
3272
3272
repeat
3273
3273
j = j + 1
3274
- until string.find (TextFileTable [j ],[[ <Data template=]] ,1 ,true ) ~= nil
3274
+ until j > # TextFileTable or string.find (TextFileTable [j ],[[ <Data template=]] ,1 ,true ) ~= nil
3275
3275
3276
3276
for i = j ,# TextFileTable do
3277
3277
local text = TextFileTable [i ]
0 commit comments