• Issues with changing gamemode name
    17 replies, posted
The server I help on runs the CombineControl gamemode, which is for roleplay. It only shows up as "combinecontrol" in the new server browser, though, and we'd very much like to change it to something like "Half-Life Roleplay - CombineControl". So far we've gotten the name to work in legacy browsers, but Garry's Mod's own browser still shows "combinecontrol", all lowercase and not very appealing for roleplay. We've looked around on multiple forums and tried their suggested means to no avail. I don't really know anything about development myself, but our server owner does. He says we've tried to edit the gamemode.txt file, shared.lua and just about every place we've seen a mention of the gamemode name. Some help to troubleshoot this would be very appreciated. The name has been stuck like this forever and I feel like it'd be a huge help to set it right. GAMEMODE_NAME = "Half-Life Roleplay - CombineControl"; GM.Name = "Half-Life Roleplay - CombineControl"; GM.Author = "Disseminate"; GM.Website = "www.CombineControl.com"; GM.Email = "admin@combinecontrol.com"; in both shared.lua and init.lua, does not work. gamemode txt file: "Half-Life Roleplay - CombineControl" { "base" "base" "title" "Half-Life Roleplay - CombineControl" "name" "Half-Life Roleplay - CombineControl" "menusystem" "1" "maps" "^rp_" }
The gamemode folder name, the name of the txt file and the first line of the txt file should all be the same. This is likely not the case looking at your txt file. Secondly, if there are other servers with the same gamemode, the server browser may have taken the name from another server. You should rename the gamemode folder, the txt file and the first line of the txt to something different.
The directory name should not contain spaces or special characters so how I am supposed to do that if I want the gamemode to be called "Half-Life Roleplay - CombineControl" ...
The name will be from GM.Name, but if you change this then you must also change the folder name or it may take it from another server with the same gamemode. If you are the only server with this gamemode then you do not need to do this.
Thanks for the help so far. Chen has now managed to get a server seperated from the listings, however it seems that GM.Name didn't work. It shows up as the folder name in the list instead, but we're checking if we left something wrong. For the record, Chen is the server owner but I wrote the first parts of the thread starter for the post I initially made.
Check to make sure you haven't overridden GM:GetGameDescription() or something. I think that might be what's used (which returns GM.Name by default) but I would need to double-check that later.
Hmm, we checked GM.Name, GM:GetGameDescription, the TXT name and the first line, but they are both set up as they should be, I think. It still ends up showing "halflifecombinecontrol" in the browser, though.
Bump? We're not sure what we might have done wrong. Everything seems to be in order yet the servers still show up as "halflifecombinecontrol".
Bump
What is your GM.Name and GetGameDescription right now?
Last I was shown the files, they both returned the name we intended the game to have. It also shows up correctly in the legacy browser.
GM.Name = "Half-Life Roleplay - CombineControl"; GM.Author = "Disseminate"; GM.Website = "www.CombineControl.com"; GM.Email = "admin@combinecontrol.com"; function GM:GetGameDescription() return self.Name; end
BUMP
BUMP
We've been going back and forth between having the altered gamemode name or not due to some LUA errors, but we're still trying to get it set to the intended name. I think a sort of checklist would help us. A list of all the code we need to set and where it should be located.
BUMP
BUMP
BUMP
Sorry, you need to Log In to post a reply to this thread.