Page 9 of 19

Re: [Tool] AdminServ 2.0.4

Posted: 09 Jun 2013, 13:15
by Kev717
Thanks for translation. I will it include in the next version ;)

Re: [Tool] AdminServ 2.0.4

Posted: 24 Jun 2013, 18:25
by Kev717
Update 2.0.5 : http://code.google.com/p/adminserv/downloads/list

Add: Polish language, thanks to Djhubertus for translation
Add: Dutch language, thanks to Weerwolf for translation
Fix: disable vote ratio value in TMF
Fix: cache functionality in create matchsettings page

Files modified:
- includes/
- config/extension.cfg.php

Re: [Tool] AdminServ 2.0.5

Posted: 30 Jun 2013, 15:23
by zargono
I recently upgraded my server with AdminServ 2.0.5 and I must say it's a really nice update (coming from 2.0.3).
I love the cache feature, my local folders now load instantly! :)

However I seem to have an annoying bug. It happens for maps with a ' character in their name (not the filename). If those maps are already in a folder, AdminServ displays the folderlist correctly and all is good.

But the problem happens if I try either to upload a new map with that symbol, or delete one from the menu. Once I've done that, I get a red "malformed JSON" error each time I try to list the folder the map was in. And then, the only way to get back to normal is to delete the corresponding .json file in the AdminServ cache folder.

I hope that helps, and keep up the good work! :)

EDIT: Actually it also happens with other maps, I don't really know why... And as before, if I delete the cache file it's OK and the cache file is generated again correctly.

EDIT 2: I tried to play with the new 'mapsbasepath' in the servers.cfg.php and it's a good idea, but if I set a different base path for different servers, they still generate the same mapslist-.json file in the cache folder, and then this file gets corrupted because it gathers data from different folders.

Re: [Tool] AdminServ 2.0.5

Posted: 01 Jul 2013, 01:40
by weerwolf
Both problems did not occur to me when testing version 2.0.5
Can you list a tmx/mx map here for me to try replicate your error?

Re: [Tool] AdminServ 2.0.5

Posted: 01 Jul 2013, 18:11
by Kev717
zargono wrote:EDIT 2: I tried to play with the new 'mapsbasepath' in the servers.cfg.php and it's a good idea, but if I set a different base path for different servers, they still generate the same mapslist-.json file in the cache folder, and then this file gets corrupted because it gathers data from different folders.
Yes! It's already fixed in the next version ;)

I will test cache functionality with ' character in map name.

Re: [Tool] AdminServ 2.0.5

Posted: 01 Jul 2013, 18:21
by hackie
I also had trouble with some tracks.
And also got the Json error, something with utf-8.


I know the track what caused it :

http://tmnforever.tm-exchange.com/main. ... 62665#auto

I tested more tracks with strange signatures, they all fail.

Re: [Tool] AdminServ 2.0.5

Posted: 01 Jul 2013, 20:43
by Kev717
Ok, I have fixed this bug. You can do this method:
- Select all files, and click to "Rename"
- Click to "Replace the special characters"
- if error, rename manualy map file and delete cache file

Re: [Tool] AdminServ 2.0.5

Posted: 02 Jul 2013, 14:12
by zargono
Well I found what's happening to me and actually it happens with every map.
Here's what I'm doing to provoke the bug:

- Create a new folder
- Upload a map in that folder
- View local folder content
-> The cache file should be generated
- Upload a second map in the folder
- View local folder again, then parent folder and go back in the folder to refresh
-> When the cache file is updated, it gets corrupted

When viewing the cache file I found that its content is not properly overwritten when I upload my new map. It just adds the new content after the old one without deleting.

Here is what should be the "good" cache file:

Code: Select all

{"Joust---MirrorLake.Map.Gbx":{"Name":"<span class=\"tmnick_global\" style=\"background-color:transparent\"><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ffffff\">Joust - <\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">M<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">irror<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">L<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">ake<\/span><\/span>","Environnement":"Storm","FileName":"ShootMania\/test\/Joust---MirrorLake.Map.Gbx","UId":"YzDEGCqhZqL8n4UugejgjUURhv0","Author":"zargono","Recent":1,"Type":{"Name":"JoustArena","FullName":"ShootMania\\JoustArena"}},"Joust---MirrorNight.Map.Gbx":{"Name":"<span class=\"tmnick_global\" style=\"background-color:transparent\"><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ffffff\">Joust - <\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">M<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">irror<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">N<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">ight<\/span><\/span>","Environnement":"Storm","FileName":"ShootMania\/test\/Joust---MirrorNight.Map.Gbx","UId":"VLr2wUcb6CL39Jy3v2OhSSAvEW2","Author":"zargono","Recent":1,"Type":{"Name":"JoustArena","FullName":"ShootMania\\JoustArena"}}}
And here is my corrupted cache file:

Code: Select all

{"Joust---MirrorLake.Map.Gbx":{"Name":"<span class=\"tmnick_global\" style=\"background-color:transparent\"><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ffffff\">Joust - <\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">M<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">irror<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">L<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">ake<\/span><\/span>","Environnement":"Storm","FileName":"ShootMania\/test\/Joust---MirrorLake.Map.Gbx","UId":"YzDEGCqhZqL8n4UugejgjUURhv0","Author":"zargono","Recent":1,"Type":{"Name":"JoustArena","FullName":"ShootMania\\JoustArena"}}}{"Joust---MirrorLake.Map.Gbx":{"Name":"<span class=\"tmnick_global\" style=\"background-color:transparent\"><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ffffff\">Joust - <\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">M<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">irror<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">L<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">ake<\/span><\/span>","Environnement":"Storm","FileName":"ShootMania\/test\/Joust---MirrorLake.Map.Gbx","UId":"YzDEGCqhZqL8n4UugejgjUURhv0","Author":"zargono","Recent":1,"Type":{"Name":"JoustArena","FullName":"ShootMania\\JoustArena"}},"Joust---MirrorNight.Map.Gbx":{"Name":"<span class=\"tmnick_global\" style=\"background-color:transparent\"><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ffffff\">Joust - <\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">M<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">irror<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff4400\">N<\/span><span class=\"tmnick_shadowed\" style=\"font-size: 10pt;color:#ff8800\">ight<\/span><\/span>","Environnement":"Storm","FileName":"ShootMania\/test\/Joust---MirrorNight.Map.Gbx","UId":"VLr2wUcb6CL39Jy3v2OhSSAvEW2","Author":"zargono","Recent":1,"Type":{"Name":"JoustArena","FullName":"ShootMania\\JoustArena"}}}

Re: [Tool] AdminServ 2.0.5

Posted: 06 Aug 2013, 14:11
by ritchi2
Salut Kev,

Quand est-ce que tu penses faire une mise à jour d'AdminServ car là c'est devenu invivable avec l'erreur Json, je l'ai tout le temps.

Merci d'avance.

Re: [Tool] AdminServ 2.0.5

Posted: 09 Aug 2013, 12:14
by weerwolf
Currently testing new version AdminServ - Errors Json are gone :thumbsup:
There are 2 things ill have to report back to Kev tonight, so next update will be fine.