[Xaseco2] Nouse Betting V1.0.1

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

Moderators: Xymph, TM-Patrol

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

[Xaseco2] Nouse Betting V1.0.1

Post by nouseforname » 27 Feb 2012 16:51

  • Nouse Betting v1.0.1

    Update:
    - support of undef's uptodate plugin :)

    I made a quick pack of my plugin for xaseco2, its the exact same like the known xaseco plugin.
    due to i dont have mmuch time, dont expect a good and quick support, but i guess all is running fine.


    Xaseco2 plugin to serve betting function. all bet participants are fighting for the
    stake made by all of them. so it's all about beeing in front of others again^^.
    there are several manialink buttons to serve the chatcommands.
    this plugin is tested only in TA mode, but should also work in Rounds.

    This is beta only, some server admins already installed and tested it. i tested everything in detail by myself, all was fine so far. but still no warranty for perfect function.

    i would appreciate any server admin installing this plugin. pls let me know if all works well. post it here, even if there is something which could be improved. i tried to mind all the details and functions i would like to have with this plugin. but there no demand on beeing perfect here. :)

    hope you all enjoy it.

    Chatcommands:
    - /bet "n" > bet any amount of planets above the "minbet" limit (n = planets)
    - /accept > to accept the started bet with given stake
    - /betstake > to view a list of players and theire bet stakes
    - /betwin > to view a list of players and theire bet wins (planets and count)
    - /bettotalstake > to view list of all participants

    MasterAdmin and Admin only:
    - /betstate ON/OFF > to enable/disable betting from next new challenge

    Function:
    At new challenge server planets are checked, if below "minserverplanets" betting
    will be disabled. It will also be disabled by admin command. With "betenabled" you
    decide if betting is enabled/disabled with xaseco startup.

    If nobody started bet during "timelimitbet" seconds, betting will be not allowed for
    running round.
    If bet started but nobody accepted in "timelimitbet" seconds, bet starter get back
    his/her stake. Nadeo tax will be deducted.
    If bet started and accepted by players but nobody won, stake can be refund or not,
    depending on "paybacknowin" option. Nadeo tax will be deducted before.
    Bet participants must have finished the track to be able to win.
    There are two options ("winneronly") for winning conditions. one is Winner only
    can win the bet, second is, bet winner need to be in front of other bet participants.
    If there is a bet winner he/she will get the stake, in this case nadeo tax is splitted.
    half is payed by server, half is payed by winner.
    This system will avoid the server losing too much planets.
    The ingame message with planets and winmessage could take a while, the time is not
    influenced by the plugin.

    There are 4 different manialink windows:
    - bet panel, serving the start panel with 5 buttons to bet different amounts.
    amount can be configured via betting_config.xml.
    - accept panel, serving the accept button and display the stake.
    - win panel, giving only a message of who win and how much, cause chat message only
    is not enough at end of race.
    - state panel, displays the total stake, click it to see a list of all bet participants.

    all main positions can be adjusted via the config file.
    if you want to edit the whole apperance, check out the manialink section somewhere below.
    Same for colors and text of any chatmessage, check out the chat command section at bottom.

    The plugin will create a new table "betting" in your database, this is necessary to
    save the betting data like player, nickname, stake, win, wincount.

    No need to modify any other existing file.


    Installation:
    Copy plugin.nouse.betting.php into plugins folder.
    Copy nouse_betting_config.xml into xaseco root
    Add "<plugin>plugin.nouse.betting.php</plugin> into plugins.xml
    Configure to ur needs.


    Download:
    http://nouseforname.de

    Fufi menu entries for betting by Knutselmaster:

    Code: Select all

          <entry caption='Bet' dependencies='plugin.nouse.betting.php' rights='TMUF' unique='bet'>
            <entry caption='Bet amount' unique='betamound'>
               <entry caption='20 Planets' chatcmd='/bet 20' unique='bet20'/>
               <entry caption='50 Planets' chatcmd='/bet 50' unique='bet50'/>
               <entry caption='100 Planets' chatcmd='/bet 100' unique='bet100'/>
               <entry caption='250 Planets' chatcmd='/bet 250' unique='bet250'/>
               <entry caption='500 Planets' chatcmd='/bet 500' unique='bet500'/>
               <entry caption='1000 Planets' chatcmd='/bet 1000' unique='bet1000'/>
               <entry caption='2500 Planets' chatcmd='/bet 2500' unique='bet2500'/>
               <entry caption='5000 Planets' chatcmd='/bet 5000' unique='bet5000'/>
               <entry caption='10000 Planets' chatcmd='/bet 10000' unique='bet10000'/>
               <entry caption='25000 Planets' chatcmd='/bet 25000' unique='bet25000'/>
               <entry caption='50000 Planets' chatcmd='/bet 50000' unique='bet50000'/>
             </entry>
             <entry caption='Accept bet' chatcmd='/accept' unique='accept'/>
             <entry caption='Actual stake' chatcmd='/bettotalstake' unique='bettotalstake'/>
             <entry caption='Total stake' chatcmd='/betstake' unique='betstake'/>
             <entry caption='Bet topwins' chatcmd='/betwin' unique='betwin'/>                  
          </entry>
Last edited by nouseforname on 29 Feb 2012 19:29, edited 2 times in total.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Jar-Jar
pedestrian
pedestrian
Posts: 13
Joined: 11 Sep 2011 07:31
Owned TM-games: TMC
Location: Germany/Hannover
Contact:

Re: [Xaseco2] Nouse Betting V1.0

Post by Jar-Jar » 27 Feb 2012 17:14

