Several XAseco plugins by Milenco

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
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Several XAseco plugins by Milenco

Post by Milenco » 06 Oct 2009 17:01

Looking for my other plugins? Get them in the new PluginPack. See HERE

Last week I took the time to create some plugins for our servers. First of all I have to say I'm not really a programmer. I re-used most of Xymph's work to create these plugins and I'm sure there are many ways to optimize these plugins. However, they are working just fine at several of my servers, so I figured I might as well post them here, for you to use.

plugin.xrestart.php
Use this plugin to restart XAseco or the entire server. It might be useful for people with FTP access to the server, but without the ability to restart XASECO or the server.
/xrestart - Restart XAseco
/xrestart all - Restarts both dedicated server and XAseco

This plugin is made for Windows, so Linux users won't be able to use this.
Settings for the plugin include right management: Specify whether MasterAdmins/Admins/Operators can restart XAseco and/or dedicated server. You can specify the return lines in the plugin in the same way you edit the default XAseco return lines. The format is the same as in config.xml. Use $xr_user_show in the config to set whether normal users (who aren't Operator, Admins or MasterAdmins) see an erorr message when trying to use this command.

The location of Aseco.bat is determined automaticly (its ../Aseco.bat relative to the plugins folder). However, if your Aseco.bat is located elsewhere, specify the path in $xr_xaseco_path (this is optional). However, you MUST set $xr_dedi_path and $xr_php_path to their correct paths, or the script will fail to work!

Image
Image
Download: Here

FufiWidget TopDonaters at Scoreboard
This plugin is an extension to the normal Fufi Widgets. It adds a "Top Donaters" list at the scoreboard, left of Top Ranks. We find this to be a great way to encourage users to donate coppers to our server.

All the credit for this plugin go to szkodnik. He posted the code, I only edited the files.

This requires Fufi Widgets (v0.80b) to be installed. Just overwrite the existing files and restart XAseco.
Image
Download: Here

plugin.chatlog.php
I've slightly modified the default chatlog plugin to show the time the chatline was created. For the rest its the same as the default XAseco 1.10 chatlog.

Image
Download: Here

End notes:
I've tested all these plugins on XAseco v1.10 and TrackmaniaServer_2009-08-01 on PHP 5.3.0.

You can see all these plugins live at one of our servers:
DRS Tech Drift
DRS Mixed Tracks
Last edited by Milenco on 28 Jan 2010 13:14, edited 7 times in total.
Image

_xOr_
pedestrian
pedestrian
Posts: 5
Joined: 06 Sep 2009 20:15
Owned TM-games: Sunrise, United

Re: Several XAseco plugins by Milenco

Post by _xOr_ » 07 Oct 2009 20:36

Nice slap plugin . . but i've seen it before :P

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: Several XAseco plugins by Milenco

Post by Milenco » 07 Oct 2009 22:51

Haha yes. I've got it from a clanmate VanPutten, who got it from fastfwd. I believe he got it from you (correct). So that would make you the creative owner. :)

I did however rewrite the entire code and put in a seperate plugin (the original code was implemented in plugin.rasp_chat.php) and added a few slaps of my own. If you are indeed the creative owner I'm more than happy to put in appropriate credits in the original post. I didn't in the first place, since I wasn't able to figure out the concept creator.
Image

[RoD]Priit
road tourist
road tourist
Posts: 80
Joined: 03 Jan 2007 21:03
Owned TM-games: TMN & TMUF
Contact:

Re: Several XAseco plugins by Milenco

Post by [RoD]Priit » 12 Oct 2009 12:27

my aseco restarts when i want use this plugins.

EG: if i write /avg then aseco restart, if i write /finishes aseco restarts...
Looking New members, if you want join uu and drive CWs then join mof.planet.ee

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

Re: Several XAseco plugins by Milenco

Post by scg-flighthigh » 13 Oct 2009 07:35

I find the xrestart very intersting. So i take it and set the path to my Aseco.bat and to the start.bat of my Test Server. On this Server i use the Xaseco 1.10

Then i go on the Server and take the /xrestart comand. The Aseco ist going down and i got the Message in the Chat. But it dont restart. I see on remote that the Window of Aseco.bat is closed.

If i want to take the "/xrestart all" there come nothing. No Chat no Restart.

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: Several XAseco plugins by Milenco

Post by Milenco » 13 Oct 2009 12:23

Thanks for the feedback.
@scg-flighthigh: Did you also set the path the your php.exe executable? The Xrestart plugin calls on php.exe to initiate a new instance of xaseco and dedicated server. Also, what version of PHP are you using?

@[RoD]Priit: This is strange, it should just work normally. Can you give me some more background information on your server? What PHP and Xaseco version are you using? Also, does your server run on Linux or Windows? I tried to create the finishes/average plugin to work on both operating systems, but obviously something went wrong..
Image

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

Re: Several XAseco plugins by Milenco

Post by scg-flighthigh » 13 Oct 2009 13:11

Hello

I make follow Changes in the script:

Code: Select all

 $xr_xaseco_path = 'D:\Trackmania\Nation\Test\xaseco\Aseco.bat';

$xr_dedi_path = 'D:\Trackmania\Nation\Test\Server\Test-Start.bat';

$xr_php_path = 'D:\Program Files\Parallels\Plesk\Additional\PleskPHP5\php.exe';
	 
My Version of php is 5.2.6

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: Several XAseco plugins by Milenco

Post by Milenco » 13 Oct 2009 13:32

scg-flighthigh wrote:Hello

I make follow Changes in the script:

Code: Select all

 $xr_xaseco_path = 'D:\Trackmania\Nation\Test\xaseco\Aseco.bat';

$xr_dedi_path = 'D:\Trackmania\Nation\Test\Server\Test-Start.bat';

$xr_php_path = 'D:\Program Files\Parallels\Plesk\Additional\PleskPHP5\php.exe';
	 
My Version of php is 5.2.6
I fixed the xrestart plugin and re-uploaded it. Please try now. The problem was the space included in the PHP path, I didn't add the proper "" to start PHP. In my version this wasn't a problem because I didn't have spaces included in the path. However it should work now.
Image

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

Re: Several XAseco plugins by Milenco

Post by scg-flighthigh » 13 Oct 2009 14:40

:1 It works fine.

Thks and good Job :thumbsup:

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: Several XAseco plugins by Milenco

Post by Milenco » 13 Oct 2009 14:44

Glad it works :)

