- 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>
[Xaseco2] Nouse Betting V1.0.1
-
- 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
Last edited by nouseforname on 29 Feb 2012 19:29, edited 2 times in total.
-
- pedestrian
- Posts: 13
- Joined: 11 Sep 2011 07:31
- Owned TM-games: TMC
- Location: Germany/Hannover
- Contact:
Re: [Xaseco2] Nouse Betting V1.0
Wow:) Thanks:)



Re: [Xaseco2] Nouse Betting V1.0.1

can we prevent this?
-
- Pit Crew
- Posts: 1493
- Joined: 03 Jun 2006 13:24
- Owned TM-games: TMU
- Contact:
Re: [Xaseco2] Nouse Betting V1.0.1
No, you can NOT prevent Nadeo from getting a transaction fee. It happens on the Nadeo server, not the game server or client.ricou wrote:why have a tax has nadeo?
can we prevent this?
- undef.de
- Pit Crew
- Posts: 1360
- 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
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.Assembler Maniac wrote:No, you can NOT prevent Nadeo from getting a transaction fee. It happens on the Nadeo server, not the game server or client.ricou wrote:why have a tax has nadeo?
can we prevent this?
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
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name
Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm
Re: [Xaseco2] Nouse Betting V1.0.1
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?
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?
-
- 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
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
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
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
-
- wheelbarrow operator
- Posts: 21
- Joined: 29 Oct 2013 09:13
- Owned TM-games: TM2
Re: [Xaseco2] Nouse Betting V1.0.1
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???
- undef.de
- Pit Crew
- Posts: 1360
- 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
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).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.
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
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name
Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm
-
- wheelbarrow operator
- Posts: 21
- Joined: 29 Oct 2013 09:13
- Owned TM-games: TM2
Re: [Xaseco2] Nouse Betting V1.0.1
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...
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...
-
- wheelbarrow operator
- Posts: 21
- Joined: 29 Oct 2013 09:13
- Owned TM-games: TM2
Re: [Xaseco2] Nouse Betting V1.0.1
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!
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!
- undef.de
- Pit Crew
- Posts: 1360
- 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
Just taken a look into my config and i have changed the position of the panels to: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...)
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>
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
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name
Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm
-
- wheelbarrow operator
- Posts: 21
- Joined: 29 Oct 2013 09:13
- Owned TM-games: TM2
Re: [Xaseco2] Nouse Betting V1.0.1
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...
Second possibility, i am to stupid...
- undef.de
- Pit Crew
- Posts: 1360
- 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
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.Maniac_Lauterer wrote:Probably a newer aseco-version that is not working with this script...
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
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name
Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm