The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Legacy Corsair Software > CUE 1.x and 2.x RGB Profiles and Profile Discussions

 
 
Thread Tools Search this Thread Rating: Thread Rating: 67 votes, 5.00 average. Display Modes
  #1  
Old 11-10-2014, 11:53 AM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741036
Fuzznuts Reputation: 10
Default Profile and Mode Conversion Tool

Hi All,

I have knocked up a very simple profile and Mode conversion tool to swap convert profiles / Modes for the K65,K70 and K95

Simply run the app browse to the file you wish to convert and hit the convert button select as destination file name once done import the profile into CUE.

If you wish to convert a mode file change the file type selection from prf to mode.

You'll need .net framework 3.5 installed for it to work.

Added the source in case anyone wants to extend it I haven't looked at this for ages. The project is C# winforms project so you will need a copy of visual studio (the free version will be fine) to work with the src.

This is a tool I knocked up for my own use, so use it at your own risk!

Features
Converts profiles and modes from one keyboard type to another.
Removes actions that are not associated to a light profile (No more test (1) etc in the action list).
Removes lighting effects that are not associated with a profile.
Removes G and M keys when converting from a K95 to 70 or 65.


Todo
Rename Modes / Profiles prior to conversion

Fixed
Fixed crash when checking for non existent registry entries.
Fixed instances where some orphan lighting elements were being left behind (thanks zheren159)
Fixed bug where lighting would be removed even though it was assigned to a valid action. (thanks Reapexx)
Fixed bug where exporting the same profile to the output directory would get overwritten rather than create a new file.
Attached Files
File Type: zip ProfileConverterAndCleaner.zip (44.2 KB, 3335 views)
File Type: zip ProfileConverter_SRC.zip (197.3 KB, 978 views)

Last edited by Fuzznuts; 04-17-2015 at 08:16 AM. Reason: Typo


  #2  
Old 11-11-2014, 08:53 AM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741245
Fuzznuts Reputation: 10
Default

Updated the application to purge the profiles of unwanted actions and lighting effects if checked.

Any actions or lighting effects that are not assigned to anything are removed as part of the conversion process (if selected) This reduces profile bloat and the annoyance of having all those actions etc imported when you neither want or need them for the lights you wish to look at.

If you wish you can use this process to clean up your current profiles by importing them and exporting them again as the same type.

Again use at your own risk I have had no problems thus far but YMMV :)


  #3  
Old 11-11-2014, 06:01 PM
Inheritance's Avatar
Inheritance Inheritance is offline
CORSAIR Beta Team
 
Join Date: Jul 2013
Location: Somewhere in Texas
Posts: 5,305
POST ID # = 741329
Inheritance Reputation: 70
Default

what was this writen in
__________________
Colors of the RAINBOW shine so bright!
USER IS NOT A CORSAIR EMPLOYEE
Come Join My Discord =(^.^)= [iCUE Guide]
Corsair USER Forums is NOT Corsair Tech Support


  #4  
Old 11-11-2014, 07:26 PM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741340
Fuzznuts Reputation: 10
Default

It is a c# winforms app that i knocked up in visual studio.

Last edited by Fuzznuts; 11-11-2014 at 07:27 PM. Reason: typo


  #5  
Old 11-11-2014, 10:57 PM
Goat1 Goat1 is offline
Registered User
 
Join Date: Oct 2014
Posts: 289
POST ID # = 741380
Goat1 Reputation: 12
Default

Quote:
Originally Posted by Fuzznuts View Post
It is a c# winforms app that i knocked up in visual studio.
Just don't knock "her" up..


  #6  
Old 11-12-2014, 02:42 AM
Inheritance's Avatar
Inheritance Inheritance is offline
CORSAIR Beta Team
 
Join Date: Jul 2013
Location: Somewhere in Texas
Posts: 5,305
POST ID # = 741398
Inheritance Reputation: 70
Default

Ah that explain why it runs faster. I wrote pretty much the same program in java but it runs quite a bit slower.
__________________
Colors of the RAINBOW shine so bright!
USER IS NOT A CORSAIR EMPLOYEE
Come Join My Discord =(^.^)= [iCUE Guide]
Corsair USER Forums is NOT Corsair Tech Support


  #7  
Old 11-12-2014, 03:44 AM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741401
Fuzznuts Reputation: 10
Default

Quote:
Originally Posted by zheren159 View Post
Ah that explain why it runs faster. I wrote pretty much the same program in java but it runs quite a bit slower.
You should get it out there. Give a man a fish etc :)

