Page 1 of 1

[XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 18 Sep 2013 18:26
by askuri
When uploading more than a thousand racks to your server, you'll see more and more how it goes slower and slower. Now more players are joining, the CPU goes to 100% at scoretable and synchronisation. This mod tries to tackle that performance issue.
The idea is to only have 5 tracks in the tracklist of the server at the same time, while all other tracks are dynamically added and removed by this mod

As explained above, this plugin adds and removes the maps from the tracklist to keep it small. It chooses the tracks from special folder in your /GameData/Tracks/ folder. Jukeboxing is also possible and you can see all the tracks on the server (but not in the tracklist ;)).

This could be a bit hard to understand, so I created a picture to visualize it ;)
Image

Installation instructions and download can be found on Gitbub: https://github.com/askuri/dynmaps

Re: [XASECO1] DynMaps 0.1.0 BETA - Dynamic Tracklisting UPDATE 2019

Posted: 29 Sep 2019 15:46
by askuri
This project got revived a few days ago because somebody actually needed it. I have moved it to Github where I am working on it again together with Timmy/dasschaf.
New download and install instructions linked in the first post.

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 01 Oct 2019 20:45
by undef.de
FYI: The reason for the slowdown on every map change is that XAseco re-reads all the maps (which can take a while on many maps). You can turn off that behavior and then you don't have any slowdown. ;)

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 01 Oct 2019 20:50
by askuri
That's interesting and I actually hadn't really investigated closely enough I guess. Will look into it again, thanks!

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 02 Oct 2019 13:20
by undef.de

Code: Select all

$reset_cache_start
in rasp.settings.php

Re: usbTMFserver 2.9

Posted: 02 Oct 2019 19:29
by NoTimeToDrive
Wonderfull tool askuri!! :thumbsup:

Thanks for info undef.de :thumbsup:

Ive got this error with Dynmaps tool.
That's why we thought needed php7.

Part of the plugins.xml where i got an error: :?

Code: Select all

[XAseco] Load plugin [plugin.checkpoints.php]
[XAseco] Load plugin [plugin.dedimania.php]
[XAseco] Load plugin [askuri.dynmaps.php]
PHP Parse error: syntax error, unexpected '[' in D:\TMFserver\TMF\control\xaseco_1\plugins\askuri.dynmaps.php on line 88
Press a key to continue ...
So maybe it will not work with usbTMFserver 2.9 :(
Gone try some things in the wekend.
During the week to much work to do! :cry:

Big thanks for info undef.de :D

Re: usbTMFserver 2.9

Posted: 02 Oct 2019 19:34
by undef.de
That error is not related to PHP/5 or PHP/7, it's just a '[' to much at line 88. You could try to remove it, maybe that will work.

Re: usbTMFserver 2.9

Posted: 02 Oct 2019 20:02
by NoTimeToDrive
Line 88 looks like this:

Code: Select all

		$this->currmap_path = $aseco->client->getResponse()['FileName'];
Don't see the '[' in here?
Only ['FileName']

I re-download the file from github.
Now the same line is on 92.
Maybe i have the old file. :?
Don't hope that little dom mistake cause the error :oops:

Thanks for the very fast replay undef.de! :thumbsup:

Re: usbTMFserver 2.9

Posted: 02 Oct 2019 20:28
by undef.de
We're now going offtopic, admin please move posts to viewtopic.php?f=127&t=30806

I'm pretty sure the code should look like this (but that's a untested guess):

Code: Select all

$this->currmap_path = $aseco->client->getResponse();

Re: usbTMFserver 2.9

Posted: 02 Oct 2019 20:49
by NoTimeToDrive
I let you know in the weekend what happens if i try that :)

Thanks for the help :thumbsup:

Edit:
I watched server...it's too busy to stop it now for test.

Greetings :D

Re: usbTMFserver 2.9

Posted: 05 Oct 2019 10:58
by NoTimeToDrive
undef.de wrote:
02 Oct 2019 20:28
I'm pretty sure the code should look like this (but that's a untested guess):

Code: Select all

$this->currmap_path = $aseco->client->getResponse();
No...then i get:

Code: Select all

PHP Parse error: syntax error, unexpected ';' in D:\TMFserver\TMF\control\xaseco_1\plugins\askuri.dynmaps.php on line 92
Press a key to continue ...
if i do this:

Code: Select all

$this->currmap_path = $aseco->client->getResponse ['FileName'];
Removed

Code: Select all

()
Then i get error on line 165:

Code: Select all

PHP Parse error: syntax error, unexpected '[' in D:\TMFserver\TMF\control\xaseco_1\plugins\askuri.dynmaps.php on line 165
Press a key to continue ...
code here on line 165 is:

Code: Select all

$list = [];
pfff..but ok..i try million things.
Believe me..i have not really a clue what i do.
But ok...after some try's.
I removed whole line 165.

Now all works and server start.
Cache is loaded in dyn_infocache.json.

Now i have 5 tracks in my tracklist.
No tracks where added after load all 5000 tracks in any other list :?
So now the server keep running in a loop of this 5 tracks only.
Not that surprising...be course i remove:

out line 92

Code: Select all

()


and remove this from line 165

Code: Select all

$list = [];

So no list is saved anywhere :(
Now i most see too fix this.

EDIT:
What i forgot too tell.
If i do /list inside server...i see all 5000 tracks.
I can wish a track..then tracklist have 6 tracks inside.
Wish again a track..then 7 and so on.
But if you do nothing...and play track after track.
Then you keep playing those 7 tracks only.
The other tracks are not automatic playable..
So wishing tracks works :)

Thanks for the help :D

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 05 Oct 2019 11:25
by askuri
Hi NoTimeToDrive,
as mentioned before on the Github issue, I asked you to update to PHP 5.6 because this line is "newer" syntax which your PHP 5.3 doesn't understand.
To make a quick solution, download the file again from github (so your changes don't influence mine) and change this line

Code: Select all

		$this->currmap_path = $aseco->client->getResponse()['FileName'];
into

Code: Select all

		$response_temp = $aseco->client->getResponse();
		$this->currmap_path = $response_temp['FileName'];
If you have further problems, please send me an email: enwi2@t-online.de. I can help you there.

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Posted: 05 Oct 2019 12:19
by NoTimeToDrive
Thanks askuri :D

That part works now :)
Line 165 kills it now.
But you know about it :wink:

Greetings and thanks again :thumbsup: