[XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
askuri
road tourist
road tourist
Posts: 86
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Location: Germany
Contact:

[XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by askuri » 18 Sep 2013 18:26

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
Last edited by askuri on 29 Sep 2019 15:47, edited 1 time in total.

askuri
road tourist
road tourist
Posts: 86
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Location: Germany
Contact:

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

Post by askuri » 29 Sep 2019 15:46

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.

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1338
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by undef.de » 01 Oct 2019 20:45

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. ;)
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

askuri
road tourist
road tourist
Posts: 86
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Location: Germany
Contact:

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by askuri » 01 Oct 2019 20:50

That's interesting and I actually hadn't really investigated closely enough I guess. Will look into it again, thanks!

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1338
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by undef.de » 02 Oct 2019 13:20

Code: Select all

$reset_cache_start
in rasp.settings.php
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

NoTimeToDrive
sunday driver
sunday driver
Posts: 50
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: usbTMFserver 2.9

Post by NoTimeToDrive » 02 Oct 2019 19:29

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
Last edited by NoTimeToDrive on 05 Oct 2019 11:06, edited 2 times in total.

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1338
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: usbTMFserver 2.9

Post by undef.de » 02 Oct 2019 19:34

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.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

NoTimeToDrive
sunday driver
sunday driver
Posts: 50
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: usbTMFserver 2.9

Post by NoTimeToDrive » 02 Oct 2019 20:02

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:

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1338
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: usbTMFserver 2.9

Post by undef.de » 02 Oct 2019 20:28

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();
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

NoTimeToDrive
sunday driver
sunday driver
Posts: 50
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: usbTMFserver 2.9

Post by NoTimeToDrive » 02 Oct 2019 20:49

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

NoTimeToDrive
sunday driver
sunday driver
Posts: 50
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: usbTMFserver 2.9

Post by NoTimeToDrive » 05 Oct 2019 10:58

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

askuri
road tourist
road tourist
Posts: 86
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Location: Germany
Contact:

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by askuri » 05 Oct 2019 11:25

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.

NoTimeToDrive
sunday driver
sunday driver
Posts: 50
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: [XASECO1] DynMaps - Dynamic Tracklisting UPDATE 2019

Post by NoTimeToDrive » 05 Oct 2019 12:19

Thanks askuri :D

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

Greetings and thanks again :thumbsup:

Post Reply