ULX

Author Topic: Resource.lua not working  (Read 10765 times)

0 Members and 1 Guest are viewing this topic.

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Resource.lua not working
« on: May 10, 2010, 03:34:14 PM »
Zomg, my life and my server. I get one thing working, another breaks.
Well, I'm so needy =-| I can't help it. Sorry to all you dedicated people who help peoples out.

Anyway.

Ok, I must of screwed something up. It was all working fine and dandy. And it suddenly stopped making people download things. I'm not sure when it started NOT working. I believe it was a Gmod update and after I updated my server. (Don't quote me on this). Idk if something happened and you have to change how the resource.lua is setup now?

Then again I'm not sure if it is the resource.lua that is messing this up. (is there anything that could possibly mess this up?)

Here is the resource.lua file.. yeah I know I could of used AddFile but I didn't feel like it.

I would post on facepunch, but like 62% of the people on facepunch are asses.....

Also, I know this isn't much to go on, if possibly some thing else is needed I'll post it.

Code: [Select]
//
//
//
//Anime Model's

resource.AddSingleFile("models/player/NaluriPM.dx80.vtx")
resource.AddSingleFile("models/player/NaluriPM.dx90.vtx")
resource.AddSingleFile("models/player/naluripm.mdl")
resource.AddSingleFile("models/player/NaluriPM.phy")
resource.AddSingleFile("models/player/NaluriPM.sw.vtx")
resource.AddSingleFile("models/player/naluripm.vvd")
resource.AddSingleFile("models/player/solid_snake.dx80.vtx")
resource.AddSingleFile("models/player/solid_snake.dx90.vtx")
resource.AddSingleFile("models/player/solid_snake.mdl")
resource.AddSingleFile("models/player/solid_snake.phy")
resource.AddSingleFile("models/player/solid_snake.sw.vtx")
resource.AddSingleFile("models/player/solid_snake.vvd")
resource.AddSingleFile("models/player/miku.dx80.vtx")
resource.AddSingleFile("models/player/miku.dx90.vtx")
resource.AddSingleFile("models/player/miku.mdl")
resource.AddSingleFile("models/player/miku.phy")
resource.AddSingleFile("models/player/miku.sw.vtx")
resource.AddSingleFile("models/player/miku.vvd")
resource.AddSingleFile("models/player/boxopencigshib.dx80.vtx")
resource.AddSingleFile("models/player/boxopencigshib.dx90.vtx")
resource.AddSingleFile("models/player/boxopencigshib.mdl")
resource.AddSingleFile("models/player/boxopencigshib.phy")
resource.AddSingleFile("models/player/boxopencigshib.sw.vtx")
resource.AddSingleFile("models/player/boxopencigshib.vvd")
resource.AddSingleFile("models/player/boxopenshib.dx80.vtx")
resource.AddSingleFile("models/player/boxopenshib.dx90.vtx")
resource.AddSingleFile("models/player/boxopenshib.mdl")
resource.AddSingleFile("models/player/boxopenshib.phy")
resource.AddSingleFile("models/player/boxopenshib.sw.vtx")
resource.AddSingleFile("models/player/boxopenshib.vvd")
resource.AddSingleFile("models/player/closedboxshib.dx80.vtx")
resource.AddSingleFile("models/player/closedboxshib.dx90.vtx")
resource.AddSingleFile("models/player/closedboxshib.mdl")
resource.AddSingleFile("models/player/closedboxshib.phy")
resource.AddSingleFile("models/player/closedboxshib.sw.vtx")
resource.AddSingleFile("models/player/closedboxshib.vvd")
resource.AddSingleFile("models/player/cocn.dx80.vtx")
resource.AddSingleFile("models/player/cocn.dx90.vtx")
resource.AddSingleFile("models/player/cocn.mdl")
resource.AddSingleFile("models/player/cocn.phy")
resource.AddSingleFile("models/player/cocn.sw.vtx")
resource.AddSingleFile("models/player/cocn.vvd")
resource.AddSingleFile("models/player/emptyboxshib.dx80.vtx")
resource.AddSingleFile("models/player/emptyboxshib.dx90.vtx")
resource.AddSingleFile("models/player/emptyboxshib.mdl")
resource.AddSingleFile("models/player/emptyboxshib.phy")
resource.AddSingleFile("models/player/emptyboxshib.sw.vtx")
resource.AddSingleFile("models/player/emptyboxshib.vvd")
resource.AddSingleFile("models/player/oldcigshib.dx80.vtx")
resource.AddSingleFile("models/player/oldcigshib.dx90.vtx")
resource.AddSingleFile("models/player/oldcigshib.mdl")
resource.AddSingleFile("models/player/oldcigshib.phy")
resource.AddSingleFile("models/player/oldcigshib.sw.vtx")
resource.AddSingleFile("models/player/oldcigshib.vvd")
resource.AddSingleFile("models/player/phycignew.dx80.vtx")
resource.AddSingleFile("models/player/phycignew.dx90.vtx")
resource.AddSingleFile("models/player/phycignew.mdl")
resource.AddSingleFile("models/player/phycignew.phy")
resource.AddSingleFile("models/player/phycignew.sw.vtx")
resource.AddSingleFile("models/player/phycignew.vvd")
resource.AddSingleFile("models/player/phycigold.dx80.vtx")
resource.AddSingleFile("models/player/phycigold.dx90.vtx")
resource.AddSingleFile("models/player/phycigold.mdl")
resource.AddSingleFile("models/player/phycigold.phy")
resource.AddSingleFile("models/player/phycigold.sw.vtx")
resource.AddSingleFile("models/player/phycigold.vvd")
resource.AddSingleFile("models/player/pissedmeoff.dx80.vtx")
resource.AddSingleFile("models/player/pissedmeoff.dx90.vtx")
resource.AddFile("models/player/pissedmeoff.mdl")
resource.AddSingleFile("models/player/pissedmeoff.phy")
resource.AddSingleFile("models/player/pissedmeoff.sw.vtx")
resource.AddSingleFile("models/player/pissedmeoff.vvd")
     
