Joined as a replacement, but info shows non-zero bet?
Joined as a replacement, but info shows non-zero bet?
I replaced the player of Turkey in game 542882, I think at zero cost, but the info shows for me, as Turkey, Bet: 5. Was I mistaken and it wasn't zero cost to join? Not a problem if that's the case, I'm just wondering if instead its a bug or a change in policy.
Re: Joined as a replacement, but info shows non-zero bet?
Hmm, that's interesting. No gamemaster message notifying about any replacement either:
https://webdiplomacy.net/board.php?game ... e=Messages
https://webdiplomacy.net/board.php?game ... e=Messages
See my full Profile:
http://www.webdiplomacy.net/profile.php?userID=17421
http://www.webdiplomacy.net/profile.php?userID=17421
Re: Joined as a replacement, but info shows non-zero bet?
In the list of Notices I get on my home page, there is one for when I joined the game (pp-36) saying "You took over Turkey! Good luck"
Re: Joined as a replacement, but info shows non-zero bet?
I would submit a bug report here if you think that something might not be right:
https://webdiplomacy.net/modforum.php
https://webdiplomacy.net/modforum.php
See my full Profile:
http://www.webdiplomacy.net/profile.php?userID=17421
http://www.webdiplomacy.net/profile.php?userID=17421
Re: Joined as a replacement, but info shows non-zero bet?
JECE, thanks for your guidance, I have submitted to that modforum.
-
- Posts: 30
- Joined: Tue Jul 09, 2019 9:15 pm
- Contact:
Re: Joined as a replacement, but info shows non-zero bet?
Have the same issue actually - also posted a mod report
Re: Joined as a replacement, but info shows non-zero bet?
Hmm.. Looking at the code it does look like there is a bet to take over a CD:
https://github.com/kestasjk/webDiplomac ... s.php#L513
Oh wait, that value is always 0:
So that bet amount is the amount the membership is worth, but no points were subtracted from your account to join.
https://github.com/kestasjk/webDiplomac ... s.php#L513
Code: Select all
$bet = $CD->pointsValueInTakeover();
if ( $User->points < $bet )
throw new Exception(l_t("You do not have enough points to take over that countryID."));
Code: Select all
/**
* CD takeovers cost 0. This is a function because they weren't always free, and keeping the function means we can always change it later.
* @return int
*/
function pointsValueInTakeover()
{
return 0;
}
-
- Posts: 29
- Joined: Sat Jun 02, 2018 4:50 am
- Contact:
Re: Joined as a replacement, but info shows non-zero bet?
The bet amount normally says "Bet: 0" after someone takes over a CD.
(eta: I also encountered this in a game and reported it a while back)
Re: Joined as a replacement, but info shows non-zero bet?
Hmm.. I'll have a look into why that might have changed, but in the meantime don't worry when you take over a CD no points are deducted
-
- Posts: 4890
- Joined: Wed Jan 04, 2023 8:21 pm
- Contact:
Re: Joined as a replacement, but info shows non-zero bet?
Oh did you change it? Just last week I contacted support to get my points back because the game took them when I took over an open position.
Re: Joined as a replacement, but info shows non-zero bet?
Yep it didn't deduct any points, that ticket is resolved. I even checked the points transaction logs to double check and no points were taken when you joined
-
- Posts: 4890
- Joined: Wed Jan 04, 2023 8:21 pm
- Contact:
Re: Joined as a replacement, but info shows non-zero bet?
Interesting. It still displays that I bet 5, so I guess it's just a display bug.
Who is online
Users browsing this forum: No registered users