Bug 35307 - cash cash per round
Summary: cash cash per round
Status: CLOSED FIXED
Alias: None
Product: kpoker
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 0.7
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Beckermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-24 14:48 UTC by sprd72
Modified: 2017-04-03 14:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sprd72 2001-11-24 14:47:54 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kpoker
Version:           0.7 (using KDE 2.2.0 -11)
Severity:          normal
Installed from:    Red Hat Linux 7.2
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
OS:                Linux (i686) release 2.4.9-13
OS/Compiler notes: 

Cash per round reports over 1 billion $ and cash reports as $100 upon starting a game. When a winning hand is dealt the You Won! starts flashing but anohter window pops up and reports You Lost! Then the game is over and the new game dialog box appears. The only thing I did before all of this is click on Settings--> Configure KPoker-->and then changed the number from 300 to 305. Then the problem started so I changed it back to 300 still having the problem.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Andreas Beckermann 2001-11-24 18:12:47 UTC
On Saturday 24 November 2001 15:47 SprD72@hotmail.com wrote:
> Package: kpoker
> Version: 0.7 (using KDE 2.2.0 -11)
> Severity: normal
> Installed from:    Red Hat Linux 7.2
> Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
> OS:                Linux (i686) release 2.4.9-13
> OS/Compiler notes:
>
> Cash per round reports over 1 billion $ and cash reports as $100 upon
> starting a game. When a winning hand is dealt the You Won! starts
> flashing but anohter window pops up and reports You Lost! Then the game is
> over and the new game dialog box appears. The only thing I did before all
> of this is click on Settings--> Configure KPoker-->and then changed the
> number from 300 to 305. Then the problem started so I changed it back to
> 300 still having the problem.
>
> (Submitted via bugs.kde.org)
> (Called from KBugReport dialog)

Hey you just found an evil big terrible bug!!
The number in the dialog is just the draw delay (i.e. the number of ms you 
wait until a card is drawn). But in multi player games it you can change the 
minimum bet there.
The bug is that kpoker also reads the minimum bet value in single player games 
and as it isn't there an undefined (and therefore over 1 billion) value is 
used.

I just fixed this in CVS. You can fix it on your local system by editing you 
config file:
open $HOME/.kde/share/config/kpokerrc in a text editor. 
Change the value of "CashPerRound" to 5. 
Now it should be working again.

Thanks for the report!

CU
Andi
Comment 2 Paul Michael Bateson 2002-11-25 02:51:34 UTC
Andy: I encountered this problem.

I played around with the delay time and when I was satisfied with the results, I wrote over the config file with a good copy.

Hey, it works!