Moussekateer/TF2Idle — Issue #11: Idling unsandboxed problem
Author: ric20007
Created: 2011-12-30 20:56:24+00:00
State: open

hi and first of all thanks for this, it really helps me :)
(warning: i'm new to this site, and I can't code :( , yet )

I don't know if you already updated this, but at the moment it's not working for me.

I was using the previous version and there was an error when I tried idling unsandboxed, so I tried the current version and the same error ocurred.
Something about a: "type error: list indices must be intefers, not str" line 287 (with the previous version)

Well I looked at the line and saw that the "kind" of coding was not the same as the others, so I edit to "look" like the others and it worked.

Lines 284-288
Previous :

# Start idling these TF2 instances unsandboxed
if choice == '2':
account = chooseAccounts()
print '\nStarting %s for idling...' % account[0]['username']
idleTF2(account[0]['username'], account[0]['password'], account['steaminstall'])

After:

# Start idling these TF2 instances unsandboxed
if choice == '2':
accounts = chooseAccounts()
for account in accounts:
print '\nStarting %s for idling...' % account['username']
idleTF2(account['username'], account['password'], account['steaminstall'])
time.sleep(3)

Again I really don't know how to code I just took the example and "edited" it
Sorry if this is old to you.

Happy New Year :)