//Anime Materials


function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // don't spam people with useless .svn folders
AddDir(fdir)
end
end
 
for k,v in pairs(file.Find("../"..dir.."/*")) do
resource.AddFile(dir.."/"..v)
end
end
 
AddDir("materials/naluriv3")
AddDir("materials/models/humans/NYPD")
AddDir("models/humans/NYPD")
AddDir("models/player/suits")
AddDir("materials/models/player/slow")
AddDir("models/player/slow")
AddDir("materials/models/player/solid_snake")
AddDir("materials/models/player/hatsunemiku")
AddDir("materials/ipha")
AddDir("materials/jaanus")
AddDir("materials/katharsmodels/contraband")
AddDir("materials/katharsmodels/syringe_in")
AddDir("materials/katharsmodels/syringe_out")
AddDir("materials/models/player/drug")
AddDir("materials/models/player/druggg_mod")
AddDir("materials/models/player/shibboro")
AddDir("models/drug_mod")
AddDir("models/ipha)
AddDir("models/jaanus")
AddDir("models/katharsmodels/contraband/jointjes")
AddDir("models/katharsmodels/contraband/zak_wiet")
AddDir("models/katharsmodels/syringe_in")
AddDir("models/katharsmodels/syringe_out")
AddDir("models/weed")





Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Resource.lua not working
« Reply #1 on: May 10, 2010, 04:03:27 PM »
Nothing jumps out at me as being wrong... no errors, I assume?
Experiencing God's grace one day at a time.

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #2 on: May 10, 2010, 04:28:37 PM »
You are correct, no errors.

Well that's not completely true because, there is still the error that shows when your missing a model.
Though I presume your not talking about that error. =-P
« Last Edit: May 10, 2010, 04:33:12 PM by Frrz »





Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #3 on: May 10, 2010, 06:17:02 PM »
Just to say, I tried reuploading everything from the server to the fastdownload. And to no avail =-(.





Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Resource.lua not working
« Reply #4 on: May 10, 2010, 09:26:28 PM »
Just a very small thing to try...since the first Gmod update got pooled back because LuaJIT was causing trouble if using an 'old' Lua 5.0 'arg' variable...
Try changing your // comment lines to --
"--" is actually Lua's "Official" comment.
and
Try removing the ' from your "Models" category name.

I know, I know, may have worked fine before, but, Garry's updates seem to be tweaking odd things we're still slowing seeing trickle in.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #5 on: May 11, 2010, 12:33:17 PM »
No use, I even tried taking out the comment lines.
Could it possibly be something else? I don't think it's the fastdownload because the cache downloads fine.





Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Resource.lua not working
« Reply #6 on: May 11, 2010, 03:30:31 PM »
Can you download www.yourfastdl.com/path/models/blah.vtx using a browser?
Remember, most web servers are case sensitive, and your permissions may also be changed (when/if you use ftp)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #7 on: May 11, 2010, 04:34:32 PM »
It says I don't have permission to access the page, I'll have to talk to my friend and see if he will let me get into the page (from web browser).





Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Resource.lua not working
« Reply #8 on: May 11, 2010, 06:06:58 PM »
Two possibles;
If the host you're using is 100% dedicated to game hosting, it's possible they check to make sure it's not someone with a web browser attempting to download files (like you are trying to test).
OR
If they're just a general  host any file you want type hosting company, then the two points from my previous post remain true.
Incorrect file permissions set by the ftp client.
Incorrect case sensitivity.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #9 on: May 11, 2010, 07:02:38 PM »
I don't know. I'm not sure if I stated this before but, I don't "own" the server or the fast-download. I only, "use" them. My Friend is the real owner and he gave them to me. And most of the time with somthing major he needs to do it,  (ei, I had a problem where CSS content needed to be added and I could resolve it untill he did it) and normaly hes busy with college things and I can't talk to him. When I get word from him I'll post back or have him post back.





Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #10 on: May 12, 2010, 01:20:31 PM »
Anyway, I tested it and yes I am able to download things from a web-browser.

Btw the resource file should be in ->
garrysmod/lua/autorun/server

correct?
Just making sure, in case I might of accidentally moved it





Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
Re: Resource.lua not working
« Reply #11 on: May 13, 2010, 01:44:48 PM »
I'm not quite sure what I did, but it works now =-D