SimCMinMax / AutoSimC

Python script to create multiple profiles for Simcraft to find Best-in-Slot and best enchants/gems/talents combination.
GNU General Public License v3.0
54 stars 17 forks source link

Error: local variable 'class_spec' referenced before assignment #28

Closed D-Kay closed 6 years ago

D-Kay commented 6 years ago

I was getting the following error after setting up the latest version AutoSimC and launching it (through launch.bat)

Error: local variable 'class_spec' referenced before assignment Traceback (most recent call last): File "main.py", line 1633, in main() File "main.py", line 1589, in main player_profile = build_profile(args) File "main.py", line 864, in build_profile player_profile.class_spec = specdata.getClassSpec(c_class, player_profile.simc_options["spec"]) File "C:\AutoSimC-master\specdata.py", line 594, in getClassSpec return class_spec UnboundLocalError: local variable 'class_spec' referenced before assignment Press any key to continue . . .

I went to line 594 in specdata.py and it looked like return class_spec was missing 4 spaces. Adding them made the program work correctly

I'm using Windows 10, the latest version of SimC and Python (3.6.5)

scamille commented 6 years ago

The problem is more that we probably don't have all class/spec combinations covered.

Can you try again with my changes? And if you get an error message about unsupported class/spec, post it here please.