hanyuone / Ways-to-NOT-make-money

A basic Python (2.x/3.x) incremental game.
8 stars 3 forks source link

Dev: attribute error #117

Closed bortkiewicz closed 8 years ago

bortkiewicz commented 8 years ago

The output when I bought Auto Clicker was:

('GameState got data:', ['auto', 0, 'print', 0, 'counter', 0, 'shares', 0, 'bank', 0, 'upg1h1', 0, 'upg1h2', 0, 'upg2h1', 0, 'upg2h2', 0, 'upg3', 0, 'upg4', 0, 'upg5', 0, 'cupg1', 0, 'cupg2', 0, 'money', 0.0, 'time', 0, 'clicks', 0, 'lotto', 100])
('saving data:', ['auto', 0, 'print', 0, 'counter', 0, 'shares', 0, 'bank', 0, 'upg1h1', 0, 'upg1h2', 0, 'upg2h1', 0, 'upg2h2', 0, 'upg3', 0, 'upg4', 0, 'upg5', 0, 'cupg1', 0, 'cupg2', 0, 'money', 0.0, 'time', 0, 'clicks', 0, 'lotto', 100])
('utf8_encoded_data:', 'auto_0_print_0_counter_0_shares_0_bank_0_upg1h1_0_upg1h2_0_upg2h1_0_upg2h2_0_upg3_0_upg4_0_upg5_0_cupg1_0_cupg2_0_money_0.0_time_0_clicks_0_lotto_100')
('a85_encoded_data:', 'YXV0b18wX3ByaW50XzBfY291bnRlcl8wX3NoYXJlc18wX2JhbmtfMF91cGcxaDFfMF91cGcxaDJfMF91cGcyaDFfMF91cGcyaDJfMF91cGczXzBfdXBnNF8wX3VwZzVfMF9jdXBnMV8wX2N1cGcyXzBfbW9uZXlfMC4wX3RpbWVfMF9jbGlja3NfMF9sb3R0b18xMDA=;')
('data saved:', ['auto', 0, 'print', 0, 'counter', 0, 'shares', 0, 'bank', 0, 'upg1h1', 0, 'upg1h2', 0, 'upg2h1', 0, 'upg2h2', 0, 'upg3', 0, 'upg4', 0, 'upg5', 0, 'cupg1', 0, 'cupg2', 0, 'money', 0.0, 'time', 0, 'clicks', 0, 'lotto', 100])
buying auto
('price:', 20.0)
('self.autoclick2', 1)
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1536, in __call__
    return self.func(*args)
  File "C:\Python27\Ways-to-NOT-make-money\game.py", line 147, in deduction1
    deductionx('autoprice', 'Auto-Clicker purchased', autopricechoice)
  File "C:\Python27\Ways-to-NOT-make-money\game.py", line 143, in deductionx
    choice_fn()
  File "C:\Python27\Ways-to-NOT-make-money\game.py", line 263, in autopricechoice
    incbutton1.update_vars('Auto-Clicker ($%s)' % format_price(game_state.autoprice),
AttributeError: ItemFrame instance has no attribute 'update_vars'