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
[code]
Couldn't include file 'GMOD Tournament\gamemode\init.lua' (File not found)
[cpp]
There was a problem opening the gamemode file 'GMOD Tournament/gamemode/init.lua'
Registering gamemode 'GMOD Tournament' derived from 'base'
[/code]
Then abit lower I get this error
[code]
Couldn't include file 'GMOD Tournament\gamemode\cl_init.lua' (File not found)
[cpp]
There was a problem opening the gamemode file 'GMOD Tournament/gamemode/cl_init.lua'
Registering gamemode 'GMOD Tournament' derived from 'base'
[/code]
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
[QUOTE=runamagic;25641432]please write down your shared.lua[/QUOTE]
[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 )
end
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))
[/lua]
Interestig
[editline]25th October 2010[/editline]
Write down your all lua xD, sorry
lol, ok. Init and cl_init too?
Yep, and full of them
-snip-
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
[img]http://img525.imageshack.us/img525/4757/consoler.png[/img]
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.
[url]http://pastebin.com/Q97V1uW4[/url] Line 28 is missing it's function brackets.
Also... SethHack V2...
[QUOTE=uberpwns;25643995]You're going to get banned.
*cough* SethHack V2 Loaded
Do you have init.lua? It says init.lua is not found.[/QUOTE]
If you already read his console you might read that the sh2.dll (seth hack 2 module) has not been found.
He cannot get banned for lua cheats.
[QUOTE=Loures;25644020][url]http://pastebin.com/Q97V1uW4[/url] Line 28 is missing it's function brackets.
Also... SethHack V2...[/QUOTE]
I totally missed that, thanks!
Also stop bitching about SHV2 people, I was testing with the released source.
[editline]25th October 2010[/editline]
Alright I added the function parentheses and removed some unneccesary ends that I accidently added
my new console! I just don't understand what is wrong I can't see any errors
[img]http://img267.imageshack.us/img267/8875/console3.png[/img]
[EDITLINE]5:07[/EDITLINE]
-snip-
You know you can't have spaces in your gamemode folder, the name has to be, GMODTournament, do this and your problem will be fixed.
In the init.lua just do
[lua]
function GM:GetGameDescription() // Already implemented in gmod
return GM.Name // this will make your gamemode name GMOD Tournament
end[/lua]
[QUOTE=uberpwns;25643995]You're going to get banned.
*cough* SethHack V2 Loaded
Do you have init.lua? It says init.lua is not found.[/QUOTE]
umad bro
sethhack doesnt cause a vac ban
[QUOTE=Cubar;25645975]You know you can't have spaces in your gamemode folder, the name has to be, GMODTournament, do this and your problem will be fixed.
In the init.lua just do
[lua]
function GM:GetGameDescription() // Already implemented in gmod
return GM.Name // this will make your gamemode name GMOD Tournament
end[/lua][/QUOTE]
Oh so like
[lua]function GM:GetGameDescription()
return GM.Name GMOD Tournament -- or return GMOD Tournament
end[/lua]
like that?
Replace GMOD Tournament <--------- THAT THERE /gamemode/init.lua
to
GMODTournament <--------- THAT THERE /gamemode/init.lua
There must be no space between your GMOD and Tournament that's why you're getting the init.lua error
If you wanted it to have a game name use
[lua]
function GM:GetGameDescription() // Already implemented in gmod
return GM.Name
end[/lua]
That will get the GAMEMODES name from shared.lua
or do
[lua]function GM:GetGameDescription() // Already implemented in gmod
return "GMOD TOURNAMENT"
end[/lua]
Sorry, you need to Log In to post a reply to this thread.