Page 1 of 1

[B3.1][Stadium] Bug on converting TMF maps to TM2

Posted: 12 Mar 2013, 21:55
by undef.de
I found some problems on converting maps from TMF to TMStadium:
  • The UID is only different to the original map, when the Editor require to confirm the map (orange flag)
  • The Authorzone is unset in the same case from above
At this map i just calculate the shadows, the flag was still green:
TMStadium: http://tm.mania-exchange.com/tracks/295 ... ord-castle
TMF: http://tmnforever.tm-exchange.com/main. ... 56085#auto
UID is the same in both and authorzone is empty.

At this map the editor forced me to confirm this map (organge flag):
TMStadium: http://tm.mania-exchange.com/tracks/295 ... mperamento
TMF: http://tmnforever.tm-exchange.com/main. ... 41517#auto
UID are different and authorzone was setup.


In the case of my project tm-karma.com i running currently into trouble, because my database is based upon to the UID and now i can not identify from which game the votes come from. Or if a map exists only in TMF or TMStadium... :oops:

Re: [B3.1][Stadium] Bug on converting TMF maps to TM2

Posted: 14 Mar 2013, 17:36
by undef.de
I have edited the title, because i think it is a bug.

Anyway can someone confirm this please?

Re: [B3.1][Stadium] Bug on converting TMF maps to TM2

Posted: 14 Mar 2013, 17:54
by hacki65
I can confirm this Bug. UID is the same and Authorzone is empty.

Re: [B3.1][Stadium] Bug on converting TMF maps to TM2

Posted: 14 Mar 2013, 18:04
by Electron
I can confirm this. In addition to this, maps that are not changed (same UID) do not have the title ID in chunk 03043003 and the title element in the XML chunk has the value "Unassigned". The Map also keeps the old TMUF author login.

But not changing the UID if you only calculated the shadows, changed the mod, some signs and the music is not a bug. It is necessary! Without that you can not update external dependencies and sites like MX or Dedimania interprets the map as a different one.

Not storing the author zone is also not a bug because if you only calculated the shadow or changed some signs, the author login of the map stays the same. This is correct because the track itself was not changed. And because the original author login is a TMUF login (can be different to MP login), no one knows the author zone of that login. The game is not able to determine the author zone from TMUF.

And because the track itself isn't changed, TM-Karma can use the old UID to store the data. Why do you want to differentiate between TM1 Stadium and TM2 Stadium? If you really need this, you can test the header "type" or "exever" element of the XML chunk (the GBXDataFetcher class provides these values).

Re: [B3.1][Stadium] Bug on converting TMF maps to TM2

Posted: 14 Mar 2013, 20:42
by undef.de
Electron wrote:The Map also keeps the old TMUF author login.
Ok... i have the same and therefore i was not able to see that.
Electron wrote: But not changing the UID if you only calculated the shadows, changed the mod, some signs and the music is not a bug. It is necessary! Without that you can not update external dependencies and sites like MX or Dedimania interprets the map as a different one.
Sure, in case of the same "Game" this makes sense, but in my thinking the TMStadium is a different "Game" and therefor all maps should become a new UID. Also at some maps the editor forced me to confirm the map (orange flag). I don't know why, but it got a new UID and authorzone was setup...
Electron wrote: And because the track itself isn't changed, TM-Karma can use the old UID to store the data. Why do you want to differentiate between TM1 Stadium and TM2 Stadium?
1. To be able to link to servers where the map is installed, but if i do not know which game i can't link with tmtp:// and maniaplanet://, because i don't know which one is the right one.

2. To be able to retrieve the times from dedimania.net

3. To be able to send the right votes to mania-exchange.com or tm-exchange.com

Electron wrote: If you really need this, you can test the header "type" or "exever" element of the XML chunk (the GBXDataFetcher class provides these values).
Sure i could do this, but not all admins update the plugins soon. I have disabled the APIv2 at 2012-08-15 and there are still a lot of servers running this. For me it is too late to do something, i have to life with this situation. :teub: