[Xaseco 1+2] Pay2Play plugin

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
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

[Xaseco 1+2] Pay2Play plugin

Post by Leigham » 28 Nov 2012 20:04

Pay2Play

This is a combination of my replaycharge plugin and skipping functionality.

It allows players to pay to replay a map or to skip it, the max number of replays can be set as can a delay before skipping.

Image Image Image Image

This plugin requires the rasp jukebox plugin.

Versions
v1.01
  • TMF release.
  • Implemented dependancy check.
  • Option to disable callvotes (thanks tm-alonso).
  • Some minor formating changes and bugfixes.
v1.00
  • Initial release.
Download:

Xaseco2 v1.01+
plugin.pay2play.zip

Xaseco v1.15b+
plugin.pay2play.zip

Setup:

- Unzip the file and move plugin.pay2play.php into you xaseco /plugins directory.

- Edit the values in pay2play.xml to your satisfaction.

- Add the following line to plugins.xml in your xaseco root directory: <plugin>plugin.pay2play.php</plugin>

- Restart Xaseco

Please note: If you came here looking for replaycharge v2.00, it has been renamed pay2play. This plugin does everything replaycharge did with some additional features. Thankyou.

Please leave any suggestions as to additional functionality.
Last edited by Leigham on 08 Dec 2012 18:50, edited 4 times in total.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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

Re: [Xaseco 1+2] Pay2Play plugin

Post by undef.de » 29 Nov 2012 16:23

Leigham wrote: - Unzip the file and move plugin.replaycharge.php into you xaseco /plugins directory.
- Edit the values in replaycharge.xml to your satisfaction.
- Add the following line to plugins.xml in your xaseco root directory: <plugin>plugin.replaycharge.php</plugin>
Your description at "Setup" should be:

- Unzip the file and move plugin.pay2play.php into you xaseco /plugins directory.
- Edit the values in pay2play.xml to your satisfaction.
- Add the following line to plugins.xml in your xaseco root directory: <plugin>plugin.pay2play.php</plugin>

:mrgreen:
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

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 29 Nov 2012 17:02

undef.de wrote:
Leigham wrote: - Unzip the file and move plugin.replaycharge.php into you xaseco /plugins directory.
- Edit the values in replaycharge.xml to your satisfaction.
- Add the following line to plugins.xml in your xaseco root directory: <plugin>plugin.replaycharge.php</plugin>
Your description at "Setup" should be:

- Unzip the file and move plugin.pay2play.php into you xaseco /plugins directory.
- Edit the values in pay2play.xml to your satisfaction.
- Add the following line to plugins.xml in your xaseco root directory: <plugin>plugin.pay2play.php</plugin>

:mrgreen:
Heh, that's where copy/pasting gets you :roll: Thanks
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

tm-alonso
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 21 Oct 2012 15:05
Owned TM-games: TMU, TM2

Re: [Xaseco 1+2] Pay2Play plugin

Post by tm-alonso » 02 Dec 2012 00:21

Hi

how to disable voting for restard and skip the map
(advanced options - callvote restard and callvote next challenge)

+

replaycharge release 2.00 where is she :
I clik on information or download and I go on topic of Pay2Play :/
Image

A+
Image
Image

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 02 Dec 2012 12:35

tm-alonso wrote: replaycharge release 2.00 where is she :
I clik on information or download and I go on topic of Pay2Play :/
Replaycharge 2.00 is Pay2Play. If you've installed pay2play you should disable replaycharge, there's no need for both of them. Pay2Play does everything replaycharge did.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

tm-alonso
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 21 Oct 2012 15:05
Owned TM-games: TMU, TM2

Re: [Xaseco 1+2] Pay2Play plugin

Post by tm-alonso » 02 Dec 2012 15:30

ok thx Leigham I disable replaycharge ;)
and for disable the vote who can not pay for next or skip ???
Image
Image

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 02 Dec 2012 17:24

You can set your callvote ratio in the dedicated config to -1

Code: Select all

<callvote_ratio>-1</callvote_ratio>
I'll see if I can add in a better way in the next release.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

tm-alonso
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 21 Oct 2012 15:05
Owned TM-games: TMU, TM2

Re: [Xaseco 1+2] Pay2Play plugin

Post by tm-alonso » 02 Dec 2012 19:21

ok thanks
but I don't have access to this file :/

ok goo news release with auto disable ^^
Image
Image

TheBigG
smooth traffic navigator
smooth traffic navigator
Posts: 226
Joined: 16 Oct 2010 19:45
Owned TM-games: TMN! TMF
Location: Germany

