-
Notifications
You must be signed in to change notification settings - Fork 81
/
ErrorID.cs
177 lines (149 loc) · 9.08 KB
/
ErrorID.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/// <summary>
/// Enum for API-related errors.
/// </summary>
public enum ErrorID
{
// General errors
InternalServerError = 0,
APIAccessDeactivated = 1,
JSONInvalid = 2,
APINameInvalid = 3,
APIVersionInvalid = 4,
RequestIDInvalid = 5,
RequestTypeMissingOrEmpty = 6,
RequestTypeUnknown = 7,
RequestRequiresAuthetication = 8,
RequestRequiresPermission = 9, // Returned when a request requires a certain permission that has not been granted for this plugin.
// Errors related to AuthenticationTokenRequest
TokenRequestDenied = 50,
TokenRequestCurrentlyOngoing = 51,
TokenRequestPluginNameInvalid = 52,
TokenRequestDeveloperNameInvalid = 53,
TokenRequestPluginIconInvalid = 54,
// Errors related to AuthenticationRequest
AuthenticationTokenMissing = 100,
AuthenticationPluginNameMissing = 101,
AuthenticationPluginDeveloperMissing = 102,
// Errors related to ModelLoadRequest
ModelIDMissing = 150,
ModelIDInvalid = 151,
ModelIDNotFound = 152,
ModelLoadCooldownNotOver = 153,
CannotCurrentlyChangeModel = 154,
// Errors related to HotkeyTriggerRequest
HotkeyQueueFull = 200, // Only a certain amount of hotkey activations can be queued until you have to wait for execution completion.
HotkeyExecutionFailedBecauseNoModelLoaded = 201,
HotkeyIDNotFoundInModel = 202,
HotkeyCooldownNotOver = 203, // Individual hotkeys have a global 5 second cooldown
HotkeyIDFoundButHotkeyDataInvalid = 204, // For example missing files for expression/animation hotkey
HotkeyExecutionFailedBecauseBadState = 205, // For example when trying to load a model and the user has certain config windows open that temporarily prevent that
HotkeyUnknownExecutionFailure = 206,
HotkeyExecutionFailedBecauseLive2DItemNotFound = 207, // When triggering hotkeys in Live2D items, this will be returned if the requested Live2D item has not been found.
HotkeyExecutionFailedBecauseLive2DItemsDoNotSupportThisHotkeyType = 208, // Only a subset of hotkey actions are supported in Live2D items, for example Expression hotkeys.
// Errors related to ColorTintRequest
ColorTintRequestNoModelLoaded = 250,
ColorTintRequestMatchOrColorMissing = 251,
ColorTintRequestInvalidColorValue = 252,
// Errors related to MoveModelRequest
MoveModelRequestNoModelLoaded = 300,
MoveModelRequestMissingFields = 301,
MoveModelRequestValuesOutOfRange = 302,
// Errors related to ParameterCreationRequest
CustomParamNameInvalid = 350,
CustomParamValuesInvalid = 351,
CustomParamAlreadyCreatedByOtherPlugin = 352,
CustomParamExplanationTooLong = 353,
CustomParamDefaultParamNameNotAllowed = 354, // When you use names of default param names, like MouthX, FaceAngleZ, MouthSmile, ...
CustomParamLimitPerPluginExceeded = 355,
CustomParamLimitTotalExceeded = 356,
// Errors related to ParameterDeletionRequest
CustomParamDeletionNameInvalid = 400,
CustomParamDeletionNotFound = 401, // Trying to delete a parameter that doesn't exist
CustomParamDeletionCreatedByOtherPlugin = 402, // Trying to delete a parameter created by another plugin
CustomParamDeletionCannotDeleteDefaultParam = 403,
// Errors related to InjectParameterDataRequest
InjectDataNoDataProvided = 450,
InjectDataValueInvalid = 451,
InjectDataWeightInvalid = 452,
InjectDataParamNameNotFound = 453, // Trying to send data for parameter that doesn't exist
InjectDataParamControlledByOtherPlugin = 454, // Only one plugin can send data for a parameter at a time
InjectDataModeUnknown = 455, // Only "add" and "set" can be used. If no mode is provided, "set" will be used.
// Errors related to ParameterValueRequest
ParameterValueRequestParameterNotFound = 500,
// Errors related to NDIConfigRequest
NDIConfigCooldownNotOver = 550,
NDIConfigResolutionInvalid = 551,
// Errors related to ExpressionStateRequest
ExpressionStateRequestInvalidFilename = 600,
ExpressionStateRequestFileNotFound = 601,
// Errors related to ExpressionStateRequest
ExpressionActivationRequestInvalidFilename = 650,
ExpressionActivationRequestFileNotFound = 651,
ExpressionActivationRequestNoModelLoaded = 652,
// Errors related to SetCurrentModelPhysicsRequest
SetCurrentModelPhysicsRequestNoModelLoaded = 700,
SetCurrentModelPhysicsRequestModelHasNoPhysics = 701,
SetCurrentModelPhysicsRequestPhysicsControlledByOtherPlugin = 702,
SetCurrentModelPhysicsRequestNoOverridesProvided = 703,
SetCurrentModelPhysicsRequestPhysicsGroupIDNotFound = 704,
SetCurrentModelPhysicsRequestNoOverrideValueProvided = 705,
SetCurrentModelPhysicsRequestDuplicatePhysicsGroupID = 706,
// Errors related to ItemLoadRequest
ItemFileNameMissing = 750,
ItemFileNameNotFound = 751,
ItemLoadLoadCooldownNotOver = 752, // Not used anymore. The cooldown for loading items has been removed.
CannotCurrentlyLoadItem = 753, // This is usually because the user has menus open that prevent items from being loaded.
CannotLoadItemSceneFull = 754,
ItemOrderInvalid = 755,
ItemOrderAlreadyTaken = 756,
ItemLoadValuesInvalid = 757, // Invalid values for fields like size, position, ...
ItemCustomDataInvalid = 758, // Invalid values for custom data field (customDataBase64). Happens when data is provided here but it's no valid JPG/PNG data or image dimensions are invalid.
ItemCustomDataCannotAskRightNow = 759, // Max. number of item load prompts are already currently shown to the user.
ItemCustomDataLoadRequestRejectedByUser = 760, // You requested a custom data image item to be loaded but the user rejected it.
// Errors related to ItemUnloadRequest
CannotCurrentlyUnloadItem = 800, // This is usually because the user has menus open that prevent items from being unloaded.
// Errors related to ItemAnimationControlRequest
ItemAnimationControlInstanceIDNotFound = 850,
ItemAnimationControlUnsupportedItemType = 851, // Returned when trying to use this request for Live2D items.
ItemAnimationControlAutoStopFramesInvalid = 852, // Auto-stop frames indices have to be between 0 and the last frame index of the animated item.
ItemAnimationControlTooManyAutoStopFrames = 853, // Maximum allowed number per item is 1024.
ItemAnimationControlSimpleImageDoesNotSupportAnim = 854, // You can set stuff like transparency and brightness for normal PNG/JPG items, but nothing animation-related.
// Errors related to ItemMoveRequest
ItemMoveRequestInstanceIDNotFound = 900,
ItemMoveRequestInvalidFadeMode = 901,
ItemMoveRequestItemOrderTakenOrInvalid = 902,
ItemMoveRequestCannotCurrentlyChangeOrder = 903, // Cannot change order when any windows are open.
// Errors related to EventSubscriptionRequest
EventSubscriptionRequestEventTypeUnknown = 950,
// Errors related to ArtMeshSelectionRequest
ArtMeshSelectionRequestNoModelLoaded = 1000, // Cannot start request because no model is loaded.
ArtMeshSelectionRequestOtherWindowsOpen = 1001, // Other windows are currently open, can't start request.
ArtMeshSelectionRequestModelDoesNotHaveArtMesh = 1002, // At least one of the "active" ArtMeshes you provided does not exist in the model.
ArtMeshSelectionRequestArtMeshIDListError = 1003, // Your "active" ArtMesh ID list is too long.
// Errors related to ItemPinRequest
ItemPinRequestGivenItemNotLoaded = 1050,
ItemPinRequestInvalidAngleOrSizeType = 1051,
ItemPinRequestModelNotFound = 1052,
ItemPinRequestArtMeshNotFound = 1053,
ItemPinRequestPinPositionInvalid = 1054,
// Errors related to PermissionRequest
PermissionRequestUnknownPermission = 1100,
PermissionRequestCannotRequestRightNow = 1101, // Permission config window is open.
PermissionRequestFileProblem = 1102, // Could not open or write permission file for this plugin.
// Errors related to PostProcessingListReqest
PostProcessingListReqestInvalidFilter = 1150, // Provided filter array too long (more than 512 entries)
// Errors related to PostProcessingUpdateReqest
PostProcessingUpdateReqestCannotUpdateRightNow = 1200, // Cannot update post-processing when windows are open.
PostProcessingUpdateRequestFadeTimeInvalid = 1201,
PostProcessingUpdateRequestLoadingPresetAndValues = 1202, // Cannot load preset and individual config values with one request. Do one or the other.
PostProcessingUpdateRequestPresetFileLoadFailed = 1203, // Requested preset file was not found in the "Effects" folder.
PostProcessingUpdateRequestValueListInvalid = 1204,
PostProcessingUpdateRequestValueListContainsDuplicates = 1205,
PostProcessingUpdateRequestTriedToLoadRestrictedEffect = 1206, // Tried to configure a restricted effect but user doesn't have those effects enabled/allowed.
// -------------- EVENT CONFIG ERRORS --------------
EVENT_OFFSET = 100000,
// Event subscription errors for TestEvent
Event_TestEvent_TestMessageTooLong = EVENT_OFFSET + 0,
// Event subscription errors for ModelLoadedEvent
Event_ModelLoadedEvent_ModelIDInvalid = EVENT_OFFSET + 50
}