Page 1 of 2

[Xaseco2] Nouse Betting V1.0.1

Posted: 27 Feb 2012 16:51
by nouseforname
  • 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>

Re: [Xaseco2] Nouse Betting V1.0

Posted: 27 Feb 2012 17:14
by Jar-Jar
Wow:) Thanks:) :3 :3

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 10 Mar 2012 07:37
by ricou
:ftw: why have a tax has nadeo?

can we prevent this?

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 10 Mar 2012 12:50
by Assembler Maniac
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.

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 10 Mar 2012 19:58
by undef.de
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.

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 21 Oct 2012 16:46
by Bladinium
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?

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 02 Nov 2012 08:10
by nouseforname
Any special character in the nickname which can not be read? Check your database content itself for the login, id etc.

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 04 Nov 2012 10:04
by Bladinium
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

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 30 Oct 2013 20:55
by Maniac_Lauterer
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???

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 30 Oct 2013 22:47
by undef.de
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.

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 31 Oct 2013 11:55
by Maniac_Lauterer
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...

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 31 Oct 2013 12:30
by Maniac_Lauterer
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!

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 31 Oct 2013 17:39
by undef.de
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.

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 01 Nov 2013 11:18
by Maniac_Lauterer
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...

Re: [Xaseco2] Nouse Betting V1.0.1

Posted: 01 Nov 2013 16:57
by undef.de
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.