-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
484 lines (483 loc) · 18.2 KB
/
package.json
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
{
"name": "bg3-mod-helper",
"displayName": "bg3_mod_helper",
"publisher": "ghostboats",
"description": "This extension is designed to help you make mods in Baldur's Gate 3 by creating UUIDs and handles for you, as well as updating your .loca.xml files as well should they exist. And more to come in the future.",
"version": "2.2.42",
"icon": "media/marketplace_icon.png",
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:xml",
"onLanguage:plaintext"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "bg3-mod-helper.packMod",
"title": "Pack Mod",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.smartConvert",
"title": "Convert this file",
"category": "BG3 Mod Helper",
"iconPath": "$(zap)"
},
{
"command": "bg3-mod-helper.goToHandleUUID",
"title": "Go to UUID/Handle"
},
{
"command": "bg3-mod-helper.insertUUID",
"title": "Generate UUID"
},
{
"command": "bg3-mod-helper.insertHandle",
"title": "Generate Handle",
"iconPath": "$(chip)"
},
{
"command": "bg3-mod-helper.openStatsValidator",
"title": "Stats Validator",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.openLSXValidator",
"title": "LSX Validator",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.openBG3SearchEngine",
"title": "BG3 Search Engine",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.createFileFromTemplate",
"title": "Create BG3 File",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.insertAttribute",
"title": "Insert Attribute"
},
{
"command": "bg3-mod-helper.insertClipboard",
"title": "Insert Clipboard"
},
{
"command": "bg3-mod-helper.xmlToLoca",
"title": "Convert all xml files to loca files",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.locaToXml",
"title": "Convert all loca files to xml files",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.lsxToLsf",
"title": "Convert all lsx files to lsf files",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.lsfToLsx",
"title": "Convert all lsf files to lsx files",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.DDSToPNG",
"title": "Convert To PNG"
},
{
"command": "bg3-mod-helper.PNGToDDS",
"title": "Convert To DDS"
},
{
"command": "bg3-mod-helper.resizeImageTooltip",
"title": "Resize Image to Tooltip (380x380)"
},
{
"command": "bg3-mod-helper.resizeImageController",
"title": "Resize Image to Controller (144x144)"
},
{
"command": "bg3-mod-helper.resizeImageHotbar",
"title": "Resize Image to Hotbar (64x64)"
},
{
"command": "bg3-mod-helper.resizeImageCustom",
"title": "Resize Image Custom"
},
{
"command": "extension.addIconBackground",
"title": "Add Icon Background"
},
{
"command": "bg3-mod-helper.createAtlas",
"title": "Create Icons_{modName}.lsx, Icon_{modName}.dds, and merged.lsx. Need to supply a folder of icons you wish to add to the .dds"
},
{
"command": "bg3-mod-helper.createModTemplate",
"title": "Create folders/files for mod templates"
},
{
"command": "bg3-mod-helper.getAttributes",
"title": "View attributes and an example value for the currently opened file"
},
{
"command": "bg3-mod-helper.openConverter",
"title": "Open Converter"
},
{
"command": "bg3-mod-helper.versionGenerator",
"title": "Version Generator"
},
{
"command": "bg3-mod-helper.rotationTool",
"title": "Rotation Tool"
},
{
"command": "bg3-mod-helper.DDSViewer",
"title": "DDS Viewer"
},
{
"command": "bg3-mod-helper.addToExcludeList",
"title": "Add to Conversion Exclusion List",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.removeFromExcludeList",
"title": "Remove from Conversion Exclusion List",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.xmlMerger",
"title": "XML Merger"
},
{
"command": "bg3-mod-helper.unpackGameDataCommand",
"title": "For dev use, do press the button ;)"
},
{
"command": "bg3-mod-helper.openPacker",
"title": "Open Packer"
},
{
"command": "bg3-mod-helper.unpackMod",
"title": "Unpack Mod"
},
{
"command": "bg3-mod-helper.openModsFolder",
"title": "Open Mods Folder",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.openWorkspaceFolder",
"title": "Open Workspace Folder",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.openLogsFolder",
"title": "Open Extension Logs Folder",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.openGameFolder",
"title": "Open Game Data Folder",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.addDependencies",
"title": "Add Dependencies",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.symlinker",
"title": "Symlink your current mod",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.generateReplaceAllUUIDs",
"title": "Generate and Replace All UUIDs",
"category": "BG3 Mod Helper"
},
{
"command": "bg3-mod-helper.packModZip",
"title": "Pack Mod as ZIP",
"category": "BG3 Mod Helper"
}
],
"configuration": {
"title": "BG3 Mod Helper",
"properties": {
"bg3ModHelper.maxCacheSize": {
"type": "number",
"default": 100,
"description": "Maximum number of items to store in the cache."
},
"bg3ModHelper.hover.maxFiles": {
"type": "number",
"default": 10,
"description": "Maximum number of file instances to show on hover."
},
"bg3ModHelper.hover.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable hover feature."
},
"bg3ModHelper.hover.showPath": {
"type": "boolean",
"default": true,
"description": "Toggle file path in hover message (not working in current update)."
},
"bg3ModHelper.rootModPath": {
"type": "string",
"default": "",
"description": "DO NOT ALTER THIS GLOBAL SETTING, RATHER CHANGE IN WORKSPACE SETTING IF YOU NEED TO, PROBABLY DONT NEED TO SINCE ITS AUTOSET (WORKSPACE SETTING FOUND ABOVE, NEXT TO USER). Root mod folder path. The folder that will get packed when you run the Pack Current Mod command."
},
"bg3ModHelper.modDestPath": {
"type": "string",
"default": "",
"description": "Path where your mod should end up, ie [C:/Users/<username>/AppData/Local/Larian Studios/Baldurs Gate 3/Mods]"
},
"bg3ModHelper.lslibPath": {
"type": "string",
"default": "",
"description": "Path where your LSLib.dll file lives, ie [C:\\Documents\\ExportTool-v1.19.5\\Packed]:"
},
"bg3ModHelper.autoLaunchOnPack": {
"type": "boolean",
"default": false,
"description": "Automatically launch the game after you pack your mod"
},
"bg3ModHelper.launchContinueGame": {
"type": "boolean",
"default": false,
"description": "Automatically continue the most recent game on launch."
},
"bg3ModHelper.excludedFiles": {
"type": "array",
"description": "List of files to exclude from conversion. You can quick add items to this via right click on a file in the file tree -> Add to Conversion Exclusion List. Example: [c:/path/to/ur/file.lsx]",
"default": [],
"items": {
"type": "string"
}
},
"bg3ModHelper.addHandlesToAllLocas": {
"type": "boolean",
"default": true,
"description": "When generating handles, add them to all loca files. If disabled, prompts for which files to add handles to."
},
"bg3ModHelper.gameInstallLocation": {
"type": "string",
"default": "",
"description": "Path to where Baldur's Gate 3 is installed, ie [W:\\SteamLibrary\\steamapps\\common\\Baldurs Gate 3], [C:\\Program Files (x86)\\Steam\\steamapps\\common\\Baldurs Gate 3]:"
}
}
},
"keybindings": [
{
"command": "bg3-mod-helper.insertUUID",
"key": "ctrl+shift+u",
"when": "editorTextFocus"
},
{
"command": "bg3-mod-helper.insertHandle",
"key": "ctrl+shift+h",
"when": "editorTextFocus"
},
{
"command": "bg3-mod-helper.createFileFromTemplate",
"key": "ctrl+shift+q",
"when": "editorTextFocus"
},
{
"command": "bg3-mod-helper.createFileFromTemplate",
"key": "ctrl+1",
"when": "editorTextFocus"
},
{
"command": "bg3-mod-helper.insertAttribute",
"key": "ctrl+shift+a",
"when": "editorTextFocus"
},
{
"command": "bg3-mod-helper.insertClipboard",
"key": "ctrl+shift+2",
"when": "editorTextFocus"
}
],
"menus": {
"view/title": [
{
"when": "view == bg3ModHelperView",
"command": "bg3-mod-helper.packMod",
"group": "navigation"
}
],
"explorer/context": [
{
"when": "resourceExtname == .dds || resourceExtname == .DDS",
"command": "bg3-mod-helper.DDSToPNG",
"group": "navigation"
},
{
"when": "resourceExtname == .png || resourceExtname == .PNG",
"command": "bg3-mod-helper.PNGToDDS",
"group": "navigation"
},
{
"command": "bg3-mod-helper.createFileFromTemplate",
"group": "navigation@10"
},
{
"when": "resourceExtname == .png || resourceExtname == .PNG || resourceExtname == .dds || resourceExtname == .DDS",
"submenu": "bg3ModHelper.imageResizeSubmenu",
"group": "navigation"
},
{
"when": "resourceExtname == .png",
"command": "extension.addIconBackground",
"group": "9_modification"
},
{
"when": "resourceExtname == .dll || resourceExtname == .loca || resourceExtname == .xml || resourceExtname == .lsb || resourceExtname == .lsf || resourceExtname == .lsj || resourceExtname == .lsfx || resourceExtname == .lsbc || resourceExtname == .lsbs || resourceExtname == .lsx",
"command": "bg3-mod-helper.smartConvert",
"group": "navigation"
},
{
"when": "resourceExtname == .lsx || resourceExtname == .loca || resourceExtname == .xml || resourceExtname == .lsf && !isExcluded",
"command": "bg3-mod-helper.addToExcludeList",
"group": "navigation"
},
{
"when": "resourceExtname == .lsx || resourceExtname == .loca || resourceExtname == .xml || resourceExtname == .lsf && isExcluded",
"command": "bg3-mod-helper.removeFromExcludeList",
"group": "navigation"
},
{
"when": "resourceExtname == .pak",
"command": "bg3-mod-helper.unpackMod",
"group": "navigation"
}
],
"editor/context": [
{
"when": "editorTextFocus",
"command": "bg3-mod-helper.goToHandleUUID",
"group": "navigation@0"
},
{
"when": "editorTextFocus",
"command": "bg3-mod-helper.insertUUID",
"group": "navigation@0"
},
{
"when": "editorTextFocus",
"command": "bg3-mod-helper.insertHandle",
"group": "navigation@0"
},
{
"when": "editorTextFocus",
"submenu": "bg3ModHelper.exportToolsSubmenu",
"group": "navigation@1"
},
{
"command": "bg3-mod-helper.createFileFromTemplate",
"group": "navigation@2"
},
{
"when": "editorTextFocus && editorHasSelection",
"command": "bg3-mod-helper.generateReplaceAllUUIDs",
"group": "navigation@0"
}
],
"bg3ModHelper.exportToolsSubmenu": [
{
"command": "bg3-mod-helper.openStatsValidator"
},
{
"command": "bg3-mod-helper.openLSXValidator"
},
{
"command": "bg3-mod-helper.openBG3SearchEngine"
}
],
"bg3ModHelper.imageResizeSubmenu": [
{
"command": "bg3-mod-helper.resizeImageTooltip"
},
{
"command": "bg3-mod-helper.resizeImageController"
},
{
"command": "bg3-mod-helper.resizeImageHotbar"
},
{
"command": "bg3-mod-helper.resizeImageCustom"
}
]
},
"submenus": [
{
"id": "bg3ModHelper.exportToolsSubmenu",
"label": "Export Tools"
},
{
"id": "bg3ModHelper.createFileSubmenu",
"label": "Create BG3 File"
},
{
"id": "bg3ModHelper.imageResizeSubmenu",
"label": "Resize Image"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "bg3ModHelper",
"title": "BG3 Mod Helper",
"icon": "media/pack_icon.svg"
}
]
},
"views": {
"bg3ModHelper": [
{
"id": "bg3ModHelperView",
"name": "Quick Actions"
}
]
}
},
"icons": {
"light": "media/light/pack_icon.svg",
"dark": "media/dark/pack_icon.svg"
},
"repository": {
"type": "git",
"url": "https://github.com/ghostboats/bg3_mod_helper"
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "vscode-test",
"dependencies": "npm install"
},
"dependencies": {
"log4js": "^6.9.1",
"magickwand.js": "^1.1.0",
"node-api-dotnet": "^0.7.8",
"node-fetch": "^3.3.2",
"node-gyp": "^10.1.0",
"uuid": "^9.0.1",
"xmlbuilder": "^15.1.1"
},
"license": "LGPL-3.0-or-later"
}