Reply To: Put runtime on .NET server

Forums 💬 FlowCanvas ⚙️ Support Put runtime on .NET server Reply To: Put runtime on .NET server

#22778
benthehutt
Participant

    That makes sense, thanks for the heads up! It’s helpful to know I’m moving in the right direction.

    One issue I’ve found and was able to bypass was that the JSON export saves assembly information for generic types. This is actually a C# thing, not a FlowCanvas thing. Type.FullName doesn’t return any assembly info unless it’s a generic type. Here’s an example:

    FlowCanvas.Nodes.SimplexNodeWrapper'1[[FlowCanvas.Nodes.LogText, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]

    The generic type doesn’t contain the assembly info, but the generic parameter does. This is an issue because as you can see, it makes the Assembly-CSharp.dll a requirement. Basically I made the serializer output this instead:

    FlowCanvas.Nodes.SimplexNodeWrapper<FlowCanvas.Nodes.LogText>

    To support this I added this bit to the beginning of ReflectionTools.GetType:

    Now I can successfully deserialize the json on my server. Now I’m on to actually evaluating it.