ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
207 stars 24 forks source link

Cannot create pathmap from action set clipboard #429

Closed Gleyder42 closed 1 year ago

Gleyder42 commented 1 year ago

When creating a pathmap from action set clipboard nothing happens and I get this error:

[Error - 4:15:17 PM] OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Failed to deserialize request parameters. - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'o')
   at Newtonsoft.Json.Linq.JToken.FromObjectInternal(Object o, JsonSerializer jsonSerializer)
   at OmniSharp.Extensions.JsonRpc.DelegatingRequest`1..ctor(Object value)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.RouteRequest(IRequestDescriptor`1 descriptors, Request request, CancellationToken token) | 

I am using following clipboard

variables
{
    global:
        0: nodesOut
        1: segmentsOut
        2: attributesOut
        6: _objectVariable_0
        7: _objectVariable_1
        8: _objectVariable_2
        9: _objectVariable_3
        10: _objectVariable_4
        11: _objectVariable_5
        12: _objectVariable_6
        13: _objectVariable_7
        15: scoper
        16: compiling
        18: PlaceMode
        20: updateVisibleLook
        21: updateVisiblePosition
        22: Nodes
        23: Selected
        24: Attributes
        25: Segments
        26: _classIndexes
        27: _extendedGlobalCollection
        28: color
        29: color_0
        30: data
        31: show
}

actions
{
    Global.nodesOut = Array(Vector(352.724, 45.049, 175.167), Vector(325.591, 43.333, 174.523), Vector(321.209, 43.456, 162.043),
        Vector(307.894, 45.693, 156.456), Vector(294.434, 43.562, 151.347), Vector(289.991, 41.529, 167.099), Vector(275.330, 39.780,
        159.788));
    Global.segmentsOut = Array(Vector(0, 1, 0), Vector(1, 2, 0), Vector(2, 3, 0), Vector(3, 4, 0), Vector(4, 5, 0), Vector(5, 6, 0));
    Global.attributesOut = Array();
    Global._objectVariable_0 = Array(0, Vector(352.724, 45.049, 175.167), Vector(325.591, 43.333, 174.523), Vector(321.209, 43.456,
        162.043), Vector(307.894, 45.693, 156.456), Vector(294.434, 43.562, 151.347), Vector(289.991, 41.529, 167.099), Vector(275.330,
        39.780, 159.788), 1, 2, 3, 4, 5, 6, 0);
    Global._objectVariable_1 = Array(0, Vector(352.724, 46.299, 175.167), Vector(325.591, 44.583, 174.523), Vector(321.209, 44.706,
        162.043), Vector(307.894, 46.943, 156.456), Vector(294.434, 44.812, 151.347), Vector(289.991, 42.779, 167.099), Vector(275.330,
        41.030, 159.788), 2, 3, 4, 5, 6, 7, 0);
    Global._objectVariable_2 = Array(0, Null, Null, Null, Null, Null, Null, Null, Array(1, 2), Array(2, 3), Array(3, 4), Array(4, 5),
        Array(5, 6), Array(6, 7), 0);
    Global._objectVariable_3 = Array(0, True, True, True, True, True, True, True, Null, Null, Null, Null, Null, Null, 0);
    Global._objectVariable_4 = Array(0, False, False, False, False, False, False, False, False, False, False, False, False, False, 0);
    Global._objectVariable_5 = Array(0, 20, 21, 35, 36, 33, 34, 32, 0, 0, 0, 0, 0, 0, 0);
    Global._objectVariable_6 = Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    Global._objectVariable_7 = Array(0, Array(), Array(), Array(), Array(), Array(), Array(), Array(), 0, 0, 0, 0, 0, 0, 0);
    Global.scoper = Array(Null);
    Global.compiling = True;
    Global.PlaceMode = 2;
    Global.updateVisibleLook = Vector(0.645, -0.584, -0.493);
    Global.updateVisiblePosition = Vector(299.220, 43.676, 159.967);
    Global.Nodes = Array(1, 2, 3, 4, 5, 6, 7);
    Global.Selected = Array(1, 2, 3, 4, 5, 6, 7);
    Global.Attributes = Array();
    Global.Segments = Array(8, 9, 10, 11, 12, 13);
    Global._classIndexes = Array(-1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 0);
    Global._extendedGlobalCollection = Array(4, 4, 4, 0, 0, 0, 0, 5);
    Global.color = Color(Blue);
    Global.color_0 = Color(Green);
    Global.data = 4.010;
    Global.show = Array();
}