Hi, I'm running fpdb on Windows XP and am having trouble with the HUD. It worked for me once this morning while I was trying to add some debug code to Tables.py so I thought I'd (accidentally) made it work ... but I was wrong, despite multiple attempts it's not working tonight. (I'm new to python so still learning but like the look of it ...)
I get the "HUD Main Window" appearing, and usually a second one appears in task manager after a while (after a hand has been read?) and the two then go to "Not Responding" in task manager (an infinite loop?).
Any ideas on how I can get it to work?
- sqlcoder
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
seems to be a problem with the mysql connection in process_new_hand
I've reinstated the connection creation
db_connection = Database.Database(config, 'fpdb', 'holdem')
in the __main__ part of HUD_main.py
and stopped it connecting to the db in process_new_hand and it appears to be working now :-)
(I don't think there's any need to keep opening new db connections each time??)
what colour is the background to the HUD stats supposed to be?
I have a light grey colour but I wondered if it was supposed to be transparent?
- sqlcoder
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't looked at any of the actual code that hits the database yet, but someone did say that they had problems when attempting to use a persistent connection to the database.
A8 had no support for anything but simple black on light grey default colors. Color specification in the .XML config, and transparency are supported in the current development trees we are working with (could use some more test work on them - since i seem to be the only person that is setup properly for transparency, and i'm having problems with it, i can't tell if it's a problem in the program, in the GTK libraries, or just on my computer, or what).
I hear on the dev list that Monday or thereabouts should be the release of A9, but can't say it'll happen for sure.
-Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There should not be a reason to open/close a db connection for every new hand. There is a bug somewhere that is causing us to lose the db connection between hands. This is happening in both fpdb(that is, the import part) and the HUD. I played with this a bit and could not find the problem, so just left it the way it is, with the intention of returning to that problem after my slate is wiped clean.
--Ray = Eratosthenes
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>> There should not be a reason to open/close a db connection for every new hand. There is a bug somewhere that is causing us to lose the db connection between hands.
Yeah, agreed on both. After posting my earlier comment I realised that although I had the HUD displayed, it wasn't updating :-(
Seems the TableViewer isn't obselete quite yet! (I quite like having that as an option anyway - but can we have all the abbreviations it uses in abbreviations.txt please?
- sqlcoder
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should have a log file named something like: HUD-error* in the same folder where fpdb lives. That should contain some (possibly helpful) error messages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm running fpdb on Windows XP and am having trouble with the HUD. It worked for me once this morning while I was trying to add some debug code to Tables.py so I thought I'd (accidentally) made it work ... but I was wrong, despite multiple attempts it's not working tonight. (I'm new to python so still learning but like the look of it ...)
I get the "HUD Main Window" appearing, and usually a second one appears in task manager after a while (after a hand has been read?) and the two then go to "Not Responding" in task manager (an infinite loop?).
Any ideas on how I can get it to work?
- sqlcoder
Are you using the last release, or a current dev tree?
the last release
Are you sure hand histories are being imported? The console window that fpdb is running in should look like this:
GuiAutoImport.import_dir done
GuiAutoImport.import_dir done
Total stored: 1 duplicates: 0 partial: 0 errors: 0 time: 0.156414985657
GuiAutoImport.import_dir done
or open a mysql console and check that the number of records in the Hands table is increasing.
seems to be a problem with the mysql connection in process_new_hand
I've reinstated the connection creation
db_connection = Database.Database(config, 'fpdb', 'holdem')
in the __main__ part of HUD_main.py
and stopped it connecting to the db in process_new_hand and it appears to be working now :-)
(I don't think there's any need to keep opening new db connections each time??)
what colour is the background to the HUD stats supposed to be?
I have a light grey colour but I wondered if it was supposed to be transparent?
- sqlcoder
I haven't looked at any of the actual code that hits the database yet, but someone did say that they had problems when attempting to use a persistent connection to the database.
A8 had no support for anything but simple black on light grey default colors. Color specification in the .XML config, and transparency are supported in the current development trees we are working with (could use some more test work on them - since i seem to be the only person that is setup properly for transparency, and i'm having problems with it, i can't tell if it's a problem in the program, in the GTK libraries, or just on my computer, or what).
I hear on the dev list that Monday or thereabouts should be the release of A9, but can't say it'll happen for sure.
-Eric
There should not be a reason to open/close a db connection for every new hand. There is a bug somewhere that is causing us to lose the db connection between hands. This is happening in both fpdb(that is, the import part) and the HUD. I played with this a bit and could not find the problem, so just left it the way it is, with the intention of returning to that problem after my slate is wiped clean.
--Ray = Eratosthenes
>> There should not be a reason to open/close a db connection for every new hand. There is a bug somewhere that is causing us to lose the db connection between hands.
Yeah, agreed on both. After posting my earlier comment I realised that although I had the HUD displayed, it wasn't updating :-(
Seems the TableViewer isn't obselete quite yet! (I quite like having that as an option anyway - but can we have all the abbreviations it uses in abbreviations.txt please?
- sqlcoder
You should have a log file named something like: HUD-error* in the same folder where fpdb lives. That should contain some (possibly helpful) error messages.