Hello. I am developing a gamemode for Garry's Mod, just a simple OITC. I have everything set up properly (I hope). However, when I start up the server, I get this error: got NULL key in file gamemodes/mygamemode. Anyone know how to fix this? Thank you.
This is usually an error you get from editing .vmt's incorrectly; what's the structure of your mygamemode folder?
Structure of gamemode folder:
[CODE]
gamemodes/OITC:
content
entities
gamemode
cl_init.lua
init.lua
shared.lua
OITC.txt:[/CODE]
[CODE]"OITC"
{
"base" "base
"title" "One In The Chamber"
"maps" "^cs_"
"menusystem" "1"
"workshopid" ""
"settings"
{
1
{
"name" "cs_test"
"text" "Test"
"help" "Testing stuff"
"type" "numeric"
"default" "1"
}
}
}
[/CODE]
I haven't added anything to content and entities yet; is anything needed to be in there for it to work?
Move the txt file up one folder, so it is inside the oitc folder.
Apart from that I'm never confident with uppercase/mixed-case file names; make all your file/folder names lowercase.
Arrgghh, the forum managed to mess up the formatting. Again. The OITC.txt is part of that folder. Ill try everything lowercase. Thanks for the help.
Hehehe. Sorry. I was using a Garry's Mod Beta server to try to accomplish what I wanted. Going through another Youtube tutorial on how to set up a Garry's Mod 13 server. Sorry to bother.
Sorry, you need to Log In to post a reply to this thread.