Hi, today I decided I'd venture out into the world of gamemode creation. However, whenever I try to load my gamemode it comes up with
[CODE]Error loading gamemode: !IsValidGamemode [btk]
L 07/01/2014 - 07:32:52: Engine error: Error loading gamemode: !IsValidGamemode [btk][/CODE]
I have garrysmod/gamemodes/btk and inside I have the files btk.txt, init.lua, cl_init.lua and shared.lua
My btk.txt:
[CODE]"Gamemode"
{
"base" "sandbox"
"title" "BuildToKill"
"maps" "^gm_"
"menusystem" "1"
"workshopid" ""
"settings"
}
[/CODE]
Thanks so much in advance. I'll supply additional info/details if needed.
Here's a skeleton game-mode. It shows how to set up the folders, the txt, etc...
Make sure the "Gamemode" part of the txt is "btk", etc... Review this RAR: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_redistributable/basedev_gamemode.rar[/url]
It also acts as a simple base as it supports recursive loading of files throughout several directories...
client, shared, server ( realms for those folders ), maps/ folder loads maps/<map_name>/ folder and nested items in shared-realm, content/ loads in shared realm and I think I have addons too.. Not sure..
The new one I'm releasing supports this: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_redistributable/basedev_gamemode/documentation/file_recursive_inclusions.txt[/url]
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_redistributable/basedev_gamemode/documentation/folder_structure_and_how_to_use_it.txt[/url]
Sorry, you need to Log In to post a reply to this thread.