[XASECO2] Plugin Checkpoint-Records Widget

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

Moderators: Xymph, TM-Patrol

junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

[XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

Hi all,
finished my first plugin for XAseco2 and it's time to give it the community :D

It displays the best checkpoint-times of all players on the current map in a widget

Installation:

1. unzip the script to xaseco2 base directory
2. edit xaseco2's plugins.xml and insert the following line:

Code: Select all

<plugin>plugin.cprecords.php</plugin>
3. restart xaseco2

For settings read the included README file

Download: cprecords(0.94).zip

Update->0.94
function get_cp_data rewritten to avoid PHP Notices;
bugfix: corrected wrong cp order and cp-times when xaseco2 mounted during a race


To see the plugin ingame visit my server Dirty Mind, login=dirtymind

some screenshots

horizontal:
Image

vertical:
Image

end of race:
Image
Last edited by junglepatrol on 24 Sep 2011 18:10, edited 1 time in total.
grtcasper
highway camper
highway camper
Posts: 3
Joined: 23 Sep 2011 17:41
Owned TM-games: TMU TM2

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by grtcasper »

Hi. Thx for plugin. I get the following error.

Code: Select all

[PHP Notice] Trying to get property of non-object on line 76 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Trying to get property of non-object on line 76 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Trying to get property of non-object on line 77 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Trying to get property of non-object on line 77 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Trying to get property of non-object on line 84 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Trying to get property of non-object on line 85 in file E:\TM 2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
[PHP Warning] Invalid argument supplied for foreach() on line 115 in file E:\TM2\ManiaPlanetDedicated_2011-08-16\xaseco2\plugins\plugin.cprecords.php
Begin Map
Last edited by Xymph on 23 Sep 2011 17:48, edited 1 time in total.
Reason: Use code tags to post code/configs/logs...
grtcasper
highway camper
highway camper
Posts: 3
Joined: 23 Sep 2011 17:41
Owned TM-games: TMU TM2

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by grtcasper »

Thx Xymph :P
junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

Hi. Thx for plugin. I get the following error.
warning is for undefined array, will fix it

btw you are using an old server version, the last one is from 5th september not from 16th august

edit: fixed and included in the plugin package
grtcasper
highway camper
highway camper
Posts: 3
Joined: 23 Sep 2011 17:41
Owned TM-games: TMU TM2

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by grtcasper »

thanks will test. the version i am using is the latest, just got it under the old folder

Still getting the same errors :(

But its working. Thx gr8 plugin
Big_Al
road tourist
road tourist
Posts: 80
Joined: 09 Apr 2009 07:52
Owned TM-games: TMU TMUF TMN TMNF

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by Big_Al »

Hi, i´m having same error messages:

Code: Select all

[PHP Notice] Undefined offset: 0 on line 69 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 1 on line 69 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 2 on line 69 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.cprecords.php
Jar-Jar
pedestrian
pedestrian
Posts: 13
Joined: 11 Sep 2011 07:31
Owned TM-games: TMC
Location: Germany/Hannover
Contact:

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by Jar-Jar »

Unfortunately I also exactly the same problem

Code: Select all

Begin Round
[PHP Notice] Undefined offset: 0 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 1 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 2 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 3 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 4 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 5 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 6 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
[PHP Notice] Undefined offset: 7 on line 67 in file F:\FunServer\Fox2\plugins\plugin.cprecords.php
however, works very nice plugin

Lg.Jar
junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

updated version, tested on 2 servers without any PHP Notices

have fun
User avatar
shoei
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 18 Nov 2010 06:43
Owned TM-games: tmuf

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by shoei »

thank you for this plugin, it is really good
I would, however,limit the display of the number line.
how do I proceed?
Image
Image
junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

not possible yet to limit the line number
I will include it in an update the next few days
kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by kremsy »

thank you!
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net
Big_Al
road tourist
road tourist
Posts: 80
Joined: 09 Apr 2009 07:52
Owned TM-games: TMU TMUF TMN TMNF

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by Big_Al »

Still problems:

Code: Select all

PHP Notice] Trying to get property of non-object on line 83 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Warning] Invalid argument supplied for foreach() on line 91 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 44 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Undefined property: Server::$challenge on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 56 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 82 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 82 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 83 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 83 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Warning] Invalid argument supplied for foreach() on line 91 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 56 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 82 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 82 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 83 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 83 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Warning] Invalid argument supplied for foreach() on line 91 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 44 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Undefined property: Server::$challenge on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 44 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Undefined property: Server::$challenge on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
[PHP Notice] Trying to get property of non-object on line 49 in file C:\Gameserver\TM2 Tech Blau #1\xaseco2\plugins\plugin.bestcps.php
junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

it seems you are still using the old version
please update to version 0.94
The versions number's written in the php-head
User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1847
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by Ant »

So is this an update of this plugin or a complete re-write? It looks pretty similar anyway.
junglepatrol
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 01 Feb 2011 18:10
Owned TM-games: TMUF TM²

Re: [XASECO2] Plugin Checkpoint-Records Widget

Post by junglepatrol »

no update of any old plugin, complete new code