Page 1 of 1

Ayuto - EventScripts-Emulator - RecursiveCopyKeyValues

Posted: Thu Mar 14, 2019 12:05 pm
by devilsnake88
Hello dear peoples :)

I have a question about EventScripts Emulator so I think I should ask to @Ayuto.
I have this issue:
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/es_emulator/", line 103, in __call__
File "../addons/source-python/plugins/es_emulator/eventscripts/", line 356, in callBlock
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 181, in callbackSay
cmd_manager.callback(cmd_manager.say_commands, es.getargv(0).lower())
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 111, in callback
cmdlist[name].execute(self.CMDArgs(es.getargv(x) for x in range(1, es.getargc())))
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 243, in execute
self.callback(userid, args)
File "../addons/source-python/plugins/es_emulator/eventscripts/test/", line 1266, in rulesCmd
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 256, in send
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 1419, in handleQueue
menudisplay = qpopup.checkCache(self.userid)
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 635, in checkCache
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 543, in recache
self.cache[userlang] = self.i_recache(userlang)
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 602, in i_recache
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 39, in addOption
self.kv[names] = keyvalues.KeyValues(name=names)
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/", line 147, in __setitem__
es.keyprecursivekeycopy(x, value._id_)
File "../addons/source-python/plugins/es_emulator/eventscripts/", line 2032, in keyprecursivekeycopy

AttributeError: 'KeyValues' object has no attribute 'recursive_copy'

@L'In20Cible helped me by sending me this link: ...

Thank you for your help and I wish you a great day!

Re: Ayuto - EventScripts-Emulator - RecursiveCopyKeyValues

Posted: Sat Mar 16, 2019 10:46 pm
by Ayuto
I actually planned to expose that function with SP to use it in the emulator. But IIRC it didn't exist on all games. Thus, it's still an open TODO. I will take a look at it again very soon.

Re: Ayuto - EventScripts-Emulator - RecursiveCopyKeyValues

Posted: Wed Apr 03, 2019 5:25 pm
by Ayuto
Version 685 of Source.Python now exposes recursive_copy, so that issue should be fixed.

Re: Ayuto - EventScripts-Emulator - RecursiveCopyKeyValues

Posted: Sun Apr 07, 2019 8:12 am
by devilsnake88
Thank you very much Ayuto :)