[XASECO] Plugin: GPS Database

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
malun22
pedestrian
pedestrian
Posts: 14
Joined: 19 Jul 2019 12:04
Owned TM-games: TMNF

[XASECO] Plugin: GPS Database

Post by malun22 » 05 Oct 2019 14:56

Hello everyone,

I have crafted a little plugin, which is probably mostly efficient on RPG Servers. The GPS Database is a google spreadsheet, which holds info about the TMX id of a map and the corresponding Youtube video ID.

The plugin gives the /gps chat command, which gives - if available - the GPS link for the current track.

In order to prevent trolling I only grant access to sheet for trustful people.

Get the plugin here: https://github.com/malun22/GPSDatabase/ or here: https://plugins.xaseco.org/info.php?id=169

Greetings Malun

Updated 03.04.2020
Last edited by malun22 on 03 Apr 2020 12:42, edited 5 times in total.

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

Re: [XASECO] Plugin: GPS Database

Post by NoTimeToDrive » 05 Oct 2019 15:11

Interesting malun22

Nice idea :)
Just add it inside plugins.xml?

Code: Select all

<plugin>chat.gpsdatabase.php</plugin>
Thanks :D

malun22
pedestrian
pedestrian
Posts: 14
Joined: 19 Jul 2019 12:04
Owned TM-games: TMNF

Re: [XASECO] Plugin: GPS Database

Post by malun22 » 05 Oct 2019 15:21

Yes, install it like every other plugin. Download the php and put the code you already mentioned into the plugins.xml.

malun22
pedestrian
pedestrian
Posts: 14
Joined: 19 Jul 2019 12:04
Owned TM-games: TMNF

Re: [XASECO] Plugin: GPS Database

Post by malun22 » 02 Apr 2020 18:34

I decided to upload an updated version.

Xymph
Pit Crew
Pit Crew
Posts: 5724
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [XASECO] Plugin: GPS Database

Post by Xymph » 03 Apr 2020 09:50

malun22 wrote:
02 Apr 2020 18:34
I decided to upload an updated version.
What is the version number of the new release, and what changes/fixes does it contain?
This info would be helpful for the repository (I guessed the initial release was v1.0).
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

malun22
pedestrian
pedestrian
Posts: 14
Joined: 19 Jul 2019 12:04
Owned TM-games: TMNF

Re: [XASECO] Plugin: GPS Database

Post by malun22 » 03 Apr 2020 11:48

Sure.

In the previous version the database was requested at each use of the command. In this version the point of requesting the data changed to on every new track to reduce the amount of curl requests.
Which brings me to the next point. Fetching the data now happens with a curl function instad of a fopen function because a lot of host providers disabled the php_openssl.dll in the php.ini by default. Not to worry about anymore.

Also please make sure to use the latest version I just uploaded to get access to /gps update. The command can be used by admins to reinitiate the process of receiving the GPS Link. I also fixed a mistake in yesterdays version.

Xymph
Pit Crew
Pit Crew
Posts: 5724
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [XASECO] Plugin: GPS Database

Post by Xymph » 03 Apr 2020 12:29

malun22 wrote:
03 Apr 2020 11:48
Sure.
A version number is still missing, I guessed v1.1.
malun22 wrote:
03 Apr 2020 11:48
In the previous version the database was requested at each use of the command. In this version the point of requesting the data changed to on every new track to reduce the amount of curl requests.
Which brings me to the next point. Fetching the data now happens with a curl function instad of a fopen function because a lot of host providers disabled the php_openssl.dll in the php.ini by default. Not to worry about anymore.
Thanks. These are a little verbose, I used excerpts for a bullet-wise change log.
malun22 wrote:
03 Apr 2020 11:48
Also please make sure to use the latest version I just uploaded...
I did. You may want to update the date in the initial post, then.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

malun22
pedestrian
pedestrian
Posts: 14
Joined: 19 Jul 2019 12:04
Owned TM-games: TMNF

Re: [XASECO] Plugin: GPS Database

Post by malun22 » 03 Apr 2020 12:31

Yes. 1.1 should be fine. Also edited the date.

Thank you! :)

Post Reply