How about /xrestart all? You said it didn't work at all at first. How about now?
Image

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

Re: Several XAseco plugins by Milenco

Post by scg-flighthigh » 13 Oct 2009 14:55

It works too :3

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: Several XAseco plugins by Milenco

Post by Milenco » 13 Oct 2009 16:49

Great :thumbsup:
Image

User avatar
Clinton
smooth traffic navigator
smooth traffic navigator
Posts: 241
Joined: 26 Jan 2008 20:56
Owned TM-games: TMU, TMN, TMO
Location: Dripping Springs, Texas
Contact:

Re: Several XAseco plugins by Milenco

Post by Clinton » 13 Oct 2009 20:41

[RoD]Priit wrote:my aseco restarts when i want use this plugins.

EG: if i write /avg then aseco restart, if i write /finishes aseco restarts...
The server environment his server is hosted on was built on php without the mysqli extension. Rebuilt php with mysqli and it worked just fine.
Image

http://allgamer.net cheapest Trackmania server hosting with the best support. We also do VPS hosting, Dedicated Servers, and Web Hosting! Request a free 3 day trial for a VPS

clinton@teameo.net for more information.

chatty
cyclist
cyclist
Posts: 31
Joined: 10 Aug 2008 08:11
Owned TM-games: TMU,TMS,TMF
Location: Germany / Berlin
Contact:

Re: Several XAseco plugins by Milenco

Post by chatty » 15 Oct 2009 21:23

And where is the Version for Linux ?
This One Plugin Xrestart is for Win not for Other Plattforms. So who host a Dedicated Server on Windows Trashbox ?
Hopefully nobody.

So, please make this Plugin Available for Linux Admins.
Thx

Regards Chatty

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: Several XAseco plugins by Milenco

Post by nocturne » 15 Oct 2009 23:12

Using exec() works for both windows and linux, btw. Used it myself to code an Aseco plugin to automatically restart upon Aseco crash or via an admin command, for use on both my local windows servers and the remote linux ones. All you have to do is set the correct path...

Post Reply