dump_sections.py doesn't calculate last_bank #23

Open
opened 2013-09-09 22:39:04 +00:00 by kanzure · 0 comments
kanzure commented 2013-09-09 22:39:04 +00:00 (Migrated from github.com)
$ python dump_sections.py
Traceback (most recent call last):
  File "dump_sections.py", line 126, in <module>
    output = dump_sections(baserom)
  File "dump_sections.py", line 83, in dump_sections
    last_bank = calculate_bank_quantity(path, bank_size=bank_size)
  File "dump_sections.py", line 46, in calculate_bank_quantity
    return float(os.lstat(path).st_size) / bank_size
OSError: [Errno 2] No such file or directory: 'baserom.gbc'

and then:

$ python dump_sections.py
Traceback (most recent call last):
  File "dump_sections.py", line 126, in <module>
    output = dump_sections(baserom)
  File "dump_sections.py", line 92, in dump_sections
    banks = range(initial_bank, last_bank)
TypeError: range() integer end argument expected, got float.

wtf?


Above report is from pokecrystal issue 141.

``` $ python dump_sections.py Traceback (most recent call last): File "dump_sections.py", line 126, in <module> output = dump_sections(baserom) File "dump_sections.py", line 83, in dump_sections last_bank = calculate_bank_quantity(path, bank_size=bank_size) File "dump_sections.py", line 46, in calculate_bank_quantity return float(os.lstat(path).st_size) / bank_size OSError: [Errno 2] No such file or directory: 'baserom.gbc' ``` and then: ``` $ python dump_sections.py Traceback (most recent call last): File "dump_sections.py", line 126, in <module> output = dump_sections(baserom) File "dump_sections.py", line 92, in dump_sections banks = range(initial_bank, last_bank) TypeError: range() integer end argument expected, got float. ``` wtf? --- Above report is from [pokecrystal issue 141](https://github.com/kanzure/pokecrystal/issues/141).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
decomp/pokemon-reverse-engineering-tools#23
No description provided.