[Xaseco] Nouse Betting V1.8.1

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

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [Xaseco] Nouse Betting V1.4

Post by Knutselmaaster » 18 Jan 2010 21:53

Newest version works great, thanks Nouse!

For those who want them in the fufi menu:

Code: Select all

		<entry caption='Bet' dependencies='plugin.nouse.betting.php' rights='TMUF' unique='bet'>
		  <entry caption='Bet amount' unique='betamound'>
			  <entry caption='20 Coppers' chatcmd='/bet 20' unique='bet20'/>
			  <entry caption='50 Coppers' chatcmd='/bet 50' unique='bet50'/>
			  <entry caption='100 Coppers' chatcmd='/bet 100' unique='bet100'/>
			  <entry caption='250 Coppers' chatcmd='/bet 250' unique='bet250'/>
			  <entry caption='500 Coppers' chatcmd='/bet 500' unique='bet500'/>
			  <entry caption='1000 Coppers' chatcmd='/bet 1000' unique='bet1000'/>
			  <entry caption='2500 Coppers' chatcmd='/bet 2500' unique='bet2500'/>
			  <entry caption='5000 Coppers' chatcmd='/bet 5000' unique='bet5000'/>
			  <entry caption='10000 Coppers' chatcmd='/bet 10000' unique='bet10000'/>
			  <entry caption='25000 Coppers' chatcmd='/bet 25000' unique='bet25000'/>
			  <entry caption='50000 Coppers' 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>

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: [Xaseco] Nouse Betting V1.4

Post by nouseforname » 19 Jan 2010 05:55

thanks fot the menu buttons. i totally ignored that^^
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 25 Jan 2010 10:07

I admit I didnt read all thread now ;) So if its a double request, just take it as a emphasis :D

I've played on servers with quite a long time limit for bet and especially accept, but I had no chance of winning the bet so I didnt bother accepting it.

I increased the timelimits too, but i would like to have an X or whatever for the Bet and Accept Window. So that players who either cant bet, or dont bother accepting it can remove it from view or minimize it. Cause its quite annoying to see it all time.


And my second request, could you exclude warmup from the betting limits? So that the Time limit starts on the real match. If betting allowed on WarmUp too, or just when Real Match starts... Dont bother about that, I'd say the easier to code one.

I tried to add this myself, but I have no experience how to alter the XML Boxes and wasnt sure wether its possible or not to switch them of for single players. And as I think its useful for all, I post it here ;)

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [Xaseco] Nouse Betting V1.4

Post by Knutselmaaster » 25 Jan 2010 18:57

You can change location of the screens in the config:

Code: Select all

	<!-- position of betting panel -->
	<bet_panel>
		<mainpos>0 35 1</mainpos>
	</bet_panel>
	
	<!-- position of accept panel -->
	<accept_panel>
		<mainpos>0 35 1</mainpos>
	</accept_panel>
First number (0) is horizontal location (0= middle of screen, negative number is to the left, positive number is to the right)

Second number is vertical location (0= middle of screen, negative number is lower, positive number is higher)

Third number is depth, you'll want to leave it on 1.

As you can see i put the screen a little higher than in the standard settings, so non-betting people aren't bothered by it.
Try it, if you concentrate on driving you hardly see it like this.

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 25 Jan 2010 19:04

Well the numbers you chose are kind of familiar to me ;) I have the same in my config. But i moved it up, cause the Plugin collides the the Scoretable and Gamemode info if you Press TAB.

With height set to 35 it pefectly fits in the middle of both.
Yet I still would prefer a possibilty to say "I don t want to bet or accept".

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [Xaseco] Nouse Betting V1.4

Post by Knutselmaaster » 25 Jan 2010 21:22

What i know about "personalised" manialinks is that it uses a lot of resources of the server so it is not advised for big servers. (i believe i read that in fufi widgets topic somewhere)
Still it would be a nice addition to the plugin if visitors can choose tho.

Olymptor
sunday driver
sunday driver
Posts: 59
Joined: 16 May 2009 00:15
Owned TM-games: TMUF, TMO, TMS

Re: [Xaseco] Nouse Betting V1.4

Post by Olymptor » 26 Jan 2010 05:47

Code: Select all

<!-- factor nadeo tax is multiplied with, for any payment. for each transfer it's 2 coppers + 5% of transfer amount -->
   <!-- you should not use too small minbet & bet values in case you wanna earn coppers, eg factor 5 and value 20c = payback is 6c only -->
   <!-- 0 = server pay all transer taxes -->
   <!-- 1 = server and player pay transfer taxes, each one -->
   <!-- 2 = player pay all taxes -->
   <!-- 3 = server earn money -->
