Skip to content

Commit

Permalink
Fix bundling model vmfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Python1320 committed Jan 5, 2018
1 parent b1a8058 commit ca2f5c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ end
local file, respath,out = unpack(t)

if not file and not respath then
file = [[x:\do\GMod\metastruct\mapfiles\gm_construct_m3_114.vmf]]
respath = [[x:\do\GMod\metastruct\mapdata]]
print[[Usage: reslister [--format=bspzip] "c:\mymap\map.vmf" "c:\mymap\resources" "c:\mymap\reslist.txt"]]
return
end
out = out or [[reslist.txt]]

Expand Down Expand Up @@ -159,7 +159,7 @@ local function parse_mdl(f, fp)
local found
for _,path in next,paths do

if dogeneric(("materials/%s/%s.vtf"):format(path,material)) or dogeneric(("materials/%s/%s.vmt"):format(path,material)) then
if dogeneric(("materials/%s/%s.vmt"):format(path,material)) or dogeneric(("materials/%s/%s.vtf"):format(path,material)) then
--print("FOUND",path,material)
found=true
break
Expand Down Expand Up @@ -328,6 +328,7 @@ local function main()
for i=#t,math.max(1,#t-10),-1 do
print("",math.floor(t[#t][2]/1000),"KB",t[i][1])
end

end

main()

0 comments on commit ca2f5c9

Please sign in to comment.