Page MenuHomeFeedback Tracker

New scripting command: serverName
Closed, ResolvedPublic

Description

I want to request a new scripting command to return name of the server, which is "hostname" value from server config. Should be available for both server and client.

Suggested name: serverName
Should return server name as string.

Details

Legacy ID
3878430301
Severity
None
Resolution
Fixed
Reproducibility
N/A
Category
Feature Request
Additional Information

Purpose of this command is to display server name in the game since at the moment the only way to find which server you are on is to look at scoreboard which is not available on higher difficulties and also crops server name if it is too long. This command will let mission designers display server name elsewhere: on HUD, on custom scoreboard, in welcome message, in diary on the map, etc.

Event Timeline

SaMatra edited Steps To Reproduce. (Show Details)Nov 16 2013, 12:36 AM
SaMatra edited Additional Information. (Show Details)
SaMatra set Category to Feature Request.
SaMatra set Reproducibility to N/A.
SaMatra set Severity to None.
SaMatra set Resolution to Fixed.
SaMatra set Legacy ID to 3878430301.May 7 2016, 5:25 PM
SaMatra edited a custom field.

What would be the purpose of the command?

SaMatra added a subscriber: SaMatra.May 7 2016, 5:25 PM

To display server name in the game since at the moment the only way to find which server you are on is to look at scoreboard which is not available on higher difficulties and also crops server name if it is too long. This command will let mission designers display server name elsewhere: on HUD, on custom scoreboard, in welcome message, in diary on the map, etc.

I'd want to see more "server info" commands. +1

How about just a serverConfig command?

zplix added a comment.Nov 16 2013, 1:59 PM

Doesn't really matter what the command is called from now, we just want the implementation. It's weird that they havn't implemented this command already, since it would be a VERY useful command.

Xeno added a subscriber: Xeno.May 7 2016, 5:25 PM
Xeno added a comment.Nov 17 2013, 1:03 AM

Yet another Déjà-vu
http://dev-heaven.net/issues/35591

Let's hope that this ticket won't be open in 1 1/2 years.

spy109 added a subscriber: spy109.May 7 2016, 5:25 PM

How is this not already available?

mrCurry added a subscriber: mrCurry.May 7 2016, 5:25 PM

Upvoted!

I do like the idea of a serverConfig command which can retrieve cfg parameters like hostname, motd and maxPlayers in an array.

Xeno (reporter)
2013-11-17 01:03

"Let's hope that this ticket won't be open in 1 1/2 years."

AHAHAHAHAHHHAHHAHAHAHAHA still open :)

zplix added a comment.Jun 14 2015, 5:24 PM

Yes, i bet it too complex for the dev team to implement

"Yes, i bet it too complex for the dev team to implement"

You have no idea!

I do appreciate Xenos humor on the issue :) how prophetic his words

Xeno added a comment.Jun 18 2015, 9:35 PM

MDCCLXXVI, that's no humor. Just experience with BI :)
1 1/2 years is quite good.