Jump to content

Delete duplicated race/DM maps


Slim

Recommended Posts

What do you mean? Duplicate resources?

If there's literally no identifying information on those resources then perhaps your only option is to loop through all resources (perhaps limited to those which meet the criterion getResourceInfo(theResource, "type")=="map"), open each file, store the MD5 or SHA hash (don't forget to close the files) and then delete those resources which are duplicates.

Edited by MrTasty
Link to comment

Default maps are in server-mods-deathmatch-gamemodes-race-maps if i remember correctly. You can't put the same map with the exact same name twice in your server. It just won't load neither of them. So i advise you to delete the default maps unless there are ones that you specifically like and to just put your maps in a [maps] folder under "resources".

Link to comment

The problem's that the meta names are the same, not the .map file.
I have 50 GB of maps, all from different people, but some servers throughout the years change the resource names, while the meta names remain the same and appear duplicated in the admin panel.
:/

Link to comment
1 hour ago, Justin|X5| said:

The problem's that the meta names are the same, not the .map file.
I have 50 GB of maps, all from different people, but some servers throughout the years change the resource names, while the meta names remain the same and appear duplicated in the admin panel.
:/

I had this problem recently as well. Resource names are different but map name in meta is same as another map's. This also bugs toptimes as the map's toptimes are stored under its name from the meta.xml. So if you've made a toptime on one of the maps which has the same name as another one, the same toptime will show on the other map too - even if you've never played it before. 

You just have to manually rename one of the maps to a unique name in its meta.xml. No other way. 

PS: It'd be better if toptimes get stored under the map's resource name, not its meta one but oh well :/ I can do this probably but it will delete all tops from my server so meh xD good luck

Edited by koragg
And wtf o.O 50GB maps! ?¿♤♡{
Link to comment
On 10/4/2017 at 01:50, koragg said:

I had this problem recently as well. Resource names are different but map name in meta is same as another map's. This also bugs toptimes as the map's toptimes are stored under its name from the meta.xml. So if you've made a toptime on one of the maps which has the same name as another one, the same toptime will show on the other map too - even if you've never played it before. 

You just have to manually rename one of the maps to a unique name in its meta.xml. No other way. 

PS: It'd be better if toptimes get stored under the map's resource name, not its meta one but oh well :/ I can do this probably but it will delete all tops from my server so meh xD good luck

I used Sor toptimes and it stores mine with meta name xD how lucky

Edited by Justin|X5|
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...