I'm using an old xbox 1 ir receiver with a Philips universal remote. Everything works great except I have way more buttons on my remote than the xbcdrc plugin recognizes. I've searched the forums and found out how to add more remote codes to the __init__.py for xbcdrc and have done so successfully in the past. (meaning more then a year ago)
The problem I am having now is no matter what I change in the __init__ file EG always seems to use the original __init__ file. I know these remote codes work EG see's them and I've done this in the past. What am I missing?
Thank you.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Adding remote codes to the xbcdrc plugin.
Re: Adding remote codes to the xbcdrc plugin.
So, let me just make sure.. with the universal remote you are getting lots of "Unknown code received"... lines in the log view, right? It should work if you add entries for those in the self.xbcdrc_mapping array around line 410 in the __init__.py file. The file you should be modifying is EventGhost\plugins\XBCDRC\__init__.py. After modifications save the file and restart EG.
Have you checked the changes you made were actually saved in the file? (just to make sure things like missing write permission to the file are not the issue)
What OS and version of EG are you using?
Have you checked the changes you made were actually saved in the file? (just to make sure things like missing write permission to the file are not the issue)
What OS and version of EG are you using?
Re: Adding remote codes to the xbcdrc plugin.
I'm using windows 7 and eg 0.3.7.r1462. I've done everything just like you said. Added the unknown codes to the __init__.py file and restarted EG. I've tried with several different versions of EG even some of the experemintal releases. I've gone so far as to delete all the remote codes that were already in the __init__.py and restarted EG only to have all the codes still work. It seems to me that EG has cached a copy of the original __init__.py file somewhere and is using that one. Only if I delete the xbcdrc plugin completely it of course won't load.... Sorry if I'm slightly incoherent and thanks for the help.jinxdone wrote:So, let me just make sure.. with the universal remote you are getting lots of "Unknown code received"... lines in the log view, right? It should work if you add entries for those in the self.xbcdrc_mapping array around line 410 in the __init__.py file. The file you should be modifying is EventGhost\plugins\XBCDRC\__init__.py. After modifications save the file and restart EG.
Have you checked the changes you made were actually saved in the file? (just to make sure things like missing write permission to the file are not the issue)
What OS and version of EG are you using?
Re: Adding remote codes to the xbcdrc plugin.
You can try starting EG with elevated priviledges (right click -> run as administrator), since otherwise it might not have permission to write in the plugins dir if you run it as a normal user.
If that does not help you could also try deleting the __init__.pyc file in the plugin same directory. The .pyc is a byte-compiled version of the __init__.py file which EG will re-create on the next startup if it does not exist.
If that does not help you could also try deleting the __init__.pyc file in the plugin same directory. The .pyc is a byte-compiled version of the __init__.py file which EG will re-create on the next startup if it does not exist.
Re: Adding remote codes to the xbcdrc plugin.
Already tried both suggestions multiple times...jinxdone wrote:You can try starting EG with elevated priviledges (right click -> run as administrator), since otherwise it might not have permission to write in the plugins dir if you run it as a normal user.
If that does not help you could also try deleting the __init__.pyc file in the plugin same directory. The .pyc is a byte-compiled version of the __init__.py file which EG will re-create on the next startup if it does not exist.
Re: Adding remote codes to the xbcdrc plugin.
Okay just got a chance to try all of your suggestions again and still nothing... I'm really going bonkers on this I can't see any reason for the xbcdrc plugin to not recognize these new codes. I think I'll try uninstalling EG and reinstalling to a different location.
Re: Adding remote codes to the xbcdrc plugin.
I've got it. It had to have been some conflict with the file permissions. Even tho I both edited the __init__.py file and ran Eg with elevated permissions non of the changes I had been making would take. I reinstalled EG outside of the Program Files directory and everthing worked the first try. Thank you to those who took interest.