[API suggestion] Server names

[API suggestion] Server names

in API Development

Posted by: Fror.2163

Fror.2163

Please make it so the server names don’t contain “[<language>]”, but rather have the name and another optional field that contains the info that it’s a language-specific server.

Example:
[…
{"id":“2010”,“name”:“Seafarer’s Rest”},
{"id":“2203”,“name”:“Elona Reach”,“language”="de"},
{"id":“2104”,“name”:“Vizunah Square”,“language”="fr"},
…]

Frór (yes, with the accent!)

[API suggestion] Server names

in API Development

Posted by: smiley.1438

smiley.1438

You may have noticed that theres a system behind the server ids:

digit 0: 1 = NA, 2 = EU
digit 1: 0 = undefined, 1 = french, 2 = german, 3 = spanish
digit 3+4= id

“name” is the name of the world like it’s used everywhere ingame.

[API suggestion] Server names

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

Cliff noted that while digit 1 follows that pattern currently, it’s not guaranteed to remain that way in the future. So just be aware of that.

[API suggestion] Server names

in API Development

Posted by: Fror.2163

Fror.2163

I’m fully aware of all you both wrote.

I just find it completely absurd that the “[<lang>]” is part of the name in the API as it’s an information that complements the server, not the name.

Frór (yes, with the accent!)

[API suggestion] Server names

in API Development

Posted by: Think.8042

Think.8042

The language tags are part of the actual server names, with all of the problems this causes, especially in WvW – and ironically, the naming schemes are much more broken in these special languages than in english.

In Beta, there were no tags for the servers, and since renaming a server costs much less than implementing say a real server tag system, this is what they did.

[API suggestion] Server names

in API Development

Posted by: Ruhrpottpatriot.7293

Ruhrpottpatriot.7293

You could do an RegEx to get that part from the name into it’s own variable.
Personally I don’t have a problem with the language being a part of the name.

Administrator of GW2.NET: GitHub , Forum , NuGet

[API suggestion] Server names

in API Development

Posted by: Fror.2163

Fror.2163

Guys, I know how to get rid of it, no worries. I’m a coder for the last 15 years and it’s already done in my library. I just find it’s quite strange to have the language being part of the name.

Also, I’m not requesting for a reason, more for an action.

Frór (yes, with the accent!)