• GoFish 2 error
    3 replies, posted
So i converted gofish 2 to gmod13, but i load the gamemode and it works fine till i enter the game then, i get kicked for tomany lua errors, here is what the console is saying. [Code] [Midnightxrush] Lua Error: Couldn't include file 'fish\gamemode\cl_init.lua' (File not found) (<nowhere>) [Midnightxrush|] Lua Error: Couldn't Load Init Script: 'fish/gamemode/cl_init.lua' Dropped Midnightxrush from server ("Too many Lua Errors! Sorry!") [/Code] here is the Cl_init.lua [CODE] include( 'shared.lua' ) include( 'helpmenu.lua' ) include( 'cl_scoreboard.lua' ) include( 'cl_panels.lua' ) language.Add ("fishing_hook", "Fishing Hook") language.Add ("fishing_rod", "Fishing Rod") language.Add ("fishing_bait", "Fishing Bait") language.Add ("npc_helicopter", "Helicopter") language.Add ("npc_combinegunship", "Gunship") language.Add ("prop_physics_multiplayer", "Prop") TOTAL_SCORE = 0 MONEY = 0 local colorbg4 = Color(0,0,0,0) local color = Color(50, 178, 255, 255) local colorbg = Color(50, 50, 50, 100) local timervar = 0 function Fade( a, b, frac ) local res, me res = Color( 0, 0, 0, 0 ) me = ( 1 - frac ) res.r = ( a.r * me ) + ( b.r * frac ) res.g = ( a.g * me ) + ( b.g * frac ) res.b = ( a.b * me ) + ( b.b * frac ) res.a = ( a.a * me ) + ( b.a * frac ) return res end function MoneyChanged( um ) local score = um:ReadShort() MONEY = score end usermessage.Hook("MoneyChanged", MoneyChanged) function TotalCatchesChanged( um ) local score = um:ReadShort() TOTAL_SCORE = score end usermessage.Hook("TotalCatchesChanged", TotalCatchesChanged) function ScoreChanged( um ) local x = um:ReadShort() if x < 0 then color = Color(255, 0, 0, 255) else color = Color(255, 255, 255, 255) end timervar = CurTime() end usermessage.Hook("ScoreChanged", ScoreChanged) function drawthehud() surface.SetFont( "TargetID" ) local kk = (CurTime() - timervar) / 1 if kk > 1 then kk = 1 elseif kk < 0 then kk = 0 end local text = "Your Score: ".. LocalPlayer():Frags( ) local text4 = "Total Catches: ".. TOTAL_SCORE local text5 = "Cash: $".. MONEY local w, h = surface.GetTextSize( text4 ) local x,y = ScrW()-(w+8), ScrH()/6 line = 32 draw.RoundedBox(16, -20, line, w+8+25, 32, colorbg) draw.SimpleText("[F1] for Help", "TargetID", 4 +1, line+4 +1, Color(0, 0, 0, 100), 0, 0) draw.SimpleText("[F1] for Help", "TargetID", 4, line+4, Color(50, 178, 255, 255), 0, 0) line = line + 32 + 10 draw.RoundedBox(16, -20, line, w+8+25, 32, colorbg ) draw.SimpleText(os.date("%X"), "TargetID", 4 +1, line+4 +1, Color(0, 0, 0, 100), 0, 0) draw.SimpleText(os.date("%X"), "TargetID", 4, line+4, Color(50, 178, 255, 255), 0, 0) line = line + 32 + 10 draw.RoundedBox(16, -20, line, w+8+25, 32, Fade( color, colorbg, kk ) ) draw.SimpleText(text, "TargetID", 4 +1, line+4 +1, Color(0, 0, 0, 100), 0, 0) draw.SimpleText(text, "TargetID", 4, line+4, Color(50, 178, 255, 255), 0, 0) line = line + 32 + 10 draw.RoundedBox(16, -20, line, w+8+25, 32, Fade( color, colorbg, kk ) ) draw.SimpleText(text4, "TargetID", 4 +1, line+4 +1, Color(0, 0, 0, 100), 0, 0) draw.SimpleText(text4, "TargetID", 4, line+4, Color(50, 178, 255, 255), 0, 0) line = line + 32 + 10 draw.RoundedBox(16, -20, line, w+8+25, 32, Color(0, 255, 0, 100) ) draw.SimpleText(text5, "TargetID", 4 +1, line+4 +1, Color(0, 0, 0, 100), 0, 0) draw.SimpleText(text5, "TargetID", 4, line+4, Color(50, 178, 255, 255), 0, 0) end hook.Add("HUDPaint", "drawthehud", drawthehud) --[/CODE]
sv_kickerrornum 0 in server.cfg for the too many lua errors kick.
[QUOTE=Lolcats;42503402]sv_kickerrornum 0 in server.cfg for the too many lua errors kick.[/QUOTE] what console it throwing in server. [Code][AddCSLuaFile] Couldn't find 'weapons/npc_mover/cl_init.lua' (<nowhere>) [AddCSLuaFile] Couldn't find 'weapons/prop_seller/cl_init.lua' (<nowhere>) [ERROR] gamemodes/fish/entities/entities/fishing_fish/init.lua:21: unexpected symbol near '|' 1. unknown - gamemodes/fish/entities/entities/fishing_fish/init.lua:0 Executing dedicated server config file server.cfg Nav File is wrong or something (4) Client "Midnightxrush" connected (10.0.1.13:27006). Dropped Midnightxrush from server (Disconnect by user.) [/Code]
You didn't use AddCSLuaFile anywhere.
Sorry, you need to Log In to post a reply to this thread.