Kann den Fehler bestätigen. Was aber die Stringutil bei nem Baum sucht ist mir ein Rätsel
. Ich vermute eine Interferenz einer anderen Datei, denn die Dateien des Baums sehen sauber aus...
EDIT: Hab den Fehler gefunden! Ergänze gleich den Post!
The error is in dlcs/nordic_1/main.lua at function filterTrees. Here a fixed version writen by me. Feel free to use
.
local function filterTrees(treetype)
return function (fileName, data)
nordic_tree = ff.combine({ nordicDlcOrMod, ff.model.tree })
typeToPath = {
nordic = "dlcs/nordic_1/res/models/model/tree/nordic/",
nordic_simple = "dlcs/nordic_1/res/models/model/tree/simple/",
}
if string.starts(fileName, "mods/") then
--mods always okay
return true
elseif not nordic_tree(fileName, data) then
--not nordic tree (Vanilla, USA, ...)
return false
else
--a nordic tree
path = typeToPath[treetype]
if(path == nil) then
--invalid type requested = Return tree is not of requested type... = false
return false
else
--true, if tree is of requested type (checked by path)
return string.starts(fileName, path)
end
end
end
end
Alles anzeigen
Filter-Properties:
- Trees from Mods always pass filter
- Trees from non-nordic will not pass
- Trees from nordic will pass, if requested type equals the tree type, which is checked by directory.
Error occured, because typeToPath[treetype] in line 18 was nil for treetype = "nordic_simple". This leads to the displayed error in string.starts(...).
@Xanos, @mediziner: Ihr scheint hier die Ansprechpartner zu sein
.