Author Topic: How do change gamemode info  (Read 1730 times)

How do I change the gamemode name that gets displayed in servr list with script?
I want it to not say Custom without having to create a dumb ass gamemode

I'd like to know this as well.

I guess it's as simple as $Server::GamemodeInfo

But how do I find out?




Well, I didn't find a way to change it, but you can find the gamemode name with this:
Code: [Select]
$GameModeName = restWords(strReplace(restWords(strReplace(filePath($GameModeArg),"/"," ")),"_"," "));

echo($GameModeName);

And it's just a dumb avatar I've had forever. It's supposed to be like a quality assurance label. I've meant to change it for a while.

._.
But hao do I change it?
$gamememodearg = ?
Or
Watever
There has to be a possibility
Maybe run a trace while loading a gamemode to see hao it's done?

I would recommend not changing $gamememodearg.

I would recommend not changing $gamememodearg.
Because ducks what happens if I do it?

It's used for scripts to figure out what gamemode is currently running. If you change it the scripts might get confused.

It's used for scripts to figure out what gamemode is currently running. If you change it the scripts might get confused.
But would it work?

But would it work?
No idea. You can try, but my guess is no.

Code: [Select]
$GameModeName = restWords(strReplace(restWords(strReplace(filePath($GameModeArg),"/"," ")),"_"," "));
Waitwaitwaitwiataiatdad that's wayy too long to not be shorten-able.

Why not just use getSubStr((%a=fileBase($GameModeArg)), strPos(%a,"_")+1,strLen(%a)); ?

Why not use getWord(strReplace(filePath($GameModeArg),"_"," "),1)