Code: Select all
resource.AddFile("sound/siege/jihad.wav")
resource.AddFile("sound/siege/big_explosion.wav")
resource.AddFile("materials/vgui/entities/weapon_jihadbomb.vtf")
resource.AddFile("materials/vgui/entities/weapon_jihadbomb.vmt")
resource.AddFile("models/weapons/v_jb.mdl")
resource.AddFile("models/weapons/v_jb.dx80")
resource.AddFile("models/weapons/v_jb.dx90")
resource.AddFile("models/weapons/v_jb.sw.vtx")
resource.AddFile("models/weapons/v_jb.vvd")
resource.AddFile("models/weapons/w_jb.mdl")
resource.AddFile("models/weapons/w_jb.dx80")
resource.AddFile("models/weapons/w_jb.dx90")
resource.AddFile("models/weapons/w_jb.sw.vtx")
resource.AddFile("models/weapons/w_jb.vvd")
resource.AddFile("models/weapons/w_jb.phy")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb1.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb1.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb1_planted.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb1_ref.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb2.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb2.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb3b.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb3b.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/and.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/hand.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_04.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_04.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_45.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_45.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_active.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_active.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_off.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_off.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_off_ref.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_on.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_on.vtf")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/screen_on_ref.vtf")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/bomb1.vmt")
resource.AddFile("materials/models/weapons/v_models/pr0d.c4/bomb1_planted.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/bomb2.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/bomb3b.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/hand.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/screen_04.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/screen_45.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/screen_active.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/screen_on.vmt")
resource.AddFile("materials/models/weapons/w_models/pr0d.c4/screen_off.vmt")
http://gyazo.com/a55d4ca7e1a562546583fc24a1e83f32
I don't know what to do. He told me that he websynced it and that'd help. Let me show you the conversation between my and support.
Me: I said something about the FastDL not working.
Support: As for your Garrysmod issue, please make sure the files you uploaded and the files you are referencing are all in lowercase.
Me: about the Gmod issue, is the resource file suppose to be resource.add, resource.lua or resource.AddFile?
Support: The file name should be "resource.lua" or really whatever you want to name it, as long as it ends in .lua. The content inside should contain resource.AddFile. It should look something like this:
resource.AddFile("models/sf/block_3d_1x2.mdl")
resource.AddFile("materials/models/sf_block_black.vmt")
Me: > L 07/02/2013 - 17:22:30: Lua Error:
> [ERROR] lua/autorun/server/resource.lua:60: 'end' expected (to close 'if' at
> line 1) near '<eof>'
> 1. unknown - lua/autorun/server/resource.lua:0
> That's the error I get, and this is how my file starts. . .
>
> i don't know if that's the one. it's in garrysmodlogs
Support: That looks to be the correct error. I would try removing your first line in your resource file that start with the "if" statement. Your formatting was a bit off. I corrected this and reuploaded the file to the server. Please restart it so it can read the new file. Restart your client.
It doesn't appear you actually ran a websync. This needs to be done so when the server request the file for the clients it can be downloaded over fastdl.
Me: Generally said: doesn't work
Support: I just ran it and just about all the files which aren't being force downloaded are being placed there. Please wait 15 minutes, reboot the server and try again. If you have any more questions or need any more assistance, please feel free to ask.
Me: i restarted it, nothing happened.
Support: According to the Apache access_log file, the files are being downloaded by players now. What problem are you still seeing, exactly? It is probably a problem with the mod, seeing as the files are being downloaded. I would suggest asking our forums for help with this, as they would probably be able to help you more.
If you can help thank you so much!