Sorry but i don't understand that :/
Can you re-explain with exemples for each cases ?

1) (2 coppers + 5% of transfer amount)
Is this official nadéo tax ?
It is apply when a player do a don or a bet.
But is it apply when server use pay ? (when i pay me from my serv don, there is no tax i think -- Maybe it's because serv is under my login on playerpage)

2) Factors
0 - eg if player bet 20 coppers, nadéo tax 6, so server pay 6 to complete bet
+ when server payback, nadeo tax so server pay to complete amount of winner

1- player pay tax of 6 so he pay 26 to bet 20
+ server pay tax to complete amount of winner

2 - player pay tax of 6 so he pay 26 to bet 20
server pay to winner (amount - nadéo tax)

3 - ?? ( = player pay 3 times nadéo tax ? so 1 tax is virtual and it's for server service betting ?)

4 - ??

Is it correct ?
Thanks to answer : X
Olymptor

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 26 Jan 2010 08:57

If any coppers are transfered to or from the server, the server pays the tax.

So if someone Donates or bets 100 Copper, he will only get 100 coppers deducted from his account. And your server has to pay 2+5% (7 in this case for easier calculation) tax in advance.
So if your server has no copper he cant accept donations.

And if your server Pays 100 Coppers to someone(yourself for example cause you want to pull out the coppers) you receive 100 and your server gets 107 deducted.

And the Factor there is now the Number of times the tax is deducted before paying out.

Example:

I bet 100 Copper (server pays 7c tax)
You accept 100 Copper (server pays 7c tax)

You win 200 Copper (server pays 12c tax)
=> 26c Tax in total

Now comes the Setting:
Factor 1: Server pays out 200c- 1 x 12c
Server loses 14c

Factor 2: Server pays out 200 - 2 x 12c
Server loses 2c (nearly nothing so to say)

Factor 3: Server pays out 200 - 3 x 12c
Server gains 10c

And so on and so on.
At least this is how I understood it, correct me if I am wrong ;)

I hope that answered your question.

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: [Xaseco] Nouse Betting V1.4

Post by nouseforname » 26 Jan 2010 09:54

@ nanir: correct this way was my intention :)

regarding your request, at the moment i dont have time to change any plugin.

also my thinking was not to keep the bet/acceptance too long.

well maybe in the future i will do something more.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 26 Jan 2010 13:22

I like the way Schmidi solved it for his serverswitch. That you can hide it or get it back.

viewtopic.php?f=127&t=23759

The only problem for me would be my sides are already completely stuffed full ;)

If you would give me a little introduction on your code and others would also like that idea I would offer to code it.

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: [Xaseco] Nouse Betting V1.4

Post by nouseforname » 26 Jan 2010 14:17

Nanir wrote:I like the way Schmidi solved it for his serverswitch. That you can hide it or get it back.

viewtopic.php?f=127&t=23759

The only problem for me would be my sides are already completely stuffed full ;)

If you would give me a little introduction on your code and others would also like that idea I would offer to code it.

from my side there no big difference between hiding it totally or do it like schmidi regarding the code.
the problem is more the performance, sending a manialink to all players at the same time need much less power than sending it sepearate. thats why it's not good for high visited servers.

nice to have tho...
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 26 Jan 2010 15:19

True, but that could be solved that way fufi does it on his widgets, they switch to high performance mode if a certain number of players was reached.
Btw I just had that double click bug.

So one player made a bet of 100 Copper, accepted it by mistake and one accepted it later too.

So the stake was 300.

Well the 2nd player accepted after the first left and he was already leading...

His fault and i earned copper :D

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: [Xaseco] Nouse Betting V1.4

Post by nouseforname » 26 Jan 2010 15:32

i know what fufi does. but its more work to do.

the "double click" bug, isn't really a bug, same happens with donations.

the bet starter dont have the accept panel, so bet starter only can accept his own bet if he accept the payment two times, stupid who is doing this^^

anyway, if you want to modify it, do it :)
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Nanir
cyclist
cyclist
Posts: 32
Joined: 25 Dec 2009 10:30
Owned TM-games: TMUF

Re: [Xaseco] Nouse Betting V1.4

Post by Nanir » 26 Jan 2010 15:40

True.

But wouldnt it make sense if he accepts it twice that the ammount to accept the bet has to increase too?

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: [Xaseco] Nouse Betting V1.4

Post by nouseforname » 26 Jan 2010 15:48

after the first time of acception the bet, the payment mode is accept already

it's the onBill method which is used for all payments. just the id is checked, and if bet state was set active, the next time onBill will bee used for accept. so i see no chance atm.

the players have to read exactly. i see it like driving car, think about what u r doing and read the signs :)
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Post Reply