• [Server]Help Thread
    20 replies, posted
I am making This thread for the reason that i am new to Gmod servers and instead of Making a million New threads ill just post my Questions Here. 1. Server Host Computer Stats [CODE]AMD FX-8350 4.5 Ghz OVer Clocked and water cooled Asus Sabertooth 990-FX 32Gb DDR3 10666 RAM 4TB HDD (Raid0) 1024mbps Comcast business Class [/CODE] 2.Server.cfg [CODE]gamemode DarkRP hostname "[WMCSN] DarkRP Guns Cars PVP" rcon_password "whywouldyoucare" sv_password "" sv_region 255 sv_lan 0 sv_logbans 1 sv_logecho 1 sv_logfile 1 sv_log_onefile 0 sv_noclipspeed 5 sv_noclipaccelerate 5 sv_defaultgamemode darkrp sv_gamemode darkrp sv_allowdownload 1 sv_allowupload 1 //Sandbox Settings sbox_godmode 0 sbox_noclip 0 sbox_maxprops 150 sbox_maxragdolls 5 sbox_maxnpcs 10 sbox_maxballoons 10 sbox_maxeffects 50 sbox_maxdynamite 10 sbox_maxlamps 20 sbox_maxthrusters 30 sbox_maxwheels 20 sbox_maxhoverballs 20 sbox_maxvehicles 6 sbox_maxbuttons 20 sbox_maxsents 20 sbox_maxemitters 5 sbox_maxspawners 3 sbox_maxturrets 2 //Server Settings net_maxfilesize 99999999 sv_minrate 0 sv_maxrate 250000 decalfrequency 10 sv_maxupdaterate 6600000 sv_minupdaterate 10 //Execute ban files exec banned_ip.cfg exec banned_user.cfg[/CODE] 3. Server Start Command [CODE]@echo off cd C:\srcds G:\GMODSERVERS\gms\steamapps\common\GarrysModDS\srcds -console -game garrysmod +ip 0.0.0.0 -port 27015 +map rp_bangclaw +maxplayers 32 +gamemode darkrp[/CODE] 4. [B][U]The QUESTION?[/U][/B] Ok So at This Point My Server IS Running Smoothly [B]BUT[/B] when some one drops a money bag [B]OR[/B] a printer prints a money bag and the hit [B]E[/B] on it they crash and the server Error's 5. The Error [CODE][ERROR] gamemodes/darkrp/entities/spawned_money/cl_init.lua:13 attempt to concateenate field 'currency'(a nil value)[/CODE] 6. Did I Update DRP [CODE]YES[/CODE] 7. Did I update the Server and Cstrike [CODE]YES[/CODE] 8. Did I update ALL addons? [CODE]YES[/CODE] 9. Did I RAGE? [CODE]Yes Verry Much So[/CODE] 10. Did you Remove all addons and try? [CODE]Yes same D:[/CODE] 11. did you add the addons one at a time and try? [CODE]Yes Still Same D:[/CODE] 12. The LUA code in Entity/spawned_money cl_init.lua [CODE]include("shared.lua") function ENT:Initialize() end function ENT:Draw() self:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() surface.SetFont("ChatFont") local TextWidth = surface.GetTextSize(GAMEMODE.Config.currency..tostring(self:Getamount())) cam.Start3D2D(Pos + Ang:Up() * 0.9, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() Ang:RotateAroundAxis(Ang:Right(), 180) cam.Start3D2D(Pos, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end function ENT:Think() end[/CODE] init.lua [CODE]AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props/cs_assault/money.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject() self.nodupe = true self.ShareGravgun = true phys:Wake() end function ENT:Use(activator,caller) local amount = self:Getamount() activator:AddMoney(amount or 0) GAMEMODE:Notify(activator, 0, 4, "You have found " .. GAMEMODE.Config.currency .. (self:Getamount() or 0) .. "!") self:Remove() end function DarkRPCreateMoneyBag(pos, amount) local moneybag = ents.Create("spawned_money") moneybag:SetPos(pos) moneybag:Setamount(math.Min(amount, 2147483647)) moneybag:Spawn() moneybag:Activate() return moneybag end function ENT:Touch(ent) if ent:GetClass() ~= "spawned_money" or self.hasMerged or ent.hasMerged then return end ent.hasMerged = true ent:Remove() self:Setamount(self:Getamount() + ent:Getamount()) end[/CODE] Shared.lua [CODE]ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Spawned Money" ENT.Author = "FPtje" ENT.Spawnable = false ENT.AdminSpawnable = false function ENT:SetupDataTables() self:NetworkVar("Int",0,"amount") end local ENTITY = FindMetaTable("Entity") function ENTITY:IsMoneyBag() return self:GetClass() == "spawned_money" end[/CODE]
Remove your RCON pass word people can screw your server up... so please change it we do not want to see that. rcon_password "XXXXXXXXXXXXX"
[QUOTE=Trooper;42197406]Remove your RCON pass word people can screw your server up... so please change it we do not want to see that. rcon_password "XXXXXXXXXXXXX"[/QUOTE]' Thats not my pass i did change it I am not Entirely Stupid
DarkRP version 2.4.3 or 2.5.0?
Here is my cl_init.lua [code] include("shared.lua") function ENT:Initialize() end function ENT:Draw() self:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() surface.SetFont("ChatFont") local TextWidth = surface.GetTextSize(GAMEMODE.Config.currency..tostring(self:Getamount())) cam.Start3D2D(Pos + Ang:Up() * 0.9, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() Ang:RotateAroundAxis(Ang:Right(), 180) cam.Start3D2D(Pos, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end function ENT:Think() end [/code] And also you do not need -ip in the startup line it can result in errors
[QUOTE=DerfStew;42201680]Here is my cl_init.lua [code] include("shared.lua") function ENT:Initialize() end function ENT:Draw() self:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() surface.SetFont("ChatFont") local TextWidth = surface.GetTextSize(GAMEMODE.Config.currency..tostring(self:Getamount())) cam.Start3D2D(Pos + Ang:Up() * 0.9, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() Ang:RotateAroundAxis(Ang:Right(), 180) cam.Start3D2D(Pos, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end function ENT:Think() end [/code] And also you do not need -ip in the startup line it can result in errors[/QUOTE] Aucally i get errors without -ip in the start line [editline]15th September 2013[/editline] [QUOTE=ms333;42198864]DarkRP version 2.4.3 or 2.5.0?[/QUOTE] pretty sure its 2.4.3
[QUOTE=Wintergrasped;42201824]Aucally i get errors without -ip in the start line [editline]15th September 2013[/editline] pretty sure its 2.5[/QUOTE] That is weird normally people only have issues with the +ip is if they are in a data center But did you try replacing the dark cl_int.lua?
[QUOTE=DerfStew;42201680]Here is my cl_init.lua [code] include("shared.lua") function ENT:Initialize() end function ENT:Draw() self:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() surface.SetFont("ChatFont") local TextWidth = surface.GetTextSize(GAMEMODE.Config.currency..tostring(self:Getamount())) cam.Start3D2D(Pos + Ang:Up() * 0.9, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() Ang:RotateAroundAxis(Ang:Right(), 180) cam.Start3D2D(Pos, Ang, 0.1) draw.WordBox(2, -TextWidth*0.5, -10, GAMEMODE.Config.currency..tostring(self:Getamount()), "ChatFont", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end function ENT:Think() end [/code] And also you do not need -ip in the startup line it can result in errors[/QUOTE] So i copyed and pasted That code you gave and i still get that Error
Go to \garry's mod\gamemodes\darkrp\darkrp.txt and tell me what version you have!
[QUOTE=DerfStew;42201911]Go to \garry's mod\gamemodes\darkrp\darkrp.txt and tell me what version you have![/QUOTE] 2.4.3
If you want to add me on steam I will be able to IM without spamming the forums REMOVED BY USER [editline]16th September 2013[/editline] I just thought are you using notepad++?
[QUOTE=DerfStew;42202103]If you want to add me on steam I will be able to IM without spamming the forums REMOVED BY USER [editline]16th September 2013[/editline] I just thought are you using notepad++?[/QUOTE] Cant live without it :D
Is GM.Config.currency defined in your config.lua?
[QUOTE=ms333;42204910]Is GM.Config.currency defined in your config.lua?[/QUOTE] No.
Is this computer only used for a server or are you using it as a Client?
[QUOTE=Wintergrasped;42206296]No.[/QUOTE] Maybe that's the problem then?
[QUOTE=code_gs;42208077]Maybe that's the problem then?[/QUOTE] i tryed adding it still error [editline]16th September 2013[/editline] [QUOTE=DerfStew;42207675]Is this computer only used for a server or are you using it as a Client?[/QUOTE] this computer was built for the server and ONLY the server
Maybe try installing a different version of windows or try Ubunutu Server. If you need help with that just give me a message on steam. ( Add Me by the steam pic to the left)
Guys, it has nothing to do with his server or software. It's with his code.
[QUOTE=code_gs;42210069]Guys, it has nothing to do with his server or software. It's with his code.[/QUOTE] See That is the last thing I could have thought if he is running the current Gmod Update, Css Update & RP update I have nothing other than the OS corrupting SRCDS
[QUOTE=DerfStew;42210187]See That is the last thing I could have thought if he is running the current Gmod Update, Css Update & RP update I have nothing other than the OS corrupting SRCDS[/QUOTE] If it did that wouldnt there be more then 1 thing broken?
Sorry, you need to Log In to post a reply to this thread.