Wow:) Thanks:) :3 :3

ricou
wheelbarrow operator
wheelbarrow operator
Posts: 20
Joined: 07 Oct 2008 08:51
Owned TM-games: tmuf

Re: [Xaseco2] Nouse Betting V1.0.1

Post by ricou » 10 Mar 2012 07:37

:ftw: why have a tax has nadeo?

can we prevent this?

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Assembler Maniac » 10 Mar 2012 12:50

ricou wrote::ftw: why have a tax has nadeo?

can we prevent this?
No, you can NOT prevent Nadeo from getting a transaction fee. It happens on the Nadeo server, not the game server or client.

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: [Xaseco2] Nouse Betting V1.0.1

Post by undef.de » 10 Mar 2012 19:58

Assembler Maniac wrote:
ricou wrote::ftw: why have a tax has nadeo?

can we prevent this?
No, you can NOT prevent Nadeo from getting a transaction fee. It happens on the Nadeo server, not the game server or client.
Is there an transaction tax in TM²C too? I was reading that there is no tax... dunno the source anymore (was it at maniaplanet.com??), sry.
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

Bladinium
pedestrian
pedestrian
Posts: 6
Joined: 11 Sep 2012 12:47
Owned TM-games: TMU

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Bladinium » 21 Oct 2012 16:46

Hello,

I have a problem with the plugins, it records in database paris, but some players are not in??​​?

Currently there me and my friends, we're both superadmin.

I removed the admin rights to my friends but it still does not fit in the database of bet

Have an idea?

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [Xaseco2] Nouse Betting V1.0.1

Post by nouseforname » 02 Nov 2012 08:10

Any special character in the nickname which can not be read? Check your database content itself for the login, id etc.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Bladinium
pedestrian
pedestrian
Posts: 6
Joined: 11 Sep 2012 12:47
Owned TM-games: TMU

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Bladinium » 04 Nov 2012 10:04

Yes i have no character on nickname

Hello

We try with and without character fo test. But it does not record in the Super Admin bdd(I did not try with the op and admin)

There is in the DB Id but they are not visible example:
1
2
3
5
6

It lacks 4 to be the admin i guess i do not have a login, ID Just missing

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 30 Oct 2013 20:55

Hi, can this script be used on Trackmania 2 with planets without changing anything from the instruction. Or do i have to change the mincoppers to minplanets? I do not get the the script work. It is there, it answers, so i can zurn it on or off with the admin chat command and it also answers that it will start next round but then nothing happens, no bet-panel appears. Come someone help me???

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: [Xaseco2] Nouse Betting V1.0.1

Post by undef.de » 30 Oct 2013 22:47

Maniac_Lauterer wrote:Hi, can this script be used on Trackmania 2 with planets without changing anything from the instruction. Or do i have to change the mincoppers to minplanets? I do not get the the script work. It is there, it answers, so i can zurn it on or off with the admin chat command and it also answers that it will start next round but then nothing happens, no bet-panel appears.
This is the port for TM2 and you do not need to change some named tags in the XML, it works with planets instead of coppers (the author forget to rename this from the TMF port).

I have installed it and it works for me since a long time now.
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

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 31 Oct 2013 11:55

I do not manage to let this script appear. As i said it is on, i can turn it on or off with the admins chat command. Then the script answers, seeable by all people, that it will start next map. Then next map loads, and nothing appears... Any idea?

I installed several scripts, also for example nouse lottery and several more and never had any problems. I followed the instructions as usual, but the script wont start the betting routine... As i said it answers to the admin command, but when i for example just try "/bet 200" it just puts an empty line in the chat, thats all...

???????


Its a Valley-Server btw...

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 31 Oct 2013 12:30

MMh, now i saw your post in the other thread, so i definitly have to use the 1.01 instead of the 1.8.1 to let it work on TM2. I will try now... ( i have no idea if i had this 1.0.1. on the server before...)



EDIT: no change, same problems... I have changed nothing in the script, we have 20times the planets on the server it is afforded by the script.... i could cry!

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: [Xaseco2] Nouse Betting V1.0.1

Post by undef.de » 31 Oct 2013 17:39

Maniac_Lauterer wrote:MMh, now i saw your post in the other thread, so i definitly have to use the 1.01 instead of the 1.8.1 to let it work on TM2. I will try now... ( i have no idea if i had this 1.0.1. on the server before...)
Just taken a look into my config and i have changed the position of the panels to:

Code: Select all

	<!-- position of betting panel -->
	<bet_panel>
		<mainpos>23 -30 0</mainpos>
	</bet_panel>

	<!-- position of accept panel -->
	<accept_panel>
		<mainpos>23 -30 0</mainpos>
	</accept_panel>

	<!-- position of Winner/NoWinner panel -->
	<win_panel>
		<mainpos>35 -40 1</mainpos>
	</win_panel>

	<!-- position of state panel -->
	<state_panel>
		<mainpos>23 -30 0</mainpos>
	</state_panel>
Maybe this help you to bring the panels into the viewport.
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

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 01 Nov 2013 11:18

Thanks a lot, but unfortunately no change at all... I have really no idea, what problem is... Probably a newer aseco-version that is not working with this script...

Second possibility, i am to stupid...

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: [Xaseco2] Nouse Betting V1.0.1

Post by undef.de » 01 Nov 2013 16:57

Maniac_Lauterer wrote:Probably a newer aseco-version that is not working with this script...
Nope, i running the latest release. Please take a look into the logfile, maybe you can find something there. If not, PM me a link to your server.
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

Post Reply