Page 5 of 24
Re: Feedback and Reports for the development branch
Posted: 09 Oct 2014, 09:59
by Chris92
/admin readmaplist does not work due to a typo in chat.admin.php
Line 4655 wrote:$cnt = $aseco->client->query('LoadMatchSettings', 'MatchSettingsx/'. $filename);
Remove the X and it works.
And /admin addlocal seems to crash uaseco
Code: Select all
[2014-10-09 08:42:27] [Chat] Player [onkelz_chris] used command "/admin addlocal Own Opdal 5"
[PHP Notice] Undefined variable: aseco on line 4539 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Trying to get property of non-object on line 4539 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Trying to get property of non-object on line 4539 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: aseco on line 4544 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Trying to get property of non-object on line 4544 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Trying to get property of non-object on line 4544 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: aseco on line 4545 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
[PHP Fatal Error] Call to a member function file_exists_nocase() on a non-object on line 4545 in file /opt/maniaplanet-server/uaseco/plugins/chat.admin.php
Another minor annoyance I found...

See the PB on in the chat? It says that on any map where there's no records yet. No idea why...
Re: Feedback and Reports for the development branch
Posted: 09 Oct 2014, 18:27
by undef.de
Chris92 wrote:/admin readmaplist
/admin addlocal
Bugfix:
https://github.com/undeflabs/UASECO/com ... c823e8b3ce
Chris92 wrote:
Another minor annoyance I found...
See the PB on in the chat? It says that on any map where there's no records yet. No idea why...
That's strange, i can't reproduce this on my development server, if i have no local time, then no message about PB is coming up...
Btw.: Your config/mania_karma.xml and config/modescript_settings.xml seems to be not up-to-date. Did you update your dedicated server with the files from "newinstall/dedicated server"?
Re: Feedback and Reports for the development branch
Posted: 09 Oct 2014, 18:56
by Chris92
undef.de wrote:Chris92 wrote:/admin readmaplist
/admin addlocal
Bugfix:
https://github.com/undeflabs/UASECO/com ... c823e8b3ce
Chris92 wrote:
Another minor annoyance I found...
See the PB on in the chat? It says that on any map where there's no records yet. No idea why...
That's strange, i can't reproduce this on my development server, if i have no local time, then no message about PB is coming up...
Btw.: Your config/mania_karma.xml and config/modescript_settings.xml seems to be not up-to-date. Did you update your dedicated server with the files from "newinstall/dedicated server"?
I did update the modes, yes. Both the libs and scripts.
I'll replace the mania_karma.xml and the modescript_settings.xml with the files from the bugfix
Re: Feedback and Reports for the development branch
Posted: 09 Oct 2014, 19:54
by undef.de
Chris92 wrote:
Another minor annoyance I found...
See the PB on in the chat? It says that on any map where there's no records yet. No idea why...
We found the problem, it was a side-effect from the buggy "/admin erasethis" and newly driven records which stores the time with the MapId 0.
EDIT: And a bug in the includes/core/maplist.class.php which i have updated at this commit:
https://github.com/undeflabs/UASECO/com ... da4e9b8cf5
Re: Feedback and Reports for the development branch
Posted: 11 Oct 2014, 08:42
by hackie
I tried the latest version.
I still have that cp problem with this map from MX
http://tm.mania-exchange.com/tracks/724 ... 9-camarade
When crossing the start ( multilab ) it says cp -7 of 6 .
Re: Feedback and Reports for the development branch
Posted: 12 Oct 2014, 01:54
by undef.de
hackie wrote:
When crossing the start ( multilab ) it says cp -7 of 6 .
Fixed with this commit:
https://github.com/undeflabs/UASECO/com ... 88178d07ad
Re: Feedback and Reports for the development branch
Posted: 13 Oct 2014, 15:17
by hackie
Trying to add map from MX to server ( /admin add )
I think the map was already on server.
It killed Uaseco
Code: Select all
[2014-10-13 15:59:49] [Chat] Player [cavan] used command "/admin add 72440"
[UASECO Warning] [MapList] Could not insert map in database: ((1062) Duplicate entry 'jcQ9ERMnmAzIYN7m2G_TeVN3KXd' for key 'Uid')
with statement [
INSERT INTO `maps` (
`Uid`,
`Filename`,
`Name`,
`Comment`,
`Author`,
`AuthorNickname`,
`AuthorZone`,
`AuthorContinent`,
`AuthorNation`,
`AuthorScore`,
`AuthorTime`,
`GoldTime`,
`SilverTime`,
`BronzeTime`,
`Environment`,
`Mood`,
`Cost`,
`Type`,
`Style`,
`MultiLap`,
`NbLaps`,
`NbCheckpoints`,
`Validated`,
`ExeVersion`,
`ExeBuild`,
`ModName`,
`ModFile`,
`ModUrl`,
`SongFile`,
`SongUrl`
)
VALUES (
'jcQ9ERMnmAzIYN7m2G_TeVN3KXd',
'MX\\STC10-NC9-Cam-arade_72440.Map.gbx',
'$iSTC10/NC9 - Cam\'arade',
'',
'rumbleshark',
'$i$c00©$fffam»$c00K$fffnaky$ff0!',
'Europe|France|Bretagne|Morbihan',
'Europe',
'FRA',
227145,
227145,
241000,
273000,
341000,
'Stadium',
'Day',
940,
'Trackmania\\Race',
'Tech',
'true',
7,
7,
'true',
'3.3.0',
'2014-07-25_19_33',
'',
'',
'',
'',
''
);
]
[PHP Fatal Error] Call to private method MapList::updateMapInDatabase() from context 'PluginChatAdmin' on line 4419 in file F:\MP3-servers\MP3-UasecoTest\UASECO\plugins\chat.admin.php
Sorry

Re: Feedback and Reports for the development branch
Posted: 13 Oct 2014, 17:03
by undef.de
hackie wrote:Trying to add map from MX to server ( /admin add )
Sorry

No problem, we are here to find such bugs.
Btw.: Fixed with this commit:
https://github.com/undeflabs/UASECO/com ... 032d64e8ba
Re: Feedback and Reports for the development branch
Posted: 13 Oct 2014, 18:57
by hackie
Uhm , /admin erasethis means : skip map ?

Re: Feedback and Reports for the development branch
Posted: 13 Oct 2014, 19:04
by undef.de
hackie wrote:Uhm , /admin erasethis means : skip map ?

No, but it is required to skip the current running Map, otherwise local records which are made after deleting the Map brings currently chaos into the database (Records with MapId 0).
I have to figure out if there is a better way to do it, but until that "/admin erasethis" and "/admin removethis" skips also the current Map.