• Problem running a server
    12 replies, posted
Hello,i am trying to setup a server with perp mod and i get some erros i am new in lua so please help me... Heres the Errors i get : [IMG]http://up386.siz.co.il/up2/x4zqhvondtiw.jpg[/IMG] I Beg you for help please... heres the lines of the errors Sh_Mixtures eror [CODE] MixtureTable.ResultsRef = MixtureTable.Results; MixtureTable.Results = nil; for id, item in pairs(ITEM_DATABASE) do if item.Reference == MixtureTable.ResultsRef then MixtureTable.Results = id; MixtureTable.Name = item.Name; break; end end if (!MixtureTable.Results) then Error("Missing result real ID from mixture " .. MixtureTable.ID); end Msg("\t-> Loaded " .. MixtureTable.Name .. "\n"); MIXTURE_DATABASE[MixtureTable.ID] = MixtureTable; end[/CODE] EmptyBeer error : [CODE]MIXTURE.Free = true; MIXTURE.RequiresHeatSource = false; MIXTURE.RequiresWaterSource = false; MIXTURE.RequiresSawHorse = false; function MIXTURE.CanMix ( player, pos ) return true; end GM:RegisterMixture(MIXTURE); [/CODE] sh_init Error : [CODE]Msg("Loading Mixtures...\n"); for k, v in pairs(file.Find("rp/gamemode/mixtures/*.lua","LUA")) do include("mixtures/" .. v); end [/CODE] sv_misc Errors : [CODE]/* function NexusTop ( ) for k, ply in pairs(ents.FindInSphere(Vector(-7267.128418, -9195.308594, 4400), 400)) do if ply:IsValid() and ply:IsPlayer() then if ply:IsAdmin() then return; else ply:Notify("Get the fuck off of the nexus") end; end end for k, ply in pairs(ents.FindInSphere(Vector(-6745.465820, -8667.694336, 4400.609863), 400)) do if ply:IsValid() and ply:IsPlayer() then if ply:IsAdmin() then return; else ply:Notify("Get the fuck off of the nexus") end; end end for k, ply in pairs(ents.FindInSphere(Vector(-6508.780273, -9406.659180, 4400.420410), 400)) do if ply:IsValid() and ply:IsPlayer() then if ply:IsAdmin() then return; else ply:Notify("Get the fuck off of the nexus") end; end end end; timer.Create("NexusTopCheck", 10, 0, NexusTop); */ /* function SetFirstNames () for k,v in pairs(player.GetAll()) do v:SetUMsgString("rp_fname", v:GetUMsgString("rp_fname", "John") end end timer.Create("SetFirstNames", 10, 0, SetFirstNames) */[/CODE] sv_hooks Errors : [CODE]function GM:InitPostEntity ( ) self.GatherInvalidNames(); timer.Simple(1, GAMEMODE.PushNumPlayers); end[/CODE] tmysql Errors : [CODE] Database:Query( String, function onComplete, return flags, random object to be used in callback ) function onComplete( [Object random object from query thing], Table result, Bool status, String error ) Database:Disconnect() - Close the current database connection and finish any pending queries Database:SetCharset( String character set ) Database:Poll() - Polls all active queries and calls their callbacks on completion local function onPlayerCompleted( ply, results, status, error ) --[[ if status == true, the error will be the mysql_last_id if doing an insert into an AUTO INCREMENT'd table ]] print( "Query for player completed", ply ) if status == QUERY_SUCCESS then PrintTable( results ) else ErrorNoHalt( error ) end end Database:Query( "select * from some_table", onPlayerCompleted, QUERY_FLAG_ASSOC, Player(1) ) local function onCompleted( results, status, error ) --[[ if status == true, the error will be the mysql_last_id if doing an insert into an AUTO INCREMENT'd table ]] print( "Query for completed" ) if status == QUERY_SUCCESS then PrintTable( results ) else ErrorNoHalt( error ) end end Database:Query( "select * from some_table", onCompleted, QUERY_FLAG_ASSOC ) function GM:OurMySQLCallback( results, status, error ) print( result, status, error ) end[/CODE] Please help me i am new in all this i beg you !
My eyes hurt only looking at that massive lua error orgy!
Don't screenshot your console, copy and paste. Also one of the first things I notice is you're missing the sql module. Install that.
[QUOTE=mcd1992;41873116]Don't screenshot your console, copy and paste. Also one of the first things I notice is you're missing the sql module. Install that.[/QUOTE] Please help me i beg you i am lost :( if you can
[QUOTE=tsgha777;41874142]Please help me i beg you i am lost :( if you can[/QUOTE] Don't use Perp.
[QUOTE=tsgha777;41874142]Please help me i beg you i am lost :( if you can[/QUOTE] If you don't know how to intsall the MySQL modules, then you shouldn't be running a server, however, you will never know if someone doesn't tell you so here goes: You need a DLL placed in the same directory as HL2.exe called libmysql.dll, which can be found [URL="http://dev.mysql.com/downloads/"]here[/URL]. You then need to place the relevant module in lua/bin/. The module is gmsv_timysql3_win32.dll I think, which can be found [URL="https://gmodmodules.googlecode.com/svn/trunk/gm_tmysql3/Release%20-%20GM13/gmsv_tmysql_win32.dll"]here[/URL]. Then you need to setup your config files in PERP accordingly. Import the datatable dump into your database, and then everything for the MySQL is set up.
[QUOTE=James xX;41874324]If you don't know how to intsall the MySQL modules, then you shouldn't be running a server, however, you will never know if someone doesn't tell you so here goes: You need a DLL placed in the same directory as HL2.exe called libmysql.dll, which can be found [URL="http://dev.mysql.com/downloads/"]here[/URL]. You then need to place the relevant module in lua/bin/. The module is gmsv_timysql3_win32.dll I think, which can be found [URL="https://gmodmodules.googlecode.com/svn/trunk/gm_tmysql3/Release%20-%20GM13/gmsv_tmysql_win32.dll"]here[/URL]. Then you need to setup your config files in PERP accordingly. Import the datatable dump into your database, and then everything for the MySQL is set up.[/QUOTE] Thank you very much ! you really helpd me ! but what about the other problems ? you can maybe add me skype or steam and help me..or you prefer to write here or praivte i will very appriceat it !
You do realize perp is illegal for you to run and you will either get DDosed to crap or get a DCMA. And considering this is a leaked version of Perp, I believe the above will happen to you.
So basically you want people to fix everything for you, anyways don't use PERP if you want to run a RP server use a different gamemode that's actually updated.
[QUOTE=ryankingstone;41878211]You do realize perp is illegal for you to run and you will either get DDosed to crap or get a DCMA. And considering this is a leaked version of Perp, I believe the above will happen to you.[/QUOTE] [QUOTE=wishbone;41878739]So basically you want people to fix everything for you, anyways don't use PERP if you want to run a RP server use a different gamemode that's actually updated.[/QUOTE] If he wants to run PERP then he will run PERP, sure there are reasons not to, but I don't think it's your place to tell him he can't. He's here asking for help, if you can't give that to him then I don't see why you are in this thread at all.
Read the facepunch rules, facepunch will [B]NOT[/B] help you with illegal copies of gamemodes.
[QUOTE=James xX;41879775]If he wants to run PERP then he will run PERP, sure there are reasons not to, but I don't think it's your place to tell him he can't. He's here asking for help, if you can't give that to him then I don't see why you are in this thread at all.[/QUOTE] I guess he can if he wants to but the question is why? The gamemode is a mess and there's DMCAs going around for PERP, i'm not telling him he should run it to be rude i'm trying to stop him from wasting time on it. Also, he's not really asking for help he's asking for someone to fix it for him basically.
[QUOTE=wishbone;41882143]I guess he can if he wants to but the question is why? The gamemode is a mess and there's DMCAs going around for PERP, i'm not telling him he should run it to be rude i'm trying to stop him from wasting time on it. Also, he's not really asking for help he's asking for someone to fix it for him basically.[/QUOTE] I do agree with you on all those points, but he needs to learn for himself otherwise he will just try and try and try and it will be very boring for all of us. This way, he will learn other stuff too, for example, how to install modules and what not.
Sorry, you need to Log In to post a reply to this thread.