"Bug" Regarding map rpc-methods

Moderator: NADEO

Post Reply
proma
Posts: 23
Joined: 28 Sep 2011, 18:06

"Bug" Regarding map rpc-methods

Post by proma »

Note this is not a real bug but an inconvinience for programmers.
Also it is documented so it is not really undefined/unwandet behaviour.

What is the Bug?
The map struct of the Server methods has a flaw.
One member is named wrong (or unintuitive) "Environnement".
How can I reproduce this?
Call any method that returns a map struct via xmlrpc on a server.
What is my expectation of this bug?
The name should be "Environment".

Affected Functions
GetCurrentMapInfo
GetNextMapInfo
GetMapInfo
GetMapList
(list may be incomplete)

Problems
A change might invalidate current server managers, as they "rely" on the error, but this is minor
as with the introduction of the SetApiVersion method it can be circumvented.

Further references:
Quoted from the tm-karma plugin of xaseco2 when using the output of GetCurrentMapInfo:

Code: Select all

plugin.tm-karma-dot-com.php:            $map->environment       = $response['Environnement'];           // "Environnement" is wrong written by nadeo!!!
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: "Bug" Regarding map rpc-methods

Post by jonthekiller »

Environnement is in French^^. Nadeo has written this in French but yes in English, it's better.
Image
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: "Bug" Regarding map rpc-methods

Post by Xymph »

These minor French/English misspellings have been in the dedicated servers since the TMN/TMO/TMS one. Another well-known example is Payed instead of Paid. ;) They probably won't be fixed in order to maintain compatibility with server controllers.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
proma
Posts: 23
Joined: 28 Sep 2011, 18:06

Re: "Bug" Regarding map rpc-methods

Post by proma »

Yeah I believe this too but maybe give it a try ^^
TMC has some more movement going on than the older "versions".

For compatibility one could also double this field at the cost of more bandwidth being used.
nocturne
Posts: 208
Joined: 23 Jun 2010, 21:31

Re: "Bug" Regarding map rpc-methods

Post by nocturne »

You'll find more of these french words mixed in... Though, I hope they don't change them -- the simple change from 'Challenge' to 'Map' has proved devastating enough to backwards compatibility as it is.
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest