warcraft-vscode 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +23 -0
- package/.lua-format +4 -0
- package/.vscodeignore +16 -0
- package/CHANGELOG.md +432 -0
- package/LICENSE.md +21 -0
- package/README.md +136 -0
- package/bin/MopaqPack-rs.exe +0 -0
- package/bin/ObjEditing.exe +0 -0
- package/images/icon.png +0 -0
- package/out/cli.js +3 -0
- package/out/cli.js.LICENSE.txt +1 -0
- package/out/standalone.js +2 -0
- package/out/standalone.js.LICENSE.txt +8 -0
- package/package.json +258 -0
- package/res/.version.json +1 -0
- package/res/def.zip +0 -0
- package/warcraft_validation.json +28 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 4
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
charset = utf-8
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
insert_final_newline = true
|
|
11
|
+
max_line_length = 120
|
|
12
|
+
|
|
13
|
+
[*.md]
|
|
14
|
+
trim_trailing_whitespace = false
|
|
15
|
+
|
|
16
|
+
[*.json]
|
|
17
|
+
indent_size = 2
|
|
18
|
+
|
|
19
|
+
[*.ts]
|
|
20
|
+
quote_type = single
|
|
21
|
+
|
|
22
|
+
[*.js]
|
|
23
|
+
quote_type = single
|
package/.lua-format
ADDED
package/.vscodeignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
## [0.1.16](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.15...v0.1.16) (2024-05-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **packer:** `imports` support for specific Warcraft versions (ex. imports.reforge) ([51af8f2](https://github.com/warcraft-iii/warcraft-vscode/commit/51af8f25b604445476790d6db4435d457025b00b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.1.15](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.14...v0.1.15) (2024-03-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.14](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.13...v0.1.14) (2024-03-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Create Project support use classic template ([ddb1b6e](https://github.com/warcraft-iii/warcraft-vscode/commit/ddb1b6e2f82b9f5ecef93cafefa3087b4c28ffd4))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [0.1.13](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.12...v0.1.13) (2023-07-12)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [0.1.12](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.11...v0.1.12) (2023-07-12)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **deps:** build failed with protobufjs 6.11.3 ([2388287](https://github.com/warcraft-iii/warcraft-vscode/commit/2388287ceedb4d28676648808102665a00008c11))
|
|
33
|
+
* simple-git ([d8c3a41](https://github.com/warcraft-iii/warcraft-vscode/commit/d8c3a4182a9cf6b53d0d89aae1ceb7aba8753093))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [0.1.11](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.10...v0.1.11) (2021-08-25)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* When compile lua files failed then throw the details ([f3c1377](https://github.com/warcraft-iii/warcraft-vscode/commit/f3c137717736194f42b87b47cf7c1b39108aa368))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [0.1.10](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.9...v0.1.10) (2021-08-19)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* **classic:** Re-executing "Run Map" did not close the last launched game client correctly ([956aa3d](https://github.com/warcraft-iii/warcraft-vscode/commit/956aa3d5783f024f1a4af2fcbababbe53db9cef1))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [0.1.9](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.8...v0.1.9) (2021-06-28)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [0.1.8](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.7...v0.1.8) (2021-05-18)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* **classic:** Check the game running status failure ([5edaced](https://github.com/warcraft-iii/warcraft-vscode/commit/5edaced51146911a63760067fda416e7339fc99f))
|
|
65
|
+
* Incorrect object editing path ([2f7171d](https://github.com/warcraft-iii/warcraft-vscode/commit/2f7171dd24c8a24fa6ad5030cc0e1bbb520cb0c0))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [0.1.7](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.6...v0.1.7) (2021-05-17)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* Objediting`s def files are not deployed ([4d51528](https://github.com/warcraft-iii/warcraft-vscode/commit/4d51528a2eed0791e1c0072b0e4465531a567ac9))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [0.1.6](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.5...v0.1.6) (2021-05-17)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
* **classic:** No Maps/Test directory created cause failed to start map ([3a695f7](https://github.com/warcraft-iii/warcraft-vscode/commit/3a695f70727ef3291999e96ee5b1b8d67817fdaf))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## [0.1.5](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.4...v0.1.5) (2021-05-17)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* Duplicate lua package path configuration content when switching map files ([9ef702c](https://github.com/warcraft-iii/warcraft-vscode/commit/9ef702c824b6cf69f2f91c23b6822ff3d493e769))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## [0.1.4](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.3...v0.1.4) (2021-05-13)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Features
|
|
100
|
+
|
|
101
|
+
* **classic:** Specify the path to the war3map.j file or use it in the map file. ([b01dc79](https://github.com/warcraft-iii/warcraft-vscode/commit/b01dc792d29dfec8c7536e39fbf9885856991d22))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## [0.1.3](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.2...v0.1.3) (2021-05-13)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
* **Objediting:** Merge built-in object config failure ([5b9fda1](https://github.com/warcraft-iii/warcraft-vscode/commit/5b9fda1d96f9e680a500c617830b5ecbca000149))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [0.1.2](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.1...v0.1.2) (2021-05-11)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* **classic:** Unable to pack map when opening WE ([a2c92d4](https://github.com/warcraft-iii/warcraft-vscode/commit/a2c92d4e238fc905031daccbf336248f1caa3728))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## [0.1.1](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.1.0...v0.1.1) (2021-05-11)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Features
|
|
127
|
+
|
|
128
|
+
* Open map files with YDWE ([bbc6546](https://github.com/warcraft-iii/warcraft-vscode/commit/bbc65469a50c06a2f2002e625c9485fdf5aa407a))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# [0.1.0](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.34...v0.1.0) (2021-05-11)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Bug Fixes
|
|
136
|
+
|
|
137
|
+
* Loading lua.package.path from warcraft.json is incorrect ([dfb90c3](https://github.com/warcraft-iii/warcraft-vscode/commit/dfb90c30c33e309c8ad30d1c1785eca8c148bc40))
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
* Add chose map file command ([baf4202](https://github.com/warcraft-iii/warcraft-vscode/commit/baf42024b0006164b85c407c243fa12d2333374d))
|
|
143
|
+
* Pack map file as the YDWE format ([c2a9b3d](https://github.com/warcraft-iii/warcraft-vscode/commit/c2a9b3d8e5646abbe72da2c651655f21de0a72b4))
|
|
144
|
+
* Support Warcraft III Classic Version (WIP) ([f9fc629](https://github.com/warcraft-iii/warcraft-vscode/commit/f9fc629b8321f16245edd5e8788ec9e7e71d3f75))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## [0.0.34](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.33...v0.0.34) (2020-07-17)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* Invalid ".product.db" file path ([82ad861](https://github.com/warcraft-iii/warcraft-vscode/commit/82ad861))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## [0.0.33](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.32...v0.0.33) (2020-07-01)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Bug Fixes
|
|
161
|
+
|
|
162
|
+
* **ObjEditing:** Miss object fields when load existing war3map.* file ([3e70411](https://github.com/warcraft-iii/warcraft-vscode/commit/3e70411))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [0.0.32](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.31...v0.0.32) (2020-06-15)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Bug Fixes
|
|
170
|
+
|
|
171
|
+
* Invalid Game/WE launch parameter config ([429d506](https://github.com/warcraft-iii/warcraft-vscode/commit/429d506))
|
|
172
|
+
* Object generator level values saved incorrect ([d26923f](https://github.com/warcraft-iii/warcraft-vscode/commit/d26923f))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## [0.0.31](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.30...v0.0.31) (2020-04-20)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## [0.0.30](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.29...v0.0.30) (2020-01-07)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Bug Fixes
|
|
184
|
+
|
|
185
|
+
* Object generator sometimes do not need to execute ([40f8650](https://github.com/warcraft-iii/warcraft-vscode/commit/40f8650))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## [0.0.29](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.28...v0.0.29) (2019-12-25)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Features
|
|
193
|
+
|
|
194
|
+
* add simple code confusion ([ead7aa7](https://github.com/warcraft-iii/warcraft-vscode/commit/ead7aa7))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## [0.0.28](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.27...v0.0.28) (2019-12-24)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Bug Fixes
|
|
202
|
+
|
|
203
|
+
* .def is no longer extracted when there are multiple folders in the workspace ([2032b2d](https://github.com/warcraft-iii/warcraft-vscode/commit/2032b2d))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## [0.0.27](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.26...v0.0.27) (2019-12-20)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## [0.0.26](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.25...v0.0.26) (2019-12-19)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Bug Fixes
|
|
215
|
+
|
|
216
|
+
* package.json merge error ([db37f85](https://github.com/warcraft-iii/warcraft-vscode/commit/db37f85))
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Features
|
|
220
|
+
|
|
221
|
+
* packing objects ([44b65de](https://github.com/warcraft-iii/warcraft-vscode/commit/44b65de))
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## [0.0.25](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.24...v0.0.25) (2019-12-18)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
* string call expression ([c3e0832](https://github.com/warcraft-iii/warcraft-vscode/commit/c3e0832))
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Features
|
|
234
|
+
|
|
235
|
+
* Hide status bar item in non project ([fa203dc](https://github.com/warcraft-iii/warcraft-vscode/commit/fa203dc))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## [0.0.24](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.23...v0.0.24) (2019-07-02)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
* Add library ([7b3d371](https://github.com/warcraft-iii/warcraft-vscode/commit/7b3d371))
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
## [0.0.23](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.22...v0.0.23) (2019-06-28)
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Bug Fixes
|
|
252
|
+
|
|
253
|
+
* Identical files with different paths require multiple times ([e9f1943](https://github.com/warcraft-iii/warcraft-vscode/commit/e9f1943))
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Features
|
|
257
|
+
|
|
258
|
+
* Add config for define library remotes ([e8c13f6](https://github.com/warcraft-iii/warcraft-vscode/commit/e8c13f6))
|
|
259
|
+
* Ignore archived repo ([d2aba2d](https://github.com/warcraft-iii/warcraft-vscode/commit/d2aba2d))
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
## [0.0.22](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.21...v0.0.22) (2019-06-27)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Features
|
|
267
|
+
|
|
268
|
+
* Add API seterrorhandler geterrorhandler ([ab14f03](https://github.com/warcraft-iii/warcraft-vscode/commit/ab14f03))
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## [0.0.21](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.20...v0.0.21) (2019-06-26)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Features
|
|
276
|
+
|
|
277
|
+
* support package.path ([34405b6](https://github.com/warcraft-iii/warcraft-vscode/commit/34405b6))
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
## [0.0.20](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.19...v0.0.20) (2019-06-25)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Bug Fixes
|
|
285
|
+
|
|
286
|
+
* release compiler resolve file error ([d0c18c5](https://github.com/warcraft-iii/warcraft-vscode/commit/d0c18c5))
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## [0.0.19](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.18...v0.0.19) (2019-06-21)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### Features
|
|
294
|
+
|
|
295
|
+
* Add command `toggle configuration` ([5221906](https://github.com/warcraft-iii/warcraft-vscode/commit/5221906))
|
|
296
|
+
* Add config files ([eea028e](https://github.com/warcraft-iii/warcraft-vscode/commit/eea028e))
|
|
297
|
+
* Add function: dofile loadfile ([92cf5ea](https://github.com/warcraft-iii/warcraft-vscode/commit/92cf5ea))
|
|
298
|
+
* Add warcraft.json validation ([bbc3e83](https://github.com/warcraft-iii/warcraft-vscode/commit/bbc3e83))
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## [0.0.18](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.17...v0.0.18) (2019-06-13)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### Bug Fixes
|
|
306
|
+
|
|
307
|
+
* luamin's bug ([8373866](https://github.com/warcraft-iii/warcraft-vscode/commit/8373866))
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### Features
|
|
311
|
+
|
|
312
|
+
* The imports folder from the library will import into the map ([d6ef0f1](https://github.com/warcraft-iii/warcraft-vscode/commit/d6ef0f1))
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## [0.0.17](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.16...v0.0.17) (2019-05-30)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### Bug Fixes
|
|
320
|
+
|
|
321
|
+
* some bugs ([e6b5e42](https://github.com/warcraft-iii/warcraft-vscode/commit/e6b5e42))
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Features
|
|
325
|
+
|
|
326
|
+
* add compile release ([e57fde9](https://github.com/warcraft-iii/warcraft-vscode/commit/e57fde9))
|
|
327
|
+
* add compile release (wip) ([b9ff591](https://github.com/warcraft-iii/warcraft-vscode/commit/b9ff591))
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## [0.0.16](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.15...v0.0.16) (2019-05-27)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
## [0.0.15](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.14...v0.0.15) (2019-05-27)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
## [0.0.14](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.13...v0.0.14) (2019-05-27)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
### Features
|
|
343
|
+
|
|
344
|
+
* Add project create ([c820a1c](https://github.com/warcraft-iii/warcraft-vscode/commit/c820a1c))
|
|
345
|
+
* localize ([e013649](https://github.com/warcraft-iii/warcraft-vscode/commit/e013649))
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
## [0.0.13](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.12...v0.0.13) (2019-05-21)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### Features
|
|
353
|
+
|
|
354
|
+
* add Auto Close client config ([9268cbe](https://github.com/warcraft-iii/warcraft-vscode/commit/9268cbe))
|
|
355
|
+
* Add the "imports" folder ([ab418aa](https://github.com/warcraft-iii/warcraft-vscode/commit/ab418aa))
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
## [0.0.12](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.11...v0.0.12) (2019-05-15)
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
### Bug Fixes
|
|
363
|
+
|
|
364
|
+
* compile debug ([bcc8615](https://github.com/warcraft-iii/warcraft-vscode/commit/bcc8615))
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## [0.0.11](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.10...v0.0.11) (2019-05-13)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
## [0.0.10](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.9...v0.0.10) (2019-05-10)
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Features
|
|
376
|
+
|
|
377
|
+
* Added option command ([3a18283](https://github.com/warcraft-iii/warcraft-vscode/commit/3a18283))
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
## [0.0.9](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.8...v0.0.9) (2019-05-09)
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
## [0.0.8](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.7...v0.0.8) (2019-05-08)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
### Bug Fixes
|
|
389
|
+
|
|
390
|
+
* bug ([4ee7caf](https://github.com/warcraft-iii/warcraft-vscode/commit/4ee7caf))
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## [0.0.7](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.6...v0.0.7) (2019-04-25)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
### Bug Fixes
|
|
398
|
+
|
|
399
|
+
* pack map ([ab3f904](https://github.com/warcraft-iii/warcraft-vscode/commit/ab3f904))
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
## [0.0.6](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.5...v0.0.6) (2019-04-25)
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### Features
|
|
407
|
+
|
|
408
|
+
* added progress notification ([39ca068](https://github.com/warcraft-iii/warcraft-vscode/commit/39ca068))
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
## [0.0.5](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.4...v0.0.5) (2019-04-25)
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
## [0.0.4](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.3...v0.0.4) (2019-04-25)
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
## [0.0.3](https://github.com/warcraft-iii/warcraft-vscode/compare/v0.0.2...v0.0.3) (2019-04-24)
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### Features
|
|
424
|
+
|
|
425
|
+
* Added command "Add Library" ([557019b](https://github.com/warcraft-iii/warcraft-vscode/commit/557019b))
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
## 0.0.2 (2019-04-24)
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Dengzhun Lu <tdaddon@163.com> (https://dengsir.github.io/)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# warcraft-vscode
|
|
2
|
+
|
|
3
|
+
This extension is a Warcraft III map development tool set of Lua.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
[](https://github.com/warcraft-iii/warcraft-vscode/actions/workflows/node.js.yml)
|
|
8
|
+
[](https://discord.gg/26N8ycP)
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- Compile script
|
|
13
|
+
- Pack map
|
|
14
|
+
- Run map
|
|
15
|
+
- Open world editor
|
|
16
|
+
- Add libraries
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
|
|
20
|
+
- **Warcraft: Create Project**
|
|
21
|
+
- Create a map project for Warcraft III Reforge
|
|
22
|
+
- **Warcraft: Create Classic Project**
|
|
23
|
+
- Create a map project for Warcraft III Classic
|
|
24
|
+
- **Warcraft: Clean Project**
|
|
25
|
+
- Remove the `.build` folder
|
|
26
|
+
- **Warcraft: Add Library**
|
|
27
|
+
- Add a library for project
|
|
28
|
+
- **Warcraft: Compile Script**
|
|
29
|
+
- Compile script
|
|
30
|
+
- **Warcraft: Pack Map**
|
|
31
|
+
- Compile script
|
|
32
|
+
- Pack map to w3x
|
|
33
|
+
- **Warcraft: Run Map**
|
|
34
|
+
- Compile script
|
|
35
|
+
- Pack map to w3x
|
|
36
|
+
- Run map in **Warcraft III**
|
|
37
|
+
- **Warcraft: Open World Editor**
|
|
38
|
+
- Open the map folder with **World Editor**
|
|
39
|
+
- **Warcraft: Toggle Configuration**
|
|
40
|
+
- Toggle Configuration between with debug and release
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
1. Press `F1` in vscode
|
|
45
|
+
2. Input `warcraft create` and Press `Enter` to create a Warcraft III map project
|
|
46
|
+
3. Open the project folder and execute the Commands of this extension
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
> The extension packages all Lua files into single file, **Debug** and **Release** behave differently, **Debug** packages all Lua files in **src** folder, but **Release** automatically analyzes dependencies based on the functions `require` `dofile` `loadfile`, so if you call these functions with **NON STRING LITERALS**, you must explicitly add the list of Lua files to the `warcraft.json`
|
|
51
|
+
|
|
52
|
+
#### warcraft.json
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mapdir": "map.w3x",
|
|
57
|
+
"files": ["main.lua"],
|
|
58
|
+
"jassfile": "",
|
|
59
|
+
"lua.package.path": ["./lib/?.lua", "./lib/?/init.lua"]
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
```
|
|
63
|
+
jassfile - *CLASSIC* Specify the path to the war3map.j file or use it in the map file.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### Lua API
|
|
67
|
+
|
|
68
|
+
> The extension implements some APIs in Lua that removed from Warcraft III, These functions are used in the same way as Lua
|
|
69
|
+
|
|
70
|
+
- [require](https://www.lua.org/manual/5.3/manual.html#pdf-require)
|
|
71
|
+
- [dofile](https://www.lua.org/manual/5.3/manual.html#pdf-dofile)
|
|
72
|
+
- [loadfile](https://www.lua.org/manual/5.3/manual.html#pdf-loadfile)
|
|
73
|
+
|
|
74
|
+
> And added some functions for debug
|
|
75
|
+
|
|
76
|
+
- seterrorhandler(func)
|
|
77
|
+
- geterrorhandler()
|
|
78
|
+
|
|
79
|
+
#### Macros
|
|
80
|
+
|
|
81
|
+
> There are some macros in lua file.
|
|
82
|
+
|
|
83
|
+
```lua
|
|
84
|
+
---Only compile into debug mode
|
|
85
|
+
--@debug@
|
|
86
|
+
Debug()
|
|
87
|
+
--@end-debug@
|
|
88
|
+
|
|
89
|
+
---Only compile into non debug mode
|
|
90
|
+
--@non-debug@
|
|
91
|
+
NotDebug()
|
|
92
|
+
--@end-non-debug@
|
|
93
|
+
|
|
94
|
+
---Not compile
|
|
95
|
+
--@remove@
|
|
96
|
+
OnlyInEditor()
|
|
97
|
+
--@end-remove@
|
|
98
|
+
|
|
99
|
+
---Only Compile into Classic
|
|
100
|
+
--@classic@
|
|
101
|
+
Classic()
|
|
102
|
+
--@end-classic@
|
|
103
|
+
|
|
104
|
+
--@non-reforge@
|
|
105
|
+
Classic()
|
|
106
|
+
--@end-non-reforge@
|
|
107
|
+
|
|
108
|
+
---Only Compile into Reforge
|
|
109
|
+
--@reforge@
|
|
110
|
+
Reforge()
|
|
111
|
+
--@end-reforge
|
|
112
|
+
|
|
113
|
+
--@non-classic@
|
|
114
|
+
Reforge()
|
|
115
|
+
--@end-non-classic@
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Pack
|
|
119
|
+
|
|
120
|
+
> The extension packages all files in folder named **imports** and **src/lib/\*/imports** into the map, In Configuration Release, packages the folder named **imports.release**, In Configuration Debug, it's **imports.debug**
|
|
121
|
+
|
|
122
|
+
## Libraries
|
|
123
|
+
|
|
124
|
+
- [stdlib](https://github.com/warcraft-iii/lib-stdlib)
|
|
125
|
+
- [console](https://github.com/warcraft-iii/lib-console)
|
|
126
|
+
|
|
127
|
+
## Known Issues
|
|
128
|
+
|
|
129
|
+
## TODOs
|
|
130
|
+
|
|
131
|
+
- ~For Release~
|
|
132
|
+
- Use other github users or organizations to add libraries
|
|
133
|
+
- Support compile time
|
|
134
|
+
- Support for macOS
|
|
135
|
+
|
|
136
|
+
**Enjoy!**
|
|
Binary file
|
|
Binary file
|
package/images/icon.png
ADDED
|
Binary file
|