[XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

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

Moderators: Xymph, TM-Patrol

User avatar
xai
happy cruiser
happy cruiser
Posts: 162
Joined: 13 Nov 2008 15:46
Owned TM-games: TMU(F),TMN(F)
Manialink(s): xai

[XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by xai » 02 Apr 2009 19:39

I stopped developing CAR, and started making Xaseco plugins :D. So, this is the result: XP(Xai Plugins). You can use Sector Records and a Calendar now.

How to set up:
1. Unzip the zip file into xaseco/plugins.
2. Open plugins.xml
3. Add these lines:

Code: Select all

<!-- XP PLUGINS -->
	<plugin>xp_main.php</plugin>
	<plugin>xp_plugin.sector.php</plugin>
	<plugin>xp_plugin.calendar.php</plugin>
	<plugin>xp_plugin.chat.php</plugin>
4. Done :D

How to add chat commands:
1. Open the xml file plugins/XP-Plugins/chatmessages.xml with a text editor
2. You can now add messages by placing text like this between the <chatmessages> tags:

Code: Select all

<msg>
		<command>nt</command>
		<description>Send a nice time message</description>
		<personal>false</personal>
		<message>{#interact}Nice Time!</message><!--Message 0 vars -->
		<message>{#interact}Nice Time {1}!</message><!--Message 1 var -->
</msg>
The <msg> tag is required for every new command. The <command> is the command you want the players to type. The description is the description that displays in /helpall. And the first <message> defined is the message that will be displayed if the user use no variables, like just: /nt. The second/thirth/fourth messages are for more variables, like "/nt Xai". Every variable can be shown with the {1} {2} or {3}. Finally you can set the <personal> variable to true if you just want to send the message back to the person who wrote the command. If you don't understand something, please ask :D

Download Link: http://car.mania-world.net/XP-Plugins.zip

Screenshots
The way sector records are displayed have changed a bit after this screenshot:
Image

Version notes:
0.03: Added custom chat commands :D

0.02: Adjusted the way sector records are displayed. Changed the onNewChallenge to onNewChallenge2, so now it actually displays the records of the current track. You have to empty your checkpoints table for this.
Last edited by xai on 03 Apr 2009 23:29, edited 5 times in total.
Weeeeeeeeeeee

User avatar
blooper
happy cruiser
happy cruiser
Posts: 144
Joined: 11 Oct 2007 23:47
Owned TM-games: TMUF
Location: Minnesota, USA

Re: [PLUGINS]XP: Sector recs and Calendar

Post by blooper » 03 Apr 2009 02:05

Wait, what exactly does the checkpoints plugin do? I think it duplicates functionality already included in XAseco.

User avatar
holzi3441
wheelbarrow operator
wheelbarrow operator
Posts: 17
Joined: 03 Apr 2009 06:09
Owned TM-games: TMU
Location: Germany
Contact:

Re: [PLUGINS]XP: Sector recs and Calendar

Post by holzi3441 » 03 Apr 2009 08:25

First: my english is very bad, but i hope you will understand what i mean.

I think this is a usefull plugin and its not included in xaseco. Thank you for your work.

Now my problem:
The sectorpb is the right one and in the sql database are also the right times, but the window "sector first records" shows some wrong times and the wrong total best time. I think the wrong sector times are from the challenge before.

Image
Image

Please think about the chat output, because it takes some time to figure out what this mean.
Here is my suggestion:
<login> gained rec in sector:1 [(2.)0:05:34]-0,13|10 [(1.)0:08:12]-0,25 or whatever.

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: [PLUGINS]XP: Sector recs and Calendar

Post by oliverde8 » 03 Apr 2009 09:22

I think the sector recs isn't a good idea, to much work and load for something that doesen't mean a lot
why?
because you have best sector time that you have the best time, sometimes you need to get a sector slow to be able to have better time in the next sectors. In that case that sectors best time will be a time of the player ho didn't do well in the hall of the map but did well only in 1 sector. So sector time will not relly show something. THe sector time of the best time saved is a much better concept.
I don't know if I was able to explain my self, Or maybe I miss understand the way it works :ftw: Of course every one thinks what he wants but I wanted to give my opinion :scene:

Of course nice work :D
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

User avatar
xai
happy cruiser
happy cruiser
Posts: 162
Joined: 13 Nov 2008 15:46
Owned TM-games: TMU(F),TMN(F)
Manialink(s): xai

Re: [PLUGINS]XP: Sector recs and Calendar

Post by xai » 03 Apr 2009 12:06

@holzi: That's a weird bug indeed. I think it's because it's ported from CAR. I'll take a look at it right now. The new format is nice, I'll build that in :D.

@oliverde8: I know that, but what if you aren't a good player and still want to get a rec somewhere. People like that can also have fun then by trying to get some sector records. I've even seen good players who tried to get every sector record on a track.

EDIT: Fixed the bug, download XP-Plugins again and delete your "Checkpoints" table in your database.
Weeeeeeeeeeee

User avatar
xai
happy cruiser
happy cruiser
Posts: 162
Joined: 13 Nov 2008 15:46
Owned TM-games: TMU(F),TMN(F)
Manialink(s): xai

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by xai » 03 Apr 2009 23:03

Another new version :D. Now custom chatcommands are added :D.
Weeeeeeeeeeee

ЭΛ Ğ尺乇ÇØ
sunday driver
sunday driver
Posts: 67
Joined: 22 Mar 2009 05:42
Owned TM-games: faadfad

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by ЭΛ Ğ尺乇ÇØ » 04 Apr 2009 06:17

good work.i like it

User avatar
holzi3441
wheelbarrow operator
wheelbarrow operator
Posts: 17
Joined: 03 Apr 2009 06:09
Owned TM-games: TMU
Location: Germany
Contact:

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by holzi3441 » 04 Apr 2009 17:31

Now it works and i am happy about this Plugin. :thumbsup:

User avatar
k4nm4n
smooth traffic navigator
smooth traffic navigator
Posts: 262
Joined: 11 Feb 2008 10:30
Owned TM-games: TMUF
Location: Slovenia
Contact:

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by k4nm4n » 05 Apr 2009 09:39

Works great. Thank you. :thumbsup:

User avatar
xai
happy cruiser
happy cruiser
Posts: 162
Joined: 13 Nov 2008 15:46
Owned TM-games: TMU(F),TMN(F)
Manialink(s): xai

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by xai » 14 Apr 2009 14:52

I need some ideas for my pluginset. Anyone got them? Post here ^^
Weeeeeeeeeeee

User avatar
blooper
happy cruiser
happy cruiser
Posts: 144
Joined: 11 Oct 2007 23:47
Owned TM-games: TMUF
Location: Minnesota, USA

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by blooper » 14 Apr 2009 21:07

I would like to see a manialink-based replacement of the chat vote system included in XAseco.

Astroman
pedestrian
pedestrian
Posts: 12
Joined: 08 Nov 2007 22:33
Owned TM-games: TMO,TMS,TMU,TMN

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom

Post by Astroman » 15 Jul 2009 22:56

Hi, I tried this plugin in the xaseco latest version v1.09. Something is not working proprely in TA.

The first lap wors ok, but then somehow this pluging is triggering the cheaters detection:

Code: Select all

# initialize XASECO ############################################################
[XAseco] PHP Version is 5.1.6 on Linux
[XAseco] Load settings [config.xml]
[XAseco] Load admin/ops lists [adminops.xml]
[XAseco] Load banned IPs list [bannedips.xml]
[XAseco] Load plugins list [plugins.xml]
[XAseco] Load plugin [plugin.localdatabase.php]
[XAseco] Load plugin [plugin.rounds.php]
[XAseco] Load plugin [chat.admin.php]
[XAseco] Load plugin [chat.help.php]
[XAseco] Load plugin [chat.records.php]
[XAseco] Load plugin [chat.records2.php]
[XAseco] Load plugin [chat.recrels.php]
[XAseco] Load plugin [chat.dedimania.php]
[XAseco] Load plugin [chat.players.php]
[XAseco] Load plugin [chat.players2.php]
[XAseco] Load plugin [chat.wins.php]
[XAseco] Load plugin [chat.laston.php]
[XAseco] Load plugin [chat.stats.php]
[XAseco] Load plugin [chat.server.php]
[XAseco] Load plugin [chat.song.php]
[XAseco] Load plugin [chat.me.php]
[XAseco] Load plugin [plugin.tmxinfo.php]
[XAseco] Load plugin [plugin.sminfo.php]
[XAseco] Load plugin [plugin.track.php]
[XAseco] Load plugin [plugin.checkpoints.php]
[XAseco] Load plugin [plugin.dedimania.php]
[XAseco] Load plugin [plugin.rasp.php]
[XAseco] Load plugin [plugin.rasp_jukebox.php]
[XAseco] Load plugin [plugin.rasp_chat.php]
[XAseco] Load plugin [plugin.rasp_karma.php]
[XAseco] Load plugin [plugin.rasp_nextmap.php]
[XAseco] Load plugin [plugin.rasp_nextrank.php]
[XAseco] Load plugin [plugin.rasp_votes.php]
[XAseco] Load plugin [plugin.chatlog.php]
[XAseco] Load plugin [plugin.style.php]
[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [plugin.rpoints.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[XAseco] Load plugin [plugin.forceMods.php]
[XAseco] Load plugin [xp_main.php]
[XAseco] Load plugin [xp_plugin.sector.php]
[XAseco] Load plugin [xp_plugin.calendar.php]
[XAseco] Load plugin [xp_plugin.chat.php]
[XAseco] Try to connect to TM dedicated server on 127.0.0.1:5001
[XAseco] Try to authenticate with login 'xxxxxxx' and password 'xxxxx'
[XAseco] Connection established successfully !
[Local DB] Load settings file
[Local DB] Try to connect to MySQL server on '127.0.0.1' with database 'aseco'
[Local DB] MySQL Server Version is 5.0.27
[RASP] Cleaning up unused data
*-*-*-*-*-* RASP is running! *-*-*-*-*-*
|...Loading Settings
|...Loaded!
|...Checking database structure
|...Structure OK!
|...Calculating ranks
|...Done!
[07/16,00:39:47] Load default style [styles/DarkBlur.xml]
[07/16,00:39:47] Load default admin panel [panels/AdminBelowChat.xml]
[07/16,00:39:47] Load default donate panel [panels/DonateBelowCPList.xml]
[07/16,00:39:47] Load default records panel [panels/RecordsRightBottom.xml]
[07/16,00:39:47] Load default vote panel [panels/VoteBelowChat.xml]
[07/16,00:39:48] ************* (Dedimania) *************
[07/16,00:39:48] * Dataserver connection on Dedimania ...
[07/16,00:39:48] * Try connection on http://dedimania.net:8011/Dedimania ...
[07/16,00:39:48] Webaccess (dedimania.net:80): send: deflate, receive: gzip
[07/16,00:39:48] * Connection and status ok! :)
[07/16,00:39:48] * NEWS (Dedimania, 08/05): news
[07/16,00:39:48] ------------- (Dedimania) -------------
[07/16,00:39:49] << player 9 joined the game [drainer : $s$fffÑпÒ-δ´$i$0f0Drainer :D : Portugal : 7364 : 85.241.74.221]
[07/16,00:39:50] << player 7 joined the game [tammo54 : $s$fffÑпÒ-δ´$i$0f0Mattheus : Netherlands : 11484 : 62.51.159.6]
[07/16,00:39:50] << player 13 joined the game [davidfonseca : $i$w$fffÒonseca$0F0Z$fffz.' klaxon. : Portugal : 12415 : 85.243.85.83]
###############################################################################
  XASECO v1.09 running on 127.0.0.1:5001
  Name   : ÑпÒ-δ'Team - delta-team
  Game   : TmForever Nations - Stadium - Rounds
  Version: 2.11.21 / 2009-05-25
  Authors: Florian Schnell & Assembler Maniac
  Re-Authored: Xymph
###############################################################################
End Round
Restart Challenge
[07/16,00:39:52] Webaccess (dedimania.net:8011): send: deflate, receive: deflate
haha]\Begin Challenge
[

NOW THE INTERESTING PART:
[07/16,00:45:17] << player 18 joined the game [davidfonseca : $i$w$fffÒonseca$0F0Z$fffz.' klaxon. : Portugal : 12415 : 85.242.227.92]
[07/16,00:45:50] player kop__ used chat command "/dedirecs "
/dedirecs[XASECO Warning] Cheat by 'davidfonseca' detected! CPs: 0:02.97/0:05.15/0:08.14/0:12.43 Last: 0:02.97 index: 0
[XASECO Warning] Cheat by 'davidfonseca' detected! CPs: 0:02.97/0:05.15/0:08.14/0:12.43 Last: 0:05.10 index: 1
[XASECO Warning] Cheat by 'davidfonseca' detected! CPs: 0:02.97/0:05.15/0:08.14/0:12.43 Last: 0:07.89 index: 2
[XASECO Warning] Cheat by 'davidfonseca' detected! CPs: 0:02.97/0:05.15/0:08.14/0:12.43 Last: 0:12.21 index: 3
fdx[07/16,00:46:17] [Dedimania] player tammo54 finished with 57210 and took the 14. WR place!
[07/16,00:46:17] [Dedimania] player drainer finished with 57830 and took the 20. WR place!
[XASECOlolnao[XASECO Warning] Cheat by 'tammo54' detected! CPs: 0:02.97/0:05.09/0:07.87/0:12.06/0:19.83/0:21.52/0:28.81/0:35.02/0:44.74/0:49.42/0
:54.16/0:56.41/0:57.21 Last: 0:02.97 index: 0
[XASECO Warning] Cheat by 'tammo54' detected! CPs: 0:02.97/0:05.09/0:07.87/0:12.06/0:19.83/0:21.52/0:28.81/0:35.02/0:44.74/0:49.42/0:54.16/0:56.4
1/0:57.21 Last: 0:05.08 index: 1
WTF[XASECO Warning] Cheat by 'tammo54' detected! CPs: 0:02.97/0:05.09/0:07.87/0:12.06/0:19.83/0:21.52/0:28.81/0:35.02/0:44.74/0:49.42/0:54.16/0:5
6.41/0:57.21 Last: 0:07.82 index: 2
[XASECO Warning] Cheat by 'drainer' detected! CPs: 0:02.96/0:05.05/0:07.90/0:12.31/0:20.44/0:22.05/0:29.31/0:35.54/0:45.29/0:50.25/0:54.83/0:57.0
0/0:57.83 Last: 0:03.06 index: 0
[XASECO Warning] Cheat by 'drainer' detected! CPs: 0:02.96/0:05.05/0:07.90/0:12.31/0:20.44/0:22.05/0:29.31/0:35.54/0:45.29/0:50.25/0:54.83/0:57.0
0/0:57.83 Last: 0:05.16 index: 1
[XASECO Warning] Cheat by 'drainer' detected! CPs: 0:02.96/0:05.05/0:07.90/0:12.31/0:20.44/0:22.05/0:29.31/0:35.54/0:45.29/0:50.25/0:54.83/0:57.0
0/0:57.83 Last: 0:08.04 index: 2
Cheat[XASECO Warning] Cheat by 'tammo54' detected! CPs: 0:02.97/0:05.09/0:07.87/0:12.06/0:19.83/0:21.52/0:28.81/0:35.02/0:44.74/0:49.42/0:54.16/0
:56.41/0:57.21 Last: 0:02.97 index: 0
...
Any one experience this? Is there a solution?
Last edited by Xymph on 16 May 2010 16:28, edited 3 times in total.
Reason: Use code tags to post code & logs...

Bueddl
speedy pilot
speedy pilot
Posts: 458
Joined: 05 Apr 2008 12:37
Owned TM-games: TMO, TMS, TMU/N(F)
Location: Germany
Contact:

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by Bueddl » 16 Jul 2009 06:36

I think checkpoinr (secotr) recs are great! In every real race you have sector recs. It is great to compare those times etc.
nice^^

Cheers :1
Bueddl

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by scg-flighthigh » 16 Jul 2009 07:37

@ Astroman

You don't have load the XAI-Plugins. Why you post in this Thread here?

Astroman
pedestrian
pedestrian
Posts: 12
Joined: 08 Nov 2007 22:33
Owned TM-games: TMO,TMS,TMU,TMN

Re: [XASECO]Xai Plugins 0.03: Sector recs, Calendar, Custom Chat

Post by Astroman » 16 Jul 2009 10:30

Sorry, I copy pasted other beginning of other log.

The problem still persists. But it is working on Rounds mode at least.

Any ideas?

Post Reply