• Skeleton gamemode crashes client
    0 replies, posted
Hi, I'm trying to write a gamemode, however the skeleton that I've assembled seems to crash the client. When I start the server no errors occur, when I connect to it I get a "Too many Lua Errors! Sorry!" and am disconnected. errors in the console: [code] Couldn't include file 'climb\gamemode\cl_init.lua' (File not found) (<nowhere>) Couldn't Load Init Script: 'climb/gamemode/cl_init.lua' [/code] here's the skeleton I have so far: gamemodes/climb/ climb.txt [code] "climb" { "base" "base" "title" "Climb" } [/code] gamemode/ init.lua [lua] --[[ Climb ]]-- AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) [/lua] shared.lua [lua] --[[ Climb ]]-- GM.Name = "Climb" GM.Author = "Newbrict" GM.Email = "newbrict@gmail.com" GM.Website = "www.google.com" function GM:Initialize() end [/lua] cl_init.lua [lua] --[[ Climb ]]-- include( "shared.lua" ) [/lua] =========SOLUTION============ I had to add add this line to my autoexec.cfg: gamemode "climb" I already had that in my server.cfg so I instead added this line: exec server.cfg
Sorry, you need to Log In to post a reply to this thread.