Page 1 of 3

[Xaseco 1+2] Pay2Play plugin

Posted: 28 Nov 2012 20:04
by Leigham
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.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 29 Nov 2012 16:23
by undef.de
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:

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 29 Nov 2012 17:02
by Leigham
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

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 02 Dec 2012 00:21
by tm-alonso
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+

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 02 Dec 2012 12:35
by Leigham
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.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 02 Dec 2012 15:30
by tm-alonso
ok thx Leigham I disable replaycharge ;)
and for disable the vote who can not pay for next or skip ???

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 02 Dec 2012 17:24
by Leigham
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.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 02 Dec 2012 19:21
by tm-alonso
ok thanks
but I don't have access to this file :/

ok goo news release with auto disable ^^

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 03 Dec 2012 18:17
by TheBigG
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

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 03 Dec 2012 18:45
by Leigham
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"/>

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 03 Dec 2012 19:59
by TheBigG
if i set it to -1 i can't change player limit anymore

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 08 Dec 2012 18:50
by Leigham
Updated.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 11 Dec 2012 22:16
by peugeot405
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.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 13 Dec 2012 22:32
by Leigham
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.

Re: [Xaseco 1+2] Pay2Play plugin

Posted: 14 Dec 2012 16:23
by peugeot405
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.