local success, defs = pcall(VFS.Include, 'gamedata/defs.lua', defsEnv)
defs.unitdefs and defs.featuredefs show up as empty tables.
Any ideas?
Fbi2Lua is broken.
Moderator: Moderators
Re: Fbi2Lua is broken.
yeah it is there in 77b5 so why can I not see it now?
Re: Fbi2Lua is broken.
The `success` return argument isn't there for nothing.
Re: Fbi2Lua is broken.
It was returning true btw. I also had to add some bs hack to get that far:
vfsutils.lua
vfsutils.lua
Code: Select all
function RecursiveFileSearch(startingDir, fileType, vfsMode)
local files = {}
local function AddSubDir(dir)
--bs hack
if vfsMode == nil then
vfsMode = VFS.RAW
end
--bs hack
--Spring.Echo(dir, fileType, vfsMode)
for _,file in ipairs(VFS.DirList(dir, fileType, vfsMode)) do
files[#files + 1] = file
end
for _,sd in ipairs(VFS.SubDirs(dir, "*", vfsMode)) do
AddSubDir(sd)
end
end
AddSubDir(startingDir)
return files
end
Re: Fbi2Lua is broken.
It has some VFS issue I never investigated, cause it always worked when either run from lobby or spring.exe (forgot which one worked).
Re: Fbi2Lua is broken.
possibly lobby, I was trying in spring.exe.