Re: [Xaseco 1+2] Pay2Play plugin

Post by TheBigG » 03 Dec 2012 18:17

Leigham wrote:You can set your callvote ratio in the dedicated config to -1

Code: Select all

<callvote_ratio>-1</callvote_ratio>
I'll see if I can add in a better way in the next release.
i would prefer

Code: Select all

<callvote_timeout>0</callvote_timeout>
becouse

Code: Select all

<callvote_ratio>-1</callvote_ratio>
is buggy for me

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 03 Dec 2012 18:45

TheBigG wrote: i would prefer

Code: Select all

<callvote_timeout>0</callvote_timeout>
becouse

Code: Select all

<callvote_ratio>-1</callvote_ratio>
is buggy for me
Really? How so?

-1 is the way to turn them off, certainly. You might find that just disabling the specific commands on the line below is better though.

Code: Select all

<voteratio command="RestartMap" ratio="-1"/>
<voteratio command="NextMap" ratio="-1"/>
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

TheBigG
smooth traffic navigator
smooth traffic navigator
Posts: 226
Joined: 16 Oct 2010 19:45
Owned TM-games: TMN! TMF
Location: Germany

Re: [Xaseco 1+2] Pay2Play plugin

Post by TheBigG » 03 Dec 2012 19:59

if i set it to -1 i can't change player limit anymore

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 08 Dec 2012 18:50

Updated.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

peugeot405
tricycle manager
tricycle manager
Posts: 25
Joined: 25 May 2009 13:28
Owned TM-games: tmuf
Location: Belgium

Re: [Xaseco 1+2] Pay2Play plugin

Post by peugeot405 » 11 Dec 2012 22:16

I'm getting following error:

Code: Select all

[PHP Warning] Illegal offset type on line 270 in file /plugins/plugin.pay2play.php
Here's what i have in pay2play.xml:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>

<settings>
	
	<replay>
		<enabled>true</enabled> 				<!-- Defines whether this button is active, bool -->
		<cvote_off>true</cvote_off>			<!-- Defines whether to disable the servers callvote_restart function, bool -->
		<posx>-47.8</posx>								<!-- Defines the x coordinate of the widget, int -->
		<posy>-0.9</posy>									<!-- Defines the y coordinate of the widget, int -->
		<cost>150</cost>									<!-- Defines the cost to replay a track, int -->
		<max_replays>1</max_replays>		<!-- Defines the maximum number of consecutive replays, '0' for infinite, int -->
		<blink>true</blink>						<!-- Defines whether button blinks when replay is imminent, bool -->
	</replay>
	
	<skip>
		<enabled>true</enabled> 				<!-- Defines whether this button is active, bool -->
		<cvote_off>true</cvote_off>			<!-- Defines whether to disable the servers callvote_skip function, bool -->
		<posx>-47.8</posx>								<!-- Defines the x coordinate of the widget, int -->
		<posy>-7.6</posy>									<!-- Defines the y coordinate of the widget, int -->
		<cost>300</cost>									<!-- Defines the cost to skip a track, int -->
		<delay>30</delay>								<!-- Defines the delay before the map skips in seconds, int -->
		<blink>true</blink>						<!-- Defines whether button blinks when skip is imminent, bool -->
	</skip>

</settings>
I'm have xaseco1.15b and rasp jukebox is enabled

edit:

Ok now the replay is working, but when clicking the skip button i see following message:

The track will end before your action can be completed, please be patient.

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [Xaseco 1+2] Pay2Play plugin

Post by Leigham » 13 Dec 2012 22:32

peugeot405 wrote:I'm getting following error:

Code: Select all

[PHP Warning] Illegal offset type on line 270 in file /plugins/plugin.pay2play.php
Not sure about this one, I can't see anything that would be causing it and can't seem to reproduce it either.
peugeot405 wrote: Ok now the replay is working, but when clicking the skip button i see following message:

The track will end before your action can be completed, please be patient.
That happens if a track is going to end before the skip will be implemented. Your delay is 30 seconds, so if there's less than around 40s left on the track you won't be able to skip. Shorten the delay if you want that to stop.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

peugeot405
tricycle manager
tricycle manager
Posts: 25
Joined: 25 May 2009 13:28
Owned TM-games: tmuf
Location: Belgium

Re: [Xaseco 1+2] Pay2Play plugin

Post by peugeot405 » 14 Dec 2012 16:23

I did some testing and it is working perfect in time attack mode, and not working in laps or rounds.

My server is running in laps mode. Sorry i should have mentioned that.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests