These are chat archives for CoraleStudios/Colore
I was wondering what the correct syntax is for setting a breathing effect between 2 colours on my keyboard? I can set static colours just fine but I just can't get breathing to work (ie. nothing happens) when i use the same syntax:
@WolfspiritM I'm not sure if this is part of the same issue but whenever I try and use a different device to set a .SetBreathing() effect it returns the following error:
The type 'System.Windows.Media.Color' is defined in an assembly that is not referenced. You must add a reference to assembly 'PresentationCore, Version=184.108.40.206, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
It doesn't do this for Keyboard though, however it does it for all other devices.
Additionally, the Headset .setBreathing() method only has one parameter so I can't set 2 colours to breath between.
System.Windows.Media.Coloris only ever directly referenced in the casting operators inside
Corale.Colore.Core.Color, i'm not entirely sure when .NET/the compiler decides that the reference is needed on a project level.
seems to work but nothing happens on the keyboard, but that might be an actual bug as you were saying.
UsedImplicitlyshould be on code that is not necessarily publicly accessible but used in some way, to prevent toolings from marking it as unused. (like fields that will be consumed by the SDK but can't actually be seen/used by external code)
INVALIDfield in other enums do have doc comments
Although the CLR allows it, C# does not allow structs to have a default parameterless constructor. The reason is that, for a value type, compilers by default neither generate a default constructor, nor do they generate a call to the default constructor. So, even if you happened to define a default constructor, it will not be called and that will only confuse you. To avoid such problems, the C# compiler disallows definition of a default constructor by the user.
hotfix/missing-keyboard-effect-enumsince bugfixes are done on the master branch and then integrated to develop
I'm getting a:
Corale.Colore.Razer.NativeCallException was unhandled
Message: An unhandled exception of type 'Corale.Colore.Razer.NativeCallException' occurred in Corale.Colore.dll
Additional information: Call to native Chroma SDK function CreateKeyboardEffect failed with error: RzInvalidParameter: Invalid parameter. (87)
when trying to call the method.
Okay now I'm getting a:
System.MissingMethodException was unhandled
Message: An unhandled exception of type 'System.MissingMethodException' occurred in Chromatics.cs-635843546859366557.dll
Additional information: Method not found: 'Void Corale.Colore.Razer.Keyboard.Effects.Breathing..ctor(Corale.Colore.Razer.Keyboard.Effects.BreathingType, Corale.Colore.Core.Color, Corale.Colore.Core.Color)'.
Could not load type 'Corale.Colore.Razer.Keyboard.Effects.BreathingType' from assembly 'Corale.Colore, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null'
when i try and write that string to the console
Okay well I'm getting a:
System.Reflection.TargetInvocationException was unhandled
Message: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
when using the develop branch .dll's
Alright problem solved. The nuget release seemed to fix the breathing issues. You guys are awesome.
The only downside is now my headset appears to be completely unresponsive to Colore. When I run my program it just defaults to a very dim blue and freezes until I release the program and Synapse takes over. can never win with developing. :/