Failed to open init!

I’m not sure what is wrong but, I have been working on a small gamemode and whenever I try to laod it in single player it doesn’t work at all

Couldn't include file 'GMOD Tournament\gamemode\init.lua' (File not found)
There was a problem opening the gamemode file 'GMOD Tournament/gamemode/init.lua'

Registering gamemode 'GMOD Tournament' derived from 'base'

Then abit lower I get this error

Couldn't include file 'GMOD Tournament\gamemode\cl_init.lua' (File not found)
There was a problem opening the gamemode file 'GMOD Tournament/gamemode/cl_init.lua'

Registering gamemode 'GMOD Tournament' derived from 'base'

What could that mean? It says File not Found but I obviously have both those files in place? Any ideas? Need code?

Server-Side can’t include client-side files if im not mistaken. You’ll have to do that in a shared file to connect them.

[lua]AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )

include( ‘shared.lua’ )[/lua] that’s all I included in init.lua

[editline]25th October 2010[/editline]

Shall I take that out?

please write down your shared.lua

[lua]GM.Name = “GMOD Tournament”
GM.Author = “C to the UNIT”
GM.Email = “Censored”
GM.Website = “N/A”

function GM:Initialize()
self.BaseClass.Initialize( self )

local COLOR_WHITE = Color(255,255,255,255)
local COLOR_BLACK = Color(0,0,0,255)
local COLOR_RED = Color(255, 0, 0, 255)
local COLOR_ORANGE = Color(255, 69, 0, 255)
local COLOR_YELLOW = Color(200, 200, 0, 255)
local COLOR_GREEN = Color(0,255,0,255)
local COLOR_BLUE = Color(0,0,255, 255)
local COLOR_PURPLE = Color(128,0,128, 255)
local COLOR_GRAY = Color(150, 150, 150, 255)

team.SetUp(0, “Spectator”, Color(COLOR_GRAY))
team.SetUp(1, “Prodigies”, Color(COLOR_BLUE))
team.SetUp(2, “Slayers”, Color(COLOR_RED))


[editline]25th October 2010[/editline]

Write down your all lua xD, sorry

lol, ok. Init and cl_init too?

Yep, and full of them


Sorry, I dunno, I can’t see any mistakes

That’s what I was thinking haha! Anyone else see something wrong?

Try including init & cl_init in shared and remove the include to shared in both.

alright one moment

In my opinion, There is something bug no the server or I dunno

That’s my console from after doing what smelly said!

Have you been modifying the base gamemode? I see it errors on line 353 about osR being nil, but when I check the file, line 353 is empty and a search for osR says it can’t be found.

I have not, all I have done is made my own gamemode and try to implement it.

Is your gmod up to date? Look in garrysmod/gamemodes, if there’s a folder called “base” remove it.

Are you sure your folder structure is correct?

You’re going to get banned.
cough SethHack V2 Loaded

Do you have init.lua? It says init.lua is not found.