Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: nathan736 on April 28, 2013, 06:16:03 PM
-
is download.txt not work i added a dir and nothing downloaded from it
models/humans/nypd
Aren't there normally a vtf or some other file explaining some properties of the mdl file that is required?
(I forget if it's necessary for ULX, my team may correct me)
Also, Where did you place your edited copy?
sorry wrong dir i edited the line to show the actual dir
in that dir nothing downloaded correctly for some reason
the vtf is 'sold separately' If you pass the model and not the texture, it will still display, it'll just have the 'missing texture' texture.
the file would still download anyways and show up localy right ?
ps: ill take a dive at this some time i wanted to post here first to see if i was doing anything stupid :(
-
Aren't there normally a vtf or some other file explaining some properties of the mdl file that is required?
(I forget if it's necessary for ULX, my team may correct me)
Also, Where did you place your edited copy?
-
the vtf is 'sold separately' If you pass the model and not the texture, it will still display, it'll just have the 'missing texture' texture.
-
Created an issue to check to make sure it's still working: https://github.com/Nayruden/Ulysses/issues/205
-
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/sh/util.lua#L213
function ulx.addForcedDownload( path )
if ULib.fileIsDir( path ) then
files = ULib.filesInDir( path )
for _, v in ipairs( files ) do
ulx.addForcedDownload( path .. "/" .. v )
end
elseif ULib.fileExists( path ) then
resource.AddFile( path )
else
Msg( "[ULX] ERROR: Tried to add nonexistent or empty file to forced downloads '" .. path .. "'\n" )
end
end
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/end.lua#L15
local function doDownloadCfg( path )
-- Does the module exist for this?
if not ulx.addForcedDownload then
return
end
local lines = ULib.explode( "\n+", ULib.stripComments( ULib.fileRead( path ), ";" ) )
for _, line in ipairs( lines ) do
line = line:Trim()
if line:len() > 0 then
ulx.addForcedDownload( ULib.stripQuotes( line ) )
end
end
end
does this ever come back true ?
-
If you're talking about "if not ulx.addForcedDownload then", it's merely checking for the presence of the function, not checking if the function returns a certain value.
-
ah ok never knew you could do that ;)
-
Part of the reason why I love Lua is that pretty much everything (including functions) is a first class citizen (http://en.wikipedia.org/wiki/First-class_citizen).