Comments (9)
Oops - that's my json without a colormodifier just to test whether an empty array would work. An actual array might be:
"ColorModifiers": [
{
"Type": "LerpLedColorModifier",
"LerpType": "Nearest"
}
]
But really it doesn't matter which modifier you try to load.
from ttcontroller.
Also, I tried removing the old style params from the other port configs just in case that was causing issues. From what I can tell it just ignores those now anyway.
from ttcontroller.
Here's the callstack portion of the log:
2020-11-13 11:37:48.7567|FATAL|TTController.Service.Managers.ConfigManager|Newtonsoft.Json.JsonSerializationException: Could not create an instance of type TTController.Common.Plugin.ILedColorModifierBase. Type is an interface or abstract class and cannot be instantiated. Path 'ColorModifiers[0].Type', line 5, position 13.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, String id, Boolean& createdFromNonDefaultCreator)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at TTController.Service.Config.Converters.AbstractNamedValueTupleConverter`2.ReadJson(JsonReader reader, Type objectType, ValueTuple`2 existingValue, Boolean hasExistingValue, JsonSerializer serializer)
at Newtonsoft.Json.JsonConverter`1.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at TTController.Service.Managers.ConfigManager.LoadOrCreateConfig()
2020-11-13 11:37:48.7606|FATAL|TTController.Service.Managers.ConfigManager|Failed to load the config!```
from ttcontroller.
Generated with this config:
"ColorModifiers": [
{
"Type": "TrimLedColorModifier",
"Config": {
"WrapRemainder": true
}
}
]
from ttcontroller.
Thanks for detailed info, I have no idea how I tested those modifiers.
I had to accidentally delete some code before pushing the release, sorry about that.
This build should work: https://ci.appveyor.com/project/MoshiMoshi0/ttcontroller/builds/36301960/artifacts
from ttcontroller.
No worries - I was poking in the code and it seems like maybe the ILedColorModifierBase is incomplete in the release branch? Iat doesn't inherit from iPlugin. I'm just guessing though - I'm not familiar with how the plugin stuff works.
Can I clone the source for the zip you just sent me? It will instantiate the colorModifiers now (yay!) but there are some bugs with the way it handles the lights. I'd like to help fix them if I can.
from ttcontroller.
Never mind - I see the updates now!
from ttcontroller.
but there are some bugs with the way it handles the lights
What are the bugs you found?
from ttcontroller.
I'll close this since the original issue is fixed, if you find any bugs in the modifiers please make a new one.
from ttcontroller.
Related Issues (20)
- faulty color mapping in Razer Studio HOT 9
- Boot profile freezes Riing Quad controllers
- Toughram RGB support HOT 1
- Fans turning back to rainbow and possibly stopping the whole service...? HOT 1
- Not all leds of Riing Trio 20 are working HOT 33
- Level 20 Mouse Pad HOT 4
- How to Set-Up With Synapse Properly?
- Add installation method (manifest) to Scoop Installer HOT 1
- processtrigger doesnt work anymore
- RazerConnectEffect not being recognized by Razer Connect anymore
- Debug is greyed out, system is not recognized
- Can't detect CPU temperature on ASUS ROG Strix Z690-E
- Provide current fan speed percent for DPSG controller
- TT Toughram RGB support HOT 5
- Ryzen 5800x and Floe Riing 360 HOT 11
- Riing Quad color bleed and value mismatch HOT 5
- Service configurator GUI HOT 5
- Add "bar" display mode to SoundEffect; Add ability to delay effects HOT 6
- Effect blending HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttcontroller.