resource.AddFile problem

okay so I downladed this:

and then I had the resource file like this:

resource.AddFile( “Fallout3/models/player/slow_anims.mdl” )

am i doing it right or? If not, can i have a step by step process on how to do it?

From what I’ve noticed, everything in a model path needs to be lowercase or it will fail.

resource.AddFile( “Fallout3/models/player/slow_anims.mdl” )

GOES TO

resource.AddFile( “fallout3/models/player/slow_anims.mdl” )

No, doesnt work. anything else though? appreciate it.

You also need to add the VTFs (Materials).

Make a lua file in lua/autorun/server and name it resources.lua and put this code in it:

[lua]resource.AddFile( “materials/vgui/a.vmt” )
resource.AddFile( “materials/vgui/a.vtf” )
resource.AddFile( “materials/vgui/blue.vmt” )
resource.AddFile( “materials/vgui/blue.vtf” )
resource.AddFile( “materials/vgui/burns.vmt” )
resource.AddFile( “materials/vgui/burns.vtf” )
resource.AddFile( “materials/vgui/c.vmt” )
resource.AddFile( “materials/vgui/c.vtf” )
resource.AddFile( “materials/vgui/climber1blue.vmt” )
resource.AddFile( “materials/vgui/climber1red.vmt” )
resource.AddFile( “materials/vgui/climber1tan.vmt” )
resource.AddFile( “materials/vgui/climbtimer.vmt” )
resource.AddFile( “materials/vgui/climbtimer.vtf” )
resource.AddFile( “materials/vgui/d.vmt” )
resource.AddFile( “materials/vgui/d.vtf” )
resource.AddFile( “materials/vgui/evilhomer.vmt” )
resource.AddFile( “materials/vgui/evilhomer.vtf” )
resource.AddFile( “materials/vgui/homer.vmt” )
resource.AddFile( “materials/vgui/homer.vtf” )
resource.AddFile( “materials/vgui/j.vmt” )
resource.AddFile( “materials/vgui/j.vtf” )
resource.AddFile( “materials/vgui/noob.psd” )
resource.AddFile( “materials/vgui/red.vmt” )
resource.AddFile( “materials/vgui/red.vtf” )
resource.AddFile( “materials/vgui/s.vmt” )
resource.AddFile( “materials/vgui/s.vtf” )
resource.AddFile( “materials/vgui/summer.vmt” )
resource.AddFile( “materials/vgui/summer.vtf” )
resource.AddFile( “materials/vgui/tan.vmt” )
resource.AddFile( “materials/vgui/tan.vtf” )
resource.AddFile( “materials/vgui/w.vmt” )
resource.AddFile( “materials/vgui/w.vtf” )
resource.AddFile( “materials/vgui/winterblue.vtf” )
resource.AddFile( “materials/vgui/winterred.vtf” )
resource.AddFile( “materials/vgui/wintertan.vtf” )
resource.AddFile( “materials/vgui/xhair01.vmt” )
resource.AddFile( “materials/vgui/xhair01.vtf” )
resource.AddFile( “materials/vgui/xhair02.vmt” )
resource.AddFile( “materials/vgui/xhair02.vtf” )
resource.AddFile( “materials/vgui/xhair03.vmt” )
resource.AddFile( “materials/vgui/xhair03.vtf” )
resource.AddFile( “materials/vgui/xhair04.vmt” )
resource.AddFile( “materials/vgui/xhair04.vtf” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.dx80.vtx” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.dx90.vtx” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.mdl” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.phy” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.sw.vtx” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.vvd” )
resource.AddFile( “models/player/slow/fallout_3/power_armor/slow.xbox.vtx” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_body.vmt” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_body.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_body_bump.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_decal.vmt” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_decal.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_decal_bump.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_helmet.vmt” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_helmet.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_helmet_bump.vtf” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_helmet_glass.vmt” )
resource.AddFile( “materials/models/player/slow/fallout_3/power_armor/slow_helmet_mask.vtf” )[/lua]

Are you using a generator for that?

yeah, its pretty simple and fast.

Mind sharing it with me?

http://www.facepunch.com/showthread.php?t=842886