• Help With Error
    13 replies, posted
[CODE] [ERROR] lua/autorun/server/default.lua:16: attempt to call global 'SendFile' (a nil value) 1. infply - lua/autorun/server/default.lua:16 2. unknown - lua/autorun/server/default.lua:22[/CODE] [CODE] Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)][/CODE] This is on my DarkRP server and I believe this is causing crashes. This file doesn't even exist? [IMG]http://i.gyazo.com/6402b0d42b283964bb59cc649f16f18e.png[/IMG]
Could be one of your addons, hm?
Check your addons for the file. [editline]1st July 2014[/editline] Ninja'd
[QUOTE=Robotboy655;45264312]Could be one of your addons, hm?[/QUOTE] [QUOTE=code_gs;45264316]Check your addons for the file. [editline]1st July 2014[/editline] Ninja'd[/QUOTE] Just checked all addons and none had this file, then I looked at one custom module I had in darkrp and it wasn't that either :S
It could be an addon doing that.
[QUOTE=Acecool;45264361]It could be an addon doing that.[/QUOTE] Already replied to this but thanks for trying to help.
Have you checked your .gma addons? Quick google lookup told me that this is a part of the *cough* virus. [editline]1st July 2014[/editline] Make sure to check for hidden files.
I searched for defualbut all I found was this: garrysmod\lua\skins [CODE]local surface = surface local draw = draw local Color = Color SKIN = {} SKIN.PrintName = "Default Derma Skin" SKIN.Author = "Garry Newman" SKIN.DermaVersion = 1 SKIN.GwenTexture = Material( "gwenskin/GModDefault.png" ) SKIN.bg_color = Color( 101, 100, 105, 255 ) SKIN.bg_color_sleep = Color( 70, 70, 70, 255 ) SKIN.bg_color_dark = Color( 55, 57, 61, 255 ) SKIN.bg_color_bright = Color( 220, 220, 220, 255 ) SKIN.frame_border = Color( 50, 50, 50, 255 ) SKIN.fontFrame = "DermaDefault" SKIN.control_color = Color( 120, 120, 120, 255 ) SKIN.control_color_highlight = Color( 150, 150, 150, 255 ) SKIN.control_color_active = Color( 110, 150, 250, 255 ) SKIN.control_color_bright = Color( 255, 200, 100, 255 ) SKIN.control_color_dark = Color( 100, 100, 100, 255 ) SKIN.bg_alt1 = Color( 50, 50, 50, 255 ) SKIN.bg_alt2 = Color( 55, 55, 55, 255 ) SKIN.listview_hover = Color( 70, 70, 70, 255 ) SKIN.listview_selected = Color( 100, 170, 220, 255 )[/CODE] Thats line 0 - 40 [editline]1st July 2014[/editline] [QUOTE=Robotboy655;45264426]Have you checked your .gma addons? Quick google lookup told me that this is a part of the *cough* virus. [editline]1st July 2014[/editline] Make sure to check for hidden files.[/QUOTE] How would I go bout solving this?
I don't know, I wasn't infected. Google around, find your answer, try to do something yourself at least.
Open the .gma files using GMad, or disable all workshop addons and see if the issue is solved.
[QUOTE=Robotboy655;45264468]I don't know, I wasn't infected. Google around, find your answer, try to do something yourself at least.[/QUOTE] Just thought you may of had an answer and you could of passed it on. Could I delete all of my GMA files then restart the server and would this break anything?
Any addon can contain lua/autorun/default.lua and it will execute... What you can do is this: Load up your game, ensure IsAdmin returns true with you in the server and type: lua_find SendFile It will then print out in console all instances of "SendFile" within *.lua files.
[QUOTE=Acecool;45264514]Any addon can contain lua/autorun/default.lua and it will execute... What you can do is this: Load up your game, ensure IsAdmin returns true with you in the server and type: lua_find SendFile It will then print out in console all instances of "SendFile" within *.lua files.[/QUOTE] The server crashes so fast its hard. [editline]1st July 2014[/editline] It returns nothing [editline]1st July 2014[/editline] I searched the whole gmod folder and there is nothing under "default.lua" [editline]1st July 2014[/editline] Finding 'SendFile' SERVERSIDE: AdvDupe2_SendFile - (function - function: 0x0f422500) Got it! Thanks acecool. I will try to remove adv dupe and then see whats happening. [editline]1st July 2014[/editline] [CODE] [ERROR] lua/autorun/server/default.lua:16: attempt to call global 'SendFile' (a nil value) 1. infply - lua/autorun/server/default.lua:16 2. unknown - lua/autorun/server/default.lua:22 Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)] Finding 'SendFile' SERVERSIDE: [ERROR] lua/autorun/server/default.lua:16: attempt to call global 'SendFile' (a nil value) 1. infply - lua/autorun/server/default.lua:16 2. unknown - lua/autorun/server/default.lua:22 Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)][/CODE] Its still here though? And crashing.. Note this always happens when a player joins: [CODE] Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)] ServerLog: LtGen. Gunpowder (STEAM_0:1:43432950) is Authed[/CODE] [editline]1st July 2014[/editline] [QUOTE=F14;45264600]The server crashes so fast its hard. [editline]1st July 2014[/editline] It returns nothing [editline]1st July 2014[/editline] I searched the whole gmod folder and there is nothing under "default.lua" [editline]1st July 2014[/editline] Finding 'SendFile' SERVERSIDE: AdvDupe2_SendFile - (function - function: 0x0f422500) Got it! Thanks acecool. I will try to remove adv dupe and then see whats happening. [editline]1st July 2014[/editline] [CODE] [ERROR] lua/autorun/server/default.lua:16: attempt to call global 'SendFile' (a nil value) 1. infply - lua/autorun/server/default.lua:16 2. unknown - lua/autorun/server/default.lua:22 Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)] Finding 'SendFile' SERVERSIDE: [ERROR] lua/autorun/server/default.lua:16: attempt to call global 'SendFile' (a nil value) 1. infply - lua/autorun/server/default.lua:16 2. unknown - lua/autorun/server/default.lua:22 Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)][/CODE] Its still here though? And crashing.. Note this always happens when a player joins: [CODE] Timer Failed! [Simple][@lua/autorun/server/default.lua (line 20)] ServerLog: LtGen. Gunpowder (STEAM_0:1:43432950) is Authed[/CODE][/QUOTE] Anyone? D:
I have a few ideas. We could overwrite the function, then do a debug trace to give us the stack-trace of where the call originated from. That won't give us the addon though. I do have a fileio system that can read all addon contents; but engine.GetAddons( ) doesn't appear to work for me at the moment( fixed in dev )... Do me a favor, Do a PrintTable( engine.GetAddons( ) ); and see if it prints anything. If it does, before the server crashes we can do a print-out of all of the data in each addon. It'd look something like this ( [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/file_structure/addon_info_CLIENT.txt[/url] // [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/file_structure/addon_info_SERVER.txt[/url] ) but not quite, you'd need to enable -condebug to save the console.log instead of saving it like I do... But, it'd provide the name of the addon with the file, then we can go from there. Before we do that though, try one more thing. Search *.vmt, and *.vtf files in Garrys Mod using Notepad++ for some Lua, try include or AddCSLuaFile, and that function call. If it was the *cough*, there may be modified vtf/vmt files with Lua within. You can also search gma files the same way; any embedded Lua file is plain-text, I'd suggest that first, the texture files second, then the output all third.
Sorry, you need to Log In to post a reply to this thread.