Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Class Mechanics » Rogues

Reply
 
LinkBack Thread Tools
Old 10/31/12, 8:40 PM   #91
Furtim
Piston Honda
 
Troll Rogue
 
Kargath
I've actually had no problems using IDLE to run the engine.

Make sure your char_info.py is set up correctly. After that, the script you'll want to run is called mop_combat_import.py.

It'll then pull your data from the armory and do it's thing.

United States Offline
Reply With Quote
Old 10/31/12, 10:21 PM   #92
Pathal
Don Flamenco
 
Pathal's Avatar
 
Worgen Rogue
 
Doomhammer
It's commented out on the import script. You could probably comment it out on the normal script without any significant collateral, but the underlying issue still exists. IDLE doesn't function the same as the normal interpreter, and fails to instantiate the __file__ variable among a few other minor changes.

To Test Customized Gearsets: An abbreviated guide on setting up a script for Shadowcraft
Helping You Get Things Set Up: Installing Python, Shadowcraft, and Prerequisites
Grabs data from the Armory: Running an Importer Script

Offline
Reply With Quote
Old 11/01/12, 1:38 AM   #93
ManthonyChopkins
Glass Joe
 
Night Elf Rogue
 
Doomhammer
Yes I was running it with IDLE, frankly I'm not familiar with running things any other way. I'll look into figuring that out though, thanks.

United States Offline
Reply With Quote
Old 11/01/12, 8:22 PM   #94
timwoj
Glass Joe
 
Pandaren Rogue
 
<CTR>
Aerie Peak
Is there documentation somewhere that describes what wowapi returns when you call get_character() in import_character.py? Would it be easier for me to just print it out and look at it?

Offline
Reply With Quote
Old 11/01/12, 8:49 PM   #95
Pathal
Don Flamenco
 
Pathal's Avatar
 
Worgen Rogue
 
Doomhammer
For the most part, it's just this: http://blizzard.github.com/api-wow-d...file-api/items

Except everything is placed inside nested dicts.

To Test Customized Gearsets: An abbreviated guide on setting up a script for Shadowcraft
Helping You Get Things Set Up: Installing Python, Shadowcraft, and Prerequisites
Grabs data from the Armory: Running an Importer Script

Offline
Reply With Quote
Old 11/02/12, 8:27 PM   #96
• Aldriana
Mike Tyson
 
Night Elf Rogue
 
Doomhammer
Looks to me like the importer scripts (or at least, the assassination one) isn't properly detecting metagems (or at least, its not detecting mine).

Offline
Reply With Quote
Old 11/02/12, 9:59 PM   #97
Pathal
Don Flamenco
 
Pathal's Avatar
 
Worgen Rogue
 
Doomhammer
Fixed it (determining if we have a gem before we look for the gem is bad).

I've got some combat tweaks accompanying it. None of them have any significant impact on EP values.

EDIT: I'll push later tonight in one batch.

Last edited by Pathal : 11/02/12 at 10:18 PM.

To Test Customized Gearsets: An abbreviated guide on setting up a script for Shadowcraft
Helping You Get Things Set Up: Installing Python, Shadowcraft, and Prerequisites
Grabs data from the Armory: Running an Importer Script

Offline
Reply With Quote
Old 11/04/12, 7:12 PM   #98
koaschten
In the rear with the gear!
 
koaschten's Avatar
 
Troll Rogue
 
Khaz'goroth (EU)
I tried to set up a current version of the shadow craft engine. Following your guides, pathal, worked pretty well, it just seems that I am pretty unlucky with my server and charname selection. any tips on escaping / encoding this properly?
Server: EU Khaz'goroth
Name: Daemòná

C:\stuff\Python26\shadowcraft\scripts>mop_combat_import.py region:"eu" realm:"Khaz'Goroth" name:"Daemòná
Loading Daem‗nß of eu-Khaz'Goroth
edit
The Api Call seems to be formated correctly but still fail.
wowapi.exceptions.NotFound: http://eu.battle.net/api/wow/character/Khaz%27Goroth/Daem%F2n%E1?fields=
talents,items,stats

%27  = '
%F2 = ò
%E1 = á
edit2
or rather not...
http://eu.battle.net/api/wow/character/Khaz'Goroth/Daemòná
{"lastModified":1352073086000,"name":"Daemòná","realm":"Khaz'goroth","battlegroup":"Reckoning / Abrechnung","class":4,"race":8,"gender":1,"level":90,"achievementPoints":13705,"thumbnail":"khazgoroth/254/70811902-avatar.jpg","calcClass":"c"}

Last edited by koaschten : 11/04/12 at 7:38 PM.

