• Error loading gamemode: !IsValidGamemode[thecyborg]
    2 replies, posted
NOTE: I didn't put this in "Help and Support" because this is a gamemode that I made. So, whenever I select my gamemode and try to load a map, I get this popup, then the game crashes: It says "Engine Error Error loading gamemode: !IsValidGamemode[thecyborg]" Here are ALL the associated files it has: In GarrysMod/garrysmod/gamemodes: a folder called "thecyborg". Inside that folder is thecyborg.txt: [code]"cyborg" { "base" "base" "title" "The Cyborg" "maps" "cb_" "menusystem" "1" "settings" { } } [/code] also inside thecyborg folder is the "gamemode" folder, inside that there is cl_init.lua, init.lua, and shared.lua. All three are empty because I havem't begun development yet. Does anyone know why this is happening? How can I fix this? [editline]17th May 2015[/editline] NOTE: All my other gamemodes work fine, however when I create a new gamemode like how I did above it doesn't work.
Put content into your init.lua. You cant include/load lua files that are empty.
I'll try that. [editline]17th May 2015[/editline] Oh. it works now, thanks! Lol, I feel so dumb now [editline]17th May 2015[/editline] Oh. it works now, thanks! Lol, I feel so dumb now
Sorry, you need to Log In to post a reply to this thread.