zaphod Posted January 20, 2018 Share Posted January 20, 2018 I am working on a driver and I can't get the correct icons to show up in Composer. I have no issue getting my custom icons to show up in Navigator but they are not showing up at all in Composer. I have created a 16x16 file and a 32x32 file they are in the www/icons folder and they are referred to in the xml as can be seen below. But no matter what I do Composer displays the default media player icon which is three DVDs with a rainbow effect. <small image_source="c4z">icons/device_sm.png</small> <large image_source="c4z">icons/device_lg.png</large> <control>lua_gen</control> <composer_categories> <category>Audio/Video</category> </composer_categories> <proxies> <proxy proxybindingid="5001" name="SageTV" image_source="c4z" small_image="icons/device_sm.png" large_image="icons/device_lg.png">media_player</proxy> </proxies> And here is the www/icons folder: Directory of C:\Users\xxxxx\Documents\Control4\DriverDevelopement\SageExtender\www\icons 12/31/2017 04:54 PM <DIR> . 12/31/2017 04:54 PM <DIR> .. 12/31/2017 07:23 PM 2,039 device_lg.png 12/31/2017 07:22 PM 943 device_sm.png 12/31/2017 04:53 PM 12,249 experience100.png 12/31/2017 04:52 PM 13,564 experience110.png 12/31/2017 04:52 PM 14,618 experience120.png 12/31/2017 04:51 PM 15,474 experience130.png 12/29/2017 03:58 PM 17,898 experience140.png 12/29/2017 04:00 PM 1,197 experience20.png 12/31/2017 04:54 PM 2,359 experience30.png 12/31/2017 04:54 PM 3,505 experience40.png 12/29/2017 03:56 PM 103,775 experience400.png 12/31/2017 04:54 PM 4,713 experience50.png 12/31/2017 04:53 PM 5,890 experience60.png 12/29/2017 03:59 PM 5,892 experience70.png 12/31/2017 04:53 PM 8,903 experience80.png 12/29/2017 05:38 PM 7,958 experience90.png 16 File(s) 220,977 bytes 2 Dir(s) 41,820,078,080 bytes free Any suggestions? Quote Link to comment Share on other sites More sharing options...
Rexabyte Posted January 20, 2018 Share Posted January 20, 2018 Everything looks correct in terms of file locations and names. I wonder if it's the lack of the "qty" attribute in the <proxies> element, see below from the Getting Started Guide: <proxies qty="1"> <proxy proxybindingid="5003" name="KEYPAD" small_image="devices_sm/keypad_16.gif" large_image="devices_lg/keypad_32.gif">light_v2</proxy> </proxies> Maybe try adding the "qty" attribute and seeing if that works? Quote Link to comment Share on other sites More sharing options...
msgreenf Posted January 20, 2018 Share Posted January 20, 2018 Why so you have them 2x? They should only be once Sent from my Pixel XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
Rexabyte Posted January 20, 2018 Share Posted January 20, 2018 3 minutes ago, msgreenf said: Why so you have them 2x? They should only be once Sent from my Pixel XL using Tapatalk What should only be once? I'm not sure what you're referring to. Quote Link to comment Share on other sites More sharing options...
msgreenf Posted January 20, 2018 Share Posted January 20, 2018 What should only be once? I'm not sure what you're referring to.The xml for device image url Sent from my Pixel XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
annex⁴ Posted January 20, 2018 Share Posted January 20, 2018 8 hours ago, zaphod said: I have created a 16x16 file and a 32x32 file they are in the www/icons folder and they are referred to in the xml as can be seen below. But no matter what I do Composer displays the default media player icon which is three DVDs with a rainbow effect. Try using a gif Quote Link to comment Share on other sites More sharing options...
msgreenf Posted January 20, 2018 Share Posted January 20, 2018 nevermind Quote Link to comment Share on other sites More sharing options...
zaphod Posted January 20, 2018 Author Share Posted January 20, 2018 8 hours ago, annex⁴ said: Try using a gif I was originally using a gif and switched to a png - I will try gif again in case I didn't have something else correct before. But I am pretty sure that I have seen other drivers using png. Quote Link to comment Share on other sites More sharing options...
zaphod Posted January 20, 2018 Author Share Posted January 20, 2018 14 hours ago, msgreenf said: Why so you have them 2x? They should only be once Sent from my Pixel XL using Tapatalk I am guessing you mean the small_image definitions that are on their own and then within the <proxy> statement. I added the one within the proxy statement when I couldn't get it working at first. Quote Link to comment Share on other sites More sharing options...
zaphod Posted January 20, 2018 Author Share Posted January 20, 2018 I tried gifs and that didn't work. I also but in the qty field and that didn't work either. Very strange! Quote Link to comment Share on other sites More sharing options...
Rexabyte Posted January 21, 2018 Share Posted January 21, 2018 If you want to send me the .zip without the script portion I can take a further look. Quote Link to comment Share on other sites More sharing options...
ChicagoGuy Posted June 11, 2020 Share Posted June 11, 2020 Any update on this? I'm having the same problem. The icons are always of the Proxy... nothing custom seems to work. I've tried GIF & PNG. I've tried in the Composer & in the Driver. Quote Link to comment Share on other sites More sharing options...
msgreenf Posted June 11, 2020 Share Posted June 11, 2020 19 minutes ago, ChicagoGuy said: Any update on this? I'm having the same problem. The icons are always of the Proxy... nothing custom seems to work. I've tried GIF & PNG. I've tried in the Composer & in the Driver. share your XML Quote Link to comment Share on other sites More sharing options...
ChicagoGuy Posted June 11, 2020 Share Posted June 11, 2020 I've dumbed it down quite a bit. I have a full driver somewhere else, but I figure if I can't get a basic one to change, why keep working on the complex one. I'm also trying this out on the Virtual Controller right now... In this example, it continues to show the cable icon, not my modified icon (aptly named Android). <devicedata> <version>5</version> <manufacturer>XXXXXXX</manufacturer> <model>Default Model</model> <search_type>c4:av_gen</search_type> <creator>Control4 (support@control4.com)</creator> <name>Default Driver Name</name> <small image_source="c4z">icons/Android_sm.gif</small> <large image_source="c4z">icons/Android_lg.gif</large> <control>lua_gen</control> <controlmethod>ir</controlmethod> <driver>DriverWorks</driver> <copyright>Copyright 2004-2014 Control4 Corporation. All rights reserved.</copyright> <created>06/11/2020 3:16 PM</created> <modified>06/11/2020 3:16 PM</modified> <proxies qty="1"> <proxy proxybindingid="5000" smimagepath="icons/Android_sm.gif" lgimagepath="icons/Android_lg.gif">cable</proxy> </proxies> <config> <script></script> </config> <connections> <connection> <id>5001</id> <connectionname>None</connectionname> <facing>6</facing> <type>2</type> <consumer>false</consumer> <audiosource>false</audiosource> <videosource>false</videosource> <linelevel>false</linelevel> <classes> <class> <classname></classname> </class> </classes> </connection> <connection> <id>5000</id> <connectionname>cable</connectionname> <facing>6</facing> <type>2</type> <consumer>false</consumer> <audiosource>false</audiosource> <videosource>false</videosource> <linelevel>false</linelevel> <classes> <class> <classname>SATELLITE</classname> </class> </classes> </connection> </connections> <capabilities></capabilities> </devicedata> Directory Structure: Quote Link to comment Share on other sites More sharing options...
msgreenf Posted June 11, 2020 Share Posted June 11, 2020 Well i can't tell if your directory structure is correct, but that is the www/icons folder? I also think they need to be PNG not gif Quote Link to comment Share on other sites More sharing options...
ChicagoGuy Posted June 12, 2020 Share Posted June 12, 2020 So, that is the www/icons folder. I also tried PNGs. I tried both forward & backward slashes. I noticed that the DriverWorks app doesn't update the XML appropriately, so I only use it to build & publish, not update the code. I'm wonder if the Composer is caching it badly, so I'm not seeing any changes. I'd love to see a basic example that someone else has working to see if it works in my environment. Quote Link to comment Share on other sites More sharing options...
ChicagoGuy Posted June 12, 2020 Share Posted June 12, 2020 Well, I got it to some degree. The SMALL & LARGE tags seem to have no effect, but I can overwrite the image at the proxy level. However, only the small one. The large one stays as the DVD powered on logo. I also took them out of my project and started to use the ones in the composer directories. I also found the cache: C:\Users\XXXXX\AppData\Roaming\Control4\3.1.3\etc\c4z The driver gets saved here after adding it to the project and then unpackaged. If not enough of the driver has changed, Composer uses the old driver. I noticed it wasn't being updated after loading updated versions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.