• Gamemode creation
    4 replies, posted
I followed the instructions on the wiki verbatim to make an empty gamemode, with menusystem set to 1, but it doesn't appear to show up in the list of gamemodes, and 'gamemode name' returns that 'name' wasn't found. Need I do anything else not listed in the wiki? My apologies if this information is available somewhere else. (I tried placing the gamemode in the gamemodes folder for garrysmod beta, and garrysmod, as I'm not sure which is the correct folder. Neither worked.)
Yo dude It was the weirdest thing I was screwing around with gamemodes not to long ago. steps on how to make Game MODES work 1. Go to this site. [url]http://www.garrysmod.org/downloads/?a=view&id=130522[/url] 2. extract content 3. grab the file called BLANK_GAMEMODE_GMOD13 take that and put it in your programfiles(x86)/steam/steamapps/common/Garrysmod/garrysmod/gamemodes once in there rename BLANK_GAMEMODE_GMOD13 to what ever you want your gamemode to be named example: troopersmod 4.go into Gamemode_Name_Here.txt edit that should look something like this when your done [code] "troopersmod"-- THIS NEEDS TO BE THE SAME AS YOUR GAMEMODES NAME! { "base" "base"-- KEEP THAT THE SAME IT IS THE BASE LINE OF ALL GAMEMODES! "title" "Troopers Mod"-- TITLE OF YOUR GAME MODE CAN BE ANYTHING! "maps" "^bg_"-- what is at the beginning of a map! example "TTT_" "RP_" ECT. "menusystem" "1"-- KEEP THAT AT 1 "settings" {-- Leave this until you know more about server confige! } } [/code] once you configed all of that there is one more thing you must do! go into your gamemodes gamemode FILE in that file there should be 3 different files name 1.cl_init.lua (client side stuff IE HUDS ect) 2.init.lua(stuff like teams) 3.shared.lua(stuff shared between the server and client) -- pretty sure what that means IN CL_INIT.LUA GOES THESE COMMANDS [code] include( "shared.lua" ) [/code] IN INIT.LUA GOES THESE COMMANDS! [code] AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) [/code] AND IN SHARED GOES THIS COMMANDS [code] GM.Name = "Troopers Mod" GM.Author = "Trooper" GM.Email = "n/a" GM.Website = "n/a" DeriveGamemode( "sandbox" ) [/code] once all of that is set up save everything and go into Garrysmod and select your gamemode then launch a map to try it out. There will be Jack SHIT there until you go in and code in some stuff like teams ect. hope that helps that is what I did and my some what gamemode is working.
There we go! My problem was that I didn't put it under .../common/GarrysMod/garrysmod/gamemodes, I put it under .../<steamname>/(garrysmod -or- garrysmod beta)/garrysmod/gamemodes. Now it's working. Thanks a lot!
NP bro
why were you putting it in gmod beta when it came out of beta like 10 months ago
Sorry, you need to Log In to post a reply to this thread.