Page 2 of 3
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 07 Mar 2019, 08:27
by RelaxedRacer
Well I had this warning for some time now:
Code: Select all
[PHP Notice] Undefined index: WARM_UP on line 507 in file C:\TM_Server\UASECO\plugins\plugin.modescript_handler.php
[PHP Notice] Undefined index: POS on line 1367 in file C:\TM_Server\UASECO\plugins\plugin.modescript_handler.php
[PHP Notice] Undefined index: POS on line 1367 in file C:\TM_Server\UASECO\plugins\plugin.modescript_handler.php
[PHP Notice] Undefined index: POS on line 1367 in file C:\TM_Server\UASECO\plugins\plugin.modescript_handler.php
I changed that line 1367,
And in modescript_settings.xml it was "<warmup> </warmup>"
Changed that to "<warm_up> </warm_up>"
Than the warning was gone.
I changed back the line 1367, warning is still gone.
Sorry man i guess i had a old modescript_settings.xml
So my bad

Re: UASECO 0.9.6 (2019-03-02) released
Posted: 07 Mar 2019, 20:18
by undef.de
RelaxedRacer wrote: ↑07 Mar 2019, 08:27
Sorry man i guess i had a old modescript_settings.xml
Ofc. your modescript_settings.xml was old:

Re: UASECO 0.9.6 (2019-03-02) released
Posted: 10 Mar 2019, 16:01
by fiendy
Thanks for the update undef
I've just done a clean install onto my server (rather than upgrading existing Uaseco), & all looks well, except for the dropping of jukebox entries, which still failed.
I decided to dig into why & think I've found the issue for one of them.
I got these errors in log when I tried to click on a map in jukebox list:-
Code: Select all
[2019-03-10 13:51:14] [Chat] Player [fiendy] used command "/jukebox display"
[2019-03-10 13:51:19] [Chat] Player [fiendy] used command "/admin dropjukebox 3"
[PHP Notice] Undefined variable: uid on line 870 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined index: on line 870 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: uid on line 871 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: name on line 874 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
I tracked this down to the following line in plugins/chat.admin.php (line 864, the 'if' statement) :-
Code: Select all
foreach ($aseco->plugins['PluginRaspJukebox']->jukebox as $item) {
if ($i++ === $command['params'][1]) {
It needs to be changed to
Code: Select all
foreach ($aseco->plugins['PluginRaspJukebox']->jukebox as $item) {
if ($i++ == $command['params'][1]) {
IE. "===" becomes "==".
I can now drop individual maps.
However, the clear entire jukebox still does nothing at all, & I don't get any error either so no idea where that's going wrong!
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 11 Mar 2019, 17:43
by undef.de
fiendy wrote: ↑10 Mar 2019, 16:01
I decided to dig into why & think I've found the issue for one of them.
I got these errors in log when I tried to click on a map in jukebox list:-
Code: Select all
[2019-03-10 13:51:14] [Chat] Player [fiendy] used command "/jukebox display"
[2019-03-10 13:51:19] [Chat] Player [fiendy] used command "/admin dropjukebox 3"
[PHP Notice] Undefined variable: uid on line 870 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined index: on line 870 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: uid on line 871 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
[PHP Notice] Undefined variable: name on line 874 in file /home/trackmania/servers/Trackmania2Server_LoL/uaseco/plugins/chat.admin.php
I tracked this down to the following line in plugins/chat.admin.php (line 864, the 'if' statement) :-
Code: Select all
foreach ($aseco->plugins['PluginRaspJukebox']->jukebox as $item) {
if ($i++ === $command['params'][1]) {
It needs to be changed to
Code: Select all
foreach ($aseco->plugins['PluginRaspJukebox']->jukebox as $item) {
if ($i++ == $command['params'][1]) {
IE. "===" becomes "==".
I can now drop individual maps.
Fixed in the update from today, later at github (thanks for digging into it

). But I did it a little bit different as you did.
fiendy wrote: ↑10 Mar 2019, 16:01
However, the clear entire jukebox still does nothing at all, & I don't get any error either so no idea where that's going wrong!
That's strange, because
works as it should here...
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 11 Mar 2019, 18:41
by fiendy
fiendy wrote: ↑10 Mar 2019, 16:01
That's strange, because
works as it should here...
Hmm ok, must admit I didn't try the /admin clearjukebox, I was clicking the "Clear Entire Jukebox" button on panel displayed after doing
I'll give that a try later, thanks Undef.
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 11 Mar 2019, 19:16
by undef.de
fiendy wrote: ↑11 Mar 2019, 18:41
I was clicking the "Clear Entire Jukebox" button on panel
That's exactly what calls
(that's just a button for that command)

Re: UASECO 0.9.6 (2019-03-02) released
Posted: 11 Mar 2019, 22:47
by fiendy
I can confirm typing "/admin clearjukebox" works, but, clicking the button does not-does nothing at all.
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 12 Mar 2019, 12:31
by undef.de
fiendy wrote: ↑11 Mar 2019, 22:47
I can confirm typing "/admin clearjukebox" works, but, clicking the button does not-does nothing at all.
Then you have to show me which button you use, because that button in the Records-Eyepiece window works fine for me.
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 12 Mar 2019, 14:17
by fiendy
Sure, it's the button shown here, after doing "/jukebox display":-

- 20190311214502_1.jpg (290.49 KiB) Viewed 4547 times
Re: UASECO 0.9.6 (2019-03-02) released
Posted: 12 Mar 2019, 16:37
by undef.de
fiendy wrote: ↑12 Mar 2019, 14:17
Sure, it's the button shown here, after doing "/jukebox display"
That's a deprecated plugin and may be incomplete and not working, you should try "/elist" instead".
I install a redirect of "/jukebox display" to "/elist jukebox" which is the replacement.