• server startup errors
    10 replies, posted
I have a local server that I do all my coding on, but recently I've ran into an issue. Anything I put into lua/autorun/client or server isn't being loaded. I do get an error in the server console: for client side files - [AddCSLuaFile] Couldn't find 'autorun/client/foo.lua' (<nowhere>), and for server files - Couldn't include file 'autorun/server/foo.lua' (File not found) (<nowhere>). Previous files I have made still load perfectly fine, but when I create a new file in a working addon I have made I get the same errors above, even though everything else in the exact same directory is being loaded fine. This just began a few days ago and I'm not sure what I did to cause the issue in the first place.
Is there any code in these files? I used to get an error when the file was empty, similar to the one you're getting now.
Still get the errors with code in the files.
[QUOTE=MrRalgoman;52132641]Still get the errors with code in the files.[/QUOTE] Are these files in the addons folder? or just lua/?
Yes they are in Addon folders
Why don't you see the error paths, i'm pretty sure when you do an include that doesn't exists, there's a stacktrace that shows where did you call the AddCSLUA Also, would you mind in sharing everything so we can help you? It's not like you will have something that we'll steal, it's just to see what's really going on (Refering to your fastdl were you didn't show your fastdl server so we couldn't really see if files were there)
This is a local server where I just do my personal stuff. I don't have a fastdl setup and I am not calling the include or addcsluafile function. This is an error on startup, the server is saying its unable to include or dl the files in the lua/autorun directory. There is literally nothing for me to show, they are empty files and they still don't work even if I were to put code in them. [editline]21st April 2017[/editline] [URL="https://gyazo.com/93bd59a31f5b848bcac53df742c8a460"]Here is the error in my console.[/URL] [URL="https://gyazo.com/efc1b5d3dd76f10bea89042305065519"]Here is where the file is located.[/URL]
Thanks for the info MrRalgoman. From personal experience, I've had this issue only when the file is empty, or when I'm calling the AddCSLuaFile/include to the wrong location. I would try validating your server to make sure everything is where it needs to be.
Why are you doing addcslua on autorun/client? gmod already does that
[QUOTE=gonzalolog;52133276]Why are you doing addcslua on autorun/client? gmod already does that[/QUOTE] I understand that. Like I said above I am not calling the addcslua function because I already know that gmod should do it. [QUOTE]I don't have a fastdl setup and I am not calling the include or addcsluafile function.[/QUOTE] Gmod is failing to find the file even though it's clearly in the correct place.
bump, still having issues... Anyone have any ideas?
Sorry, you need to Log In to post a reply to this thread.