Did you think the cue profile export was buggy too? A lot of dead and deleted keys seem to get left in the XML mode exports seem a lot neater but profiles yuck!


  #8  
Old 11-12-2014, 01:31 PM
Inheritance's Avatar
Inheritance Inheritance is offline
CORSAIR Beta Team
 
Join Date: Jul 2013
Location: Somewhere in Texas
Posts: 5,305
POST ID # = 741454
Inheritance Reputation: 70
Default

Quote:
Originally Posted by Fuzznuts View Post
You should get it out there. Give a man a fish etc :)

Did you think the cue profile export was buggy too? A lot of dead and deleted keys seem to get left in the XML mode exports seem a lot neater but profiles yuck!
Yea i already informed Corsair James of this issue. The extra lighting and actions bloat the files by so much
__________________
Colors of the RAINBOW shine so bright!
USER IS NOT A CORSAIR EMPLOYEE
Come Join My Discord =(^.^)= [iCUE Guide]
Corsair USER Forums is NOT Corsair Tech Support


  #9  
Old 11-12-2014, 01:38 PM
Inheritance's Avatar
Inheritance Inheritance is offline
CORSAIR Beta Team
 
Join Date: Jul 2013
Location: Somewhere in Texas
Posts: 5,305
POST ID # = 741455
Inheritance Reputation: 70
Default

I would get the program out there but i need a way to make it an exe and im going to clean it up a bit first. I just made the program like 3 days ago before i cleaned everything by hand which took about an hour each X.X lol. yay for automation !!!
__________________
Colors of the RAINBOW shine so bright!
USER IS NOT A CORSAIR EMPLOYEE
Come Join My Discord =(^.^)= [iCUE Guide]
Corsair USER Forums is NOT Corsair Tech Support


  #10  
Old 11-13-2014, 09:09 AM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741587
Fuzznuts Reputation: 10
Default

Updated App
Added Option to Auto Check Remove Orphans
Changed output to directory a default directory can be specified in the options if one is not set you are asked per file. If a default directory is set all files are output to that dir prefixed with CONV_
Added K65 volumeup and volumedown keys.


  #11  
Old 11-13-2014, 12:56 PM
Inheritance's Avatar
Inheritance Inheritance is offline
CORSAIR Beta Team
 
Join Date: Jul 2013
Location: Somewhere in Texas
Posts: 5,305
POST ID # = 741620
Inheritance Reputation: 70
Default

um... your broke it lol

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ProfileConverter.RegistryHelper.GetAutoCleanOrphans()
at ProfileConverter.Form1.LoadOptions()
at ProfileConverter.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
ProfileConverterAndCleaner
Assembly Version: 1.0.5430.23517
Win32 Version: 1.0.*
CodeBase: file:///G:/Chrome%20Dowloads/Corsair%20Stuff/ProfileConverterAndCleaner.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8008 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.7903 built by: Win9Rel
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

the new default location thing is causing this i think
__________________
Colors of the RAINBOW shine so bright!
USER IS NOT A CORSAIR EMPLOYEE
Come Join My Discord =(^.^)= [iCUE Guide]
Corsair USER Forums is NOT Corsair Tech Support


  #12  
Old 11-13-2014, 01:48 PM
dbase dbase is offline
Registered User
dbase's PC Specs
 
Join Date: Sep 2014
Posts: 5
POST ID # = 741625
dbase Reputation: 10
Default Startfehler

Fehler bei Programmstart
Attached Images
File Type: jpg K95Fehler.jpg (57.4 KB, 529 views)


  #13  
Old 11-13-2014, 02:45 PM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741634
Fuzznuts Reputation: 10
Default

All Fixed sorry :)


  #14  
Old 11-13-2014, 06:19 PM
Fuzznuts Fuzznuts is offline
Registered User
 
Join Date: Nov 2014
Posts: 10
POST ID # = 741674
Fuzznuts Reputation: 10
Default

Fixed instances where some orphan lighting elements were being left behind (thanks zheren159)


  #15  
Old 11-18-2014, 03:24 PM
ScarredMecha ScarredMecha is offline
Registered User
ScarredMecha's PC Specs
 
Join Date: Nov 2014
Posts: 1,162
POST ID # = 742479
ScarredMecha Reputation: 14
Default

The program seems to delete lighting effects that are being used as part of an action if they're not being assigned to an actual key.


 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:06 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.