Group chat from anywhere using the web, IM, email or your phone.
Discuss the EventScripts plugin for Valve's Source games.
Exfridos posted from the web
I typed this in console:
Exfridos posted from the web

] add_extraprop 1 Exfridos STEAM_0:1:31752888
] show_extraprops
Exfridos posted from the web
I didn't get anything back from the show_extraprops
EvieBot sent an instant message
[GameSurge] GODJonez: but no errors either
EvieBot sent an instant message
[GameSurge] GODJonez: if args[3].startswith('STEAM_'):
EvieBot sent an instant message
[GameSurge] GODJonez: must not have returned True then
EvieBot sent an instant message
[GameSurge] GODJonez: it should but...
Exfridos posted from the web
else:
es.dbgmsg(0, 'Not True')
Exfridos posted from the web
I will try ^^
EvieBot sent an instant message
[GameSurge] GODJonez: try adding es.dbgmsg(0, args) to the beginning of addExtraprop
EvieBot sent an instant message
[GameSurge] GODJonez: to see what it exactly contains
Exfridos posted from the web
It wasne't true
EvieBot sent an instant message
[GameSurge] GODJonez: it's as if the wiki page for cmdlib is telling lies
Exfridos posted from the web

] add_extraprop 1 Exfridos STEAM_0:1:31752888
1 Exfridos STEAM_0:1:31752888
EvieBot sent an instant message
[GameSurge] GODJonez: ehh
EvieBot sent an instant message
[GameSurge] GODJonez: ah yeah, it is not a list but a magic object that has evil __str__ method
Exfridos posted from the web
I don't understand how I can fix that
EvieBot sent an instant message
[GameSurge] GODJonez: change that to es.dbgmsg(0, args[:])
EvieBot sent an instant message
[GameSurge] GODJonez: no argh, the wiki page is actually correct
Exfridos posted from the web

] add_extraprop 1 Exfridos STEAM_0:1:31752888
['1', 'Exfridos', 'STEAM_0', ':', '1', ':', '31752888']
EvieBot sent an instant message
[GameSurge] GODJonez: yep, the args list does not contain the command itself
EvieBot sent an instant message
[GameSurge] GODJonez: so all the indices are 1 smaller than with es.getargv
Exfridos posted from the web
def addExtraprop(args):
if args[2].startswith('STEAM_'):
respected_people[''.join(args[2:])] = args[0:2]
Exfridos posted from the web
That would work?
EvieBot sent an instant message
[GameSurge] GODJonez: yeah
EvieBot sent an instant message
[GameSurge] GODJonez: and the same with the other functions
Exfridos posted from the web
mmh ^^
EvieBot sent an instant message
[GameSurge] GODJonez: I need to virtualslap SuperDave for that
Exfridos posted from the web
Same error o:
Exfridos posted from the web
Ah, wait.. (I pasted it on here, and did only correct it here xD)
Exfridos posted from the web

] show_extraprops
STEAM_0:1:31752888, ['1', 'Exfridos']
Exfridos posted from the web
Awesome ^-^
Exfridos posted from the web
Can I get the value 1 back at anytime?
Exfridos posted from the web
Aww, wait. Is 6 lines too much to paste directly?
Exfridos posted from the web
Can I?
EvieBot sent an instant message
[GameSurge] GODJonez: yes
Exfridos posted from the web

] add_extraprop 1 Exfridos STEAM_0:1:31752888
] show_extraprops
STEAM_0:1:31752888, ['1', 'Exfridos']
] add_extraprop 2 Exfridos STEAM_0:1:31752888
] show_extraprops
STEAM_0:1:31752888, ['2', 'Exfridos']
Exfridos posted from the web
It must not change.. The number is the variable
Exfridos posted from the web
It should be like:
1, ['Name', 'Steam']
2, ['Name', 'Steam']
EvieBot sent an instant message
[GameSurge] GODJonez: ah, so put that as the key
EvieBot sent an instant message
[GameSurge] GODJonez: still wouldn't work
Exfridos posted from the web
Why?
Exfridos posted from the web
respected_people[''.join(args[0])] = (args[2]+args[3:])
EvieBot sent an instant message
[GameSurge] GODJonez: I don't have time right now to go through it but if you try around you will see why it won't work
Exfridos posted from the web
Naah, it didn't work
Exfridos posted from the web
Okay ^^
EvieBot sent an instant message
[GameSurge] GODJonez: btw, here's the code snippet I talked about http://codepad.info/view?id=492cc531391bf42cf6bb59735cfb151ed3426e86
Exfridos posted from the web
Thanks :)
Exfridos posted from the web
Yeah, well.. Isen't it possible at all? Cause I can't get it to work..
Exfridos posted from the web
respected_people[args[0]] = args[1]+''join(args[2:])
Don't miss the conversation - get group messages sent to your IM or Email!
 
 
Chatting as guest1142142. Change name
admins
members
Loading members...
guests
Loading guests...