How to get an Android Authenticator on your PC. (updated feb'11)

Germany Offline
Reply With Quote
Old 11/05/12, 1:57 PM   #99
 Thellas
Von Kaiser
 
Gnome Rogue
 
Moonrunner
This seemed to get the encoding right:
# -*- coding: utf-8 -*-
name = u'Daemòná'
charInfo = {'region':'eu', 'realm':"Khaz'goroth", 'name':name.encode("utf-8"), 'talents':None, 'stormlash':False, 'pvp':False, 'shiv':0}
However, I got an error when I ran it. The main hand axe was return a 0 instead of the 1 expected as the subclass, so I had to change line 280 to the following in import_character.py:

weaponMap = {0:'axe', 2:'2h_axe', 3:'bow', 4:'rifle',5:'mace', 6:'2h_mace', 7:'polearm', 8:'sword', 9:'2H_sword', 10:'staff',
             11:'exotic', 12:'2h_exotic', 13:'fist', 14:'misc', 15:'dagger', 16:'thrown', 17:'spear', 18:'xbow', 19:'wand',
             20:'fishing_pole'}

Last edited by Thellas : 11/05/12 at 2:12 PM.

United States Offline
Reply With Quote
Old 11/05/12, 3:36 PM   #100
Enzo90910
Von Kaiser
 
Blood Elf Rogue
 
Temple Noir (EU)
I also ran into encoding issues when I tried to set Shadowcraft up. I will probably try again once in a while though :-)
I am not sure I understand the basic Installation thing. It seems the install script installs a module/package with my python system modules. I just fail to understand which files exactly "use" this module as opposed to "are a part of it".

France Offline
Reply With Quote
Old 11/09/12, 1:13 PM   #101
timwoj
Glass Joe
 
Pandaren Rogue
 
<CTR>
Aerie Peak
I think the last merge from Aldriana might have broken dazer's master. I'm getting this when trying to run:

python mop_assassination_import.py  realm:'Area 52' name:'Gizek'
Loading Gizek of us-Area 52

Traceback (most recent call last):
  File "mop_assassination_import.py", line 81, in <module>
    test_stats = stats.Stats(test_mh, test_oh, test_procs, test_gear_buffs, **lst)
TypeError: __init__() got multiple values for keyword argument 'int'
I tried looking at it, but I'm still a python noob.

Offline
Reply With Quote
Old 11/09/12, 1:22 PM   #102
Pathal
Don Flamenco
 
Pathal's Avatar
 
Worgen Rogue
 
Doomhammer
Did you run the appropriate installer again before running (reinstall.bat or reinstall.sh, whichever you ran the first time)? Ald made a quick change to how stats are added that cleaned up the scripts a little.

Click Here ← Click Here
$ python mop_assassination_import.py name:Gizek realm:"Area 52"
Loading Gizek of us-Area 52

agi: 2.57191623262
yellow_hit: 1.12927099237
str: 1.04999999999
mastery: 0.81849474051
dodge_exp: 0.702814975176
crit: 0.699532944427
haste: 0.676350733099
spell_hit: 0.45483988503
white_hit: 0.453098178488
spell_exp: 0.00174170654695
pvp_power: 0.0
------------------------------------
anticipation: 3330.47019917 (5.36%)
shadow_focus: 601.318659058 (0.97%)
shuriken_toss: 124.026848633 (0.20%)
nightstalker: 72.8907416772 (0.12%)
------------------------------------
leeching: 3328.02043786 (5.35%)
recuperate: 0
------------------------------------
deadly_instant_poison: 15129.8122441 (24.34%)
autoattack: 10382.9379977 (16.70%)
dispatch: 7922.02628615 (12.74%)
deadly_poison: 7337.24911793 (11.80%)
envenom: 6622.84703672 (10.65%)
venomous_wounds: 6325.93376445 (10.18%)
mutilate: 4587.7247173 (7.38%)
rupture: 1959.76556371 (3.15%)
shadow_blades: 1513.33981029 (2.43%)
ambush: 291.562966709 (0.47%)
Rocket Barrage: 87.6928858217 (0.14%)
------------------------------------
62160.8923909 total damage per second.

non-execute breakdown:
deadly_instant_poison: 14869.6204852 (25.53%)
autoattack: 10383.0573559 (17.83%)
deadly_poison: 7336.72410513 (12.60%)
mutilate: 7058.03802662 (12.12%)
venomous_wounds: 6325.93376445 (10.86%)
envenom: 5491.15949309 (9.43%)
dispatch: 2925.72099627 (5.02%)
rupture: 1959.76556371 (3.36%)
shadow_blades: 1513.35720705 (2.60%)
ambush: 291.562966709 (0.50%)
Rocket Barrage: 87.6928858217 (0.15%)
------------------------------------
58242.6328499 total damage per second.

To Test Customized Gearsets: An abbreviated guide on setting up a script for Shadowcraft
Helping You Get Things Set Up: Installing Python, Shadowcraft, and Prerequisites
Grabs data from the Armory: Running an Importer Script

Offline
Reply With Quote
Old 12/11/12, 4:26 AM   #103
Furtim
Piston Honda
 
Troll Rogue
 
Kargath
Similar to the Cogwheel problem I posted about here, it seems to be erroring out on Hydraulic Gems for Sha-Touched weapons.

If you add the correct Hydraulic code, it then errors out on the fact that these sockets do not have a socket bonus.

Traceback (most recent call last):
File "mop_combat_import.py", line 74, in <module>
lst = character_data.get_gear_stats()
File "X:\ShadowCraft\scripts\import_character.py", line 398, in get_gear_stats
for entry in socketInfo[u'socketBonus'].split(' and '): #similar to gem treatment... is there ev
er a socket bonus that gives multiple stats?
KeyError: u'socketBonus'

United States Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Class Mechanics » Rogues

Thread Tools