unity_scene_repacker 2.0.0__tar.gz → 2.1.0__tar.gz
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.
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/Cargo.lock +58 -242
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/Cargo.toml +3 -2
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/PKG-INFO +26 -21
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/README.md +25 -21
- unity_scene_repacker-2.1.0/docs/demo-cast.svg +1 -0
- unity_scene_repacker-2.1.0/docs/demo.cast +121 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/justfile +5 -4
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/objects/ns-bosses.json +0 -3
- unity_scene_repacker-2.1.0/resources/lz4.tpk +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/main.rs +186 -78
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/unity/types.rs +14 -2
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/utils.rs +18 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/.github/workflows/release.yml +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/.gitignore +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/LICENSE.md +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/build.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/objects/hk-enemies.jsonc +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/objects/hk-palecourt.json +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/objects/hk-simple.json +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/objects/ns-monsters.json +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/pyproject.toml +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/rustfmt.toml +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/lib.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/scene_lookup.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/trace_pptr.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/typetree_cache.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/typetree_generator_api.rs +0 -0
- {unity_scene_repacker-2.0.0 → unity_scene_repacker-2.1.0}/src/unity/mod.rs +0 -0
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
# It is not intended for manual editing.
|
|
3
3
|
version = 4
|
|
4
4
|
|
|
5
|
-
[[package]]
|
|
6
|
-
name = "adler32"
|
|
7
|
-
version = "1.2.0"
|
|
8
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
|
|
10
|
-
|
|
11
5
|
[[package]]
|
|
12
6
|
name = "aes"
|
|
13
7
|
version = "0.8.4"
|
|
@@ -19,39 +13,6 @@ dependencies = [
|
|
|
19
13
|
"cpufeatures",
|
|
20
14
|
]
|
|
21
15
|
|
|
22
|
-
[[package]]
|
|
23
|
-
name = "ahash"
|
|
24
|
-
version = "0.8.12"
|
|
25
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
26
|
-
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
|
|
27
|
-
dependencies = [
|
|
28
|
-
"cfg-if",
|
|
29
|
-
"once_cell",
|
|
30
|
-
"version_check",
|
|
31
|
-
"zerocopy",
|
|
32
|
-
]
|
|
33
|
-
|
|
34
|
-
[[package]]
|
|
35
|
-
name = "alloc-no-stdlib"
|
|
36
|
-
version = "2.0.4"
|
|
37
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
38
|
-
checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
|
|
39
|
-
|
|
40
|
-
[[package]]
|
|
41
|
-
name = "alloc-stdlib"
|
|
42
|
-
version = "0.2.2"
|
|
43
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
-
checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
|
|
45
|
-
dependencies = [
|
|
46
|
-
"alloc-no-stdlib",
|
|
47
|
-
]
|
|
48
|
-
|
|
49
|
-
[[package]]
|
|
50
|
-
name = "allocator-api2"
|
|
51
|
-
version = "0.2.21"
|
|
52
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
-
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
|
|
54
|
-
|
|
55
16
|
[[package]]
|
|
56
17
|
name = "anstream"
|
|
57
18
|
version = "0.6.19"
|
|
@@ -132,27 +93,6 @@ dependencies = [
|
|
|
132
93
|
"generic-array",
|
|
133
94
|
]
|
|
134
95
|
|
|
135
|
-
[[package]]
|
|
136
|
-
name = "brotli"
|
|
137
|
-
version = "8.0.1"
|
|
138
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
139
|
-
checksum = "9991eea70ea4f293524138648e41ee89b0b2b12ddef3b255effa43c8056e0e0d"
|
|
140
|
-
dependencies = [
|
|
141
|
-
"alloc-no-stdlib",
|
|
142
|
-
"alloc-stdlib",
|
|
143
|
-
"brotli-decompressor",
|
|
144
|
-
]
|
|
145
|
-
|
|
146
|
-
[[package]]
|
|
147
|
-
name = "brotli-decompressor"
|
|
148
|
-
version = "5.0.0"
|
|
149
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
-
checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03"
|
|
151
|
-
dependencies = [
|
|
152
|
-
"alloc-no-stdlib",
|
|
153
|
-
"alloc-stdlib",
|
|
154
|
-
]
|
|
155
|
-
|
|
156
96
|
[[package]]
|
|
157
97
|
name = "byteorder"
|
|
158
98
|
version = "1.5.0"
|
|
@@ -215,6 +155,18 @@ dependencies = [
|
|
|
215
155
|
"strsim",
|
|
216
156
|
]
|
|
217
157
|
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "clap_complete"
|
|
160
|
+
version = "4.5.54"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "aad5b1b4de04fead402672b48897030eec1f3bfe1550776322f59f6d6e6a5677"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"clap",
|
|
165
|
+
"clap_lex",
|
|
166
|
+
"is_executable",
|
|
167
|
+
"shlex",
|
|
168
|
+
]
|
|
169
|
+
|
|
218
170
|
[[package]]
|
|
219
171
|
name = "clap_derive"
|
|
220
172
|
version = "4.5.40"
|
|
@@ -241,15 +193,6 @@ version = "1.0.4"
|
|
|
241
193
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
194
|
checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
243
195
|
|
|
244
|
-
[[package]]
|
|
245
|
-
name = "core2"
|
|
246
|
-
version = "0.4.0"
|
|
247
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
-
checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505"
|
|
249
|
-
dependencies = [
|
|
250
|
-
"memchr",
|
|
251
|
-
]
|
|
252
|
-
|
|
253
196
|
[[package]]
|
|
254
197
|
name = "cpufeatures"
|
|
255
198
|
version = "0.2.17"
|
|
@@ -274,15 +217,6 @@ version = "2.4.0"
|
|
|
274
217
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
275
218
|
checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
|
|
276
219
|
|
|
277
|
-
[[package]]
|
|
278
|
-
name = "crc32fast"
|
|
279
|
-
version = "1.4.2"
|
|
280
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
-
checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
|
|
282
|
-
dependencies = [
|
|
283
|
-
"cfg-if",
|
|
284
|
-
]
|
|
285
|
-
|
|
286
220
|
[[package]]
|
|
287
221
|
name = "crypto-common"
|
|
288
222
|
version = "0.1.6"
|
|
@@ -293,18 +227,6 @@ dependencies = [
|
|
|
293
227
|
"typenum",
|
|
294
228
|
]
|
|
295
229
|
|
|
296
|
-
[[package]]
|
|
297
|
-
name = "dary_heap"
|
|
298
|
-
version = "0.3.7"
|
|
299
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
-
checksum = "04d2cd9c18b9f454ed67da600630b021a8a80bf33f8c95896ab33aaf1c26b728"
|
|
301
|
-
|
|
302
|
-
[[package]]
|
|
303
|
-
name = "diff"
|
|
304
|
-
version = "0.1.13"
|
|
305
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
306
|
-
checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
|
307
|
-
|
|
308
230
|
[[package]]
|
|
309
231
|
name = "digest"
|
|
310
232
|
version = "0.10.7"
|
|
@@ -340,16 +262,6 @@ dependencies = [
|
|
|
340
262
|
"version_check",
|
|
341
263
|
]
|
|
342
264
|
|
|
343
|
-
[[package]]
|
|
344
|
-
name = "hashbrown"
|
|
345
|
-
version = "0.14.5"
|
|
346
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
347
|
-
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
|
348
|
-
dependencies = [
|
|
349
|
-
"ahash",
|
|
350
|
-
"allocator-api2",
|
|
351
|
-
]
|
|
352
|
-
|
|
353
265
|
[[package]]
|
|
354
266
|
name = "hashbrown"
|
|
355
267
|
version = "0.15.4"
|
|
@@ -378,7 +290,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
378
290
|
checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e"
|
|
379
291
|
dependencies = [
|
|
380
292
|
"equivalent",
|
|
381
|
-
"hashbrown
|
|
293
|
+
"hashbrown",
|
|
382
294
|
"serde",
|
|
383
295
|
]
|
|
384
296
|
|
|
@@ -393,16 +305,19 @@ dependencies = [
|
|
|
393
305
|
]
|
|
394
306
|
|
|
395
307
|
[[package]]
|
|
396
|
-
name = "
|
|
397
|
-
version = "1.
|
|
308
|
+
name = "is_executable"
|
|
309
|
+
version = "1.0.4"
|
|
398
310
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
399
|
-
checksum = "
|
|
311
|
+
checksum = "d4a1b5bad6f9072935961dfbf1cced2f3d129963d091b6f69f007fe04e758ae2"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"winapi",
|
|
314
|
+
]
|
|
400
315
|
|
|
401
316
|
[[package]]
|
|
402
|
-
name = "
|
|
403
|
-
version = "1.
|
|
317
|
+
name = "is_terminal_polyfill"
|
|
318
|
+
version = "1.70.1"
|
|
404
319
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
405
|
-
checksum = "
|
|
320
|
+
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
|
|
406
321
|
|
|
407
322
|
[[package]]
|
|
408
323
|
name = "json5"
|
|
@@ -442,30 +357,6 @@ version = "0.2.174"
|
|
|
442
357
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
358
|
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
|
|
444
359
|
|
|
445
|
-
[[package]]
|
|
446
|
-
name = "libflate"
|
|
447
|
-
version = "2.1.0"
|
|
448
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
449
|
-
checksum = "45d9dfdc14ea4ef0900c1cddbc8dcd553fbaacd8a4a282cf4018ae9dd04fb21e"
|
|
450
|
-
dependencies = [
|
|
451
|
-
"adler32",
|
|
452
|
-
"core2",
|
|
453
|
-
"crc32fast",
|
|
454
|
-
"dary_heap",
|
|
455
|
-
"libflate_lz77",
|
|
456
|
-
]
|
|
457
|
-
|
|
458
|
-
[[package]]
|
|
459
|
-
name = "libflate_lz77"
|
|
460
|
-
version = "2.1.0"
|
|
461
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
462
|
-
checksum = "e6e0d73b369f386f1c44abd9c570d5318f55ccde816ff4b562fa452e5182863d"
|
|
463
|
-
dependencies = [
|
|
464
|
-
"core2",
|
|
465
|
-
"hashbrown 0.14.5",
|
|
466
|
-
"rle-decode-fast",
|
|
467
|
-
]
|
|
468
|
-
|
|
469
360
|
[[package]]
|
|
470
361
|
name = "lz4"
|
|
471
362
|
version = "1.28.1"
|
|
@@ -518,31 +409,25 @@ dependencies = [
|
|
|
518
409
|
|
|
519
410
|
[[package]]
|
|
520
411
|
name = "num_enum"
|
|
521
|
-
version = "0.7.
|
|
412
|
+
version = "0.7.4"
|
|
522
413
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
523
|
-
checksum = "
|
|
414
|
+
checksum = "a973b4e44ce6cad84ce69d797acf9a044532e4184c4f267913d1b546a0727b7a"
|
|
524
415
|
dependencies = [
|
|
525
416
|
"num_enum_derive",
|
|
417
|
+
"rustversion",
|
|
526
418
|
]
|
|
527
419
|
|
|
528
420
|
[[package]]
|
|
529
421
|
name = "num_enum_derive"
|
|
530
|
-
version = "0.7.
|
|
422
|
+
version = "0.7.4"
|
|
531
423
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
532
|
-
checksum = "
|
|
424
|
+
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
|
|
533
425
|
dependencies = [
|
|
534
|
-
"proc-macro-crate",
|
|
535
426
|
"proc-macro2",
|
|
536
427
|
"quote",
|
|
537
428
|
"syn",
|
|
538
429
|
]
|
|
539
430
|
|
|
540
|
-
[[package]]
|
|
541
|
-
name = "once_cell"
|
|
542
|
-
version = "1.21.3"
|
|
543
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
-
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
545
|
-
|
|
546
431
|
[[package]]
|
|
547
432
|
name = "once_cell_polyfill"
|
|
548
433
|
version = "1.70.1"
|
|
@@ -555,12 +440,6 @@ version = "1.5.15"
|
|
|
555
440
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
556
441
|
checksum = "8fecab3723493c7851f292cb060f3ee1c42f19b8d749345d0d7eaf3fd19aa62d"
|
|
557
442
|
|
|
558
|
-
[[package]]
|
|
559
|
-
name = "paste"
|
|
560
|
-
version = "1.0.15"
|
|
561
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
562
|
-
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
|
563
|
-
|
|
564
443
|
[[package]]
|
|
565
444
|
name = "pest"
|
|
566
445
|
version = "2.8.1"
|
|
@@ -605,25 +484,6 @@ dependencies = [
|
|
|
605
484
|
"sha2",
|
|
606
485
|
]
|
|
607
486
|
|
|
608
|
-
[[package]]
|
|
609
|
-
name = "pretty_assertions"
|
|
610
|
-
version = "1.4.1"
|
|
611
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
612
|
-
checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d"
|
|
613
|
-
dependencies = [
|
|
614
|
-
"diff",
|
|
615
|
-
"yansi",
|
|
616
|
-
]
|
|
617
|
-
|
|
618
|
-
[[package]]
|
|
619
|
-
name = "proc-macro-crate"
|
|
620
|
-
version = "3.3.0"
|
|
621
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
622
|
-
checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
|
|
623
|
-
dependencies = [
|
|
624
|
-
"toml_edit",
|
|
625
|
-
]
|
|
626
|
-
|
|
627
487
|
[[package]]
|
|
628
488
|
name = "proc-macro2"
|
|
629
489
|
version = "1.0.95"
|
|
@@ -656,40 +516,35 @@ dependencies = [
|
|
|
656
516
|
[[package]]
|
|
657
517
|
name = "rabex"
|
|
658
518
|
version = "0.0.3"
|
|
659
|
-
source = "git+https://github.com/jakobhellermann/RustyAssetBundleEXtractor?branch=all#
|
|
519
|
+
source = "git+https://github.com/jakobhellermann/RustyAssetBundleEXtractor?branch=all#21860af76e5b730b3dfe3986520d82336912194d"
|
|
660
520
|
dependencies = [
|
|
661
521
|
"aes",
|
|
662
522
|
"anyhow",
|
|
663
523
|
"bitflags",
|
|
664
|
-
"brotli",
|
|
665
524
|
"byteorder",
|
|
666
525
|
"cbc",
|
|
667
526
|
"elsa",
|
|
668
|
-
"libflate",
|
|
669
527
|
"lz4",
|
|
670
528
|
"lz4_flex",
|
|
671
529
|
"lzma-rs",
|
|
672
530
|
"num_enum",
|
|
673
|
-
"paste",
|
|
674
|
-
"pretty_assertions",
|
|
675
531
|
"rustc-hash",
|
|
676
532
|
"serde",
|
|
677
533
|
"serde_derive",
|
|
678
|
-
"serde_path_to_error",
|
|
679
534
|
]
|
|
680
535
|
|
|
681
|
-
[[package]]
|
|
682
|
-
name = "rle-decode-fast"
|
|
683
|
-
version = "1.0.3"
|
|
684
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
685
|
-
checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
|
|
686
|
-
|
|
687
536
|
[[package]]
|
|
688
537
|
name = "rustc-hash"
|
|
689
538
|
version = "2.1.1"
|
|
690
539
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
691
540
|
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
|
|
692
541
|
|
|
542
|
+
[[package]]
|
|
543
|
+
name = "rustversion"
|
|
544
|
+
version = "1.0.21"
|
|
545
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
546
|
+
checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
|
|
547
|
+
|
|
693
548
|
[[package]]
|
|
694
549
|
name = "serde"
|
|
695
550
|
version = "1.0.219"
|
|
@@ -710,16 +565,6 @@ dependencies = [
|
|
|
710
565
|
"syn",
|
|
711
566
|
]
|
|
712
567
|
|
|
713
|
-
[[package]]
|
|
714
|
-
name = "serde_path_to_error"
|
|
715
|
-
version = "0.1.17"
|
|
716
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
717
|
-
checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a"
|
|
718
|
-
dependencies = [
|
|
719
|
-
"itoa",
|
|
720
|
-
"serde",
|
|
721
|
-
]
|
|
722
|
-
|
|
723
568
|
[[package]]
|
|
724
569
|
name = "sha2"
|
|
725
570
|
version = "0.10.9"
|
|
@@ -814,23 +659,6 @@ dependencies = [
|
|
|
814
659
|
"syn",
|
|
815
660
|
]
|
|
816
661
|
|
|
817
|
-
[[package]]
|
|
818
|
-
name = "toml_datetime"
|
|
819
|
-
version = "0.6.11"
|
|
820
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
821
|
-
checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
|
|
822
|
-
|
|
823
|
-
[[package]]
|
|
824
|
-
name = "toml_edit"
|
|
825
|
-
version = "0.22.27"
|
|
826
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
827
|
-
checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
|
|
828
|
-
dependencies = [
|
|
829
|
-
"indexmap",
|
|
830
|
-
"toml_datetime",
|
|
831
|
-
"winnow",
|
|
832
|
-
]
|
|
833
|
-
|
|
834
662
|
[[package]]
|
|
835
663
|
name = "typenum"
|
|
836
664
|
version = "1.18.0"
|
|
@@ -857,11 +685,12 @@ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
|
857
685
|
|
|
858
686
|
[[package]]
|
|
859
687
|
name = "unity-scene-repacker"
|
|
860
|
-
version = "2.
|
|
688
|
+
version = "2.1.0"
|
|
861
689
|
dependencies = [
|
|
862
690
|
"anyhow",
|
|
863
691
|
"byteorder",
|
|
864
692
|
"clap",
|
|
693
|
+
"clap_complete",
|
|
865
694
|
"elsa",
|
|
866
695
|
"indexmap",
|
|
867
696
|
"json5",
|
|
@@ -886,6 +715,28 @@ version = "0.9.5"
|
|
|
886
715
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
887
716
|
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
888
717
|
|
|
718
|
+
[[package]]
|
|
719
|
+
name = "winapi"
|
|
720
|
+
version = "0.3.9"
|
|
721
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
722
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
723
|
+
dependencies = [
|
|
724
|
+
"winapi-i686-pc-windows-gnu",
|
|
725
|
+
"winapi-x86_64-pc-windows-gnu",
|
|
726
|
+
]
|
|
727
|
+
|
|
728
|
+
[[package]]
|
|
729
|
+
name = "winapi-i686-pc-windows-gnu"
|
|
730
|
+
version = "0.4.0"
|
|
731
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
732
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
733
|
+
|
|
734
|
+
[[package]]
|
|
735
|
+
name = "winapi-x86_64-pc-windows-gnu"
|
|
736
|
+
version = "0.4.0"
|
|
737
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
738
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
739
|
+
|
|
889
740
|
[[package]]
|
|
890
741
|
name = "windows-sys"
|
|
891
742
|
version = "0.59.0"
|
|
@@ -959,15 +810,6 @@ version = "0.52.6"
|
|
|
959
810
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
960
811
|
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
961
812
|
|
|
962
|
-
[[package]]
|
|
963
|
-
name = "winnow"
|
|
964
|
-
version = "0.7.11"
|
|
965
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
966
|
-
checksum = "74c7b26e3480b707944fc872477815d29a8e429d2f93a1ce000f5fa84a15cbcd"
|
|
967
|
-
dependencies = [
|
|
968
|
-
"memchr",
|
|
969
|
-
]
|
|
970
|
-
|
|
971
813
|
[[package]]
|
|
972
814
|
name = "winreg"
|
|
973
815
|
version = "0.55.0"
|
|
@@ -977,29 +819,3 @@ dependencies = [
|
|
|
977
819
|
"cfg-if",
|
|
978
820
|
"windows-sys",
|
|
979
821
|
]
|
|
980
|
-
|
|
981
|
-
[[package]]
|
|
982
|
-
name = "yansi"
|
|
983
|
-
version = "1.0.1"
|
|
984
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
985
|
-
checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
|
|
986
|
-
|
|
987
|
-
[[package]]
|
|
988
|
-
name = "zerocopy"
|
|
989
|
-
version = "0.8.26"
|
|
990
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
991
|
-
checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
|
|
992
|
-
dependencies = [
|
|
993
|
-
"zerocopy-derive",
|
|
994
|
-
]
|
|
995
|
-
|
|
996
|
-
[[package]]
|
|
997
|
-
name = "zerocopy-derive"
|
|
998
|
-
version = "0.8.26"
|
|
999
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1000
|
-
checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
|
|
1001
|
-
dependencies = [
|
|
1002
|
-
"proc-macro2",
|
|
1003
|
-
"quote",
|
|
1004
|
-
"syn",
|
|
1005
|
-
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "unity-scene-repacker"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.0"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
repository = "https://github.com/jakobhellermann/unity-scene-repacker"
|
|
@@ -10,12 +10,13 @@ description = "Repack unity level files into filtered asset bundles you can load
|
|
|
10
10
|
anyhow = "1.0"
|
|
11
11
|
byteorder = "1.5"
|
|
12
12
|
clap = { version = "4.5", features = ["derive", "unstable-markdown"] }
|
|
13
|
+
clap_complete = { version = "4.5.54", features = ["unstable-dynamic"] }
|
|
13
14
|
elsa = "1.11"
|
|
14
15
|
indexmap = { version = "2.9", features = ["serde"] }
|
|
15
16
|
json5 = "0.4"
|
|
16
17
|
memmap2 = "0.9"
|
|
17
18
|
rabex = { git = "https://github.com/jakobhellermann/RustyAssetBundleEXtractor", branch = "all", features = [
|
|
18
|
-
"serde_path_to_error",
|
|
19
|
+
# "serde_path_to_error", nicer errors for debugging, at a 2x speed cost
|
|
19
20
|
] }
|
|
20
21
|
rustc-hash = "2.1"
|
|
21
22
|
paris = { version = "1.5", features = ["macros", "no_logger"] }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unity-scene-repacker
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Topic :: Games/Entertainment
|
|
6
6
|
License-File: LICENSE.md
|
|
@@ -12,6 +12,8 @@ Project-URL: Source Code, https://github.com/jakobhellermann/unity-scene-repacke
|
|
|
12
12
|
|
|
13
13
|
# unity-scene-repacker
|
|
14
14
|
|
|
15
|
+

|
|
16
|
+
|
|
15
17
|
When modding a unity game, you often want to `Instantiate` objects from a scene that isn't loaded.
|
|
16
18
|
One solution for this is to load all the scenes you're interested in at startup, copy the gameobjects somewhere and unload the scene.
|
|
17
19
|
This works, but is slow and memory intensive.
|
|
@@ -21,31 +23,31 @@ This project lets you read scenes from the distributed game, take only what you
|
|
|
21
23
|
## Installation
|
|
22
24
|
|
|
23
25
|
```sh
|
|
24
|
-
#
|
|
25
|
-
cargo install --git https://github.com/jakobhellermann/unity-scene-repacker
|
|
26
|
+
uv tool install unity-scene-repacker # if you have uv installed
|
|
27
|
+
cargo install --git https://github.com/jakobhellermann/unity-scene-repacker # to compile from source
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
## Usage
|
|
29
31
|
|
|
30
|
-
```
|
|
32
|
+
```jsonc
|
|
31
33
|
objects.json
|
|
32
34
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
"Fungus1_12": [
|
|
36
|
+
"simple_grass",
|
|
37
|
+
"green_grass_2",
|
|
38
|
+
"green_grass_3",
|
|
39
|
+
"green_grass_1 (1)"
|
|
40
|
+
],
|
|
41
|
+
"White_Palace_01": [
|
|
42
|
+
"WhiteBench",
|
|
43
|
+
"White_ Spikes"
|
|
44
|
+
],
|
|
45
|
+
...
|
|
44
46
|
}
|
|
45
47
|
```
|
|
46
48
|
|
|
47
49
|
```sh
|
|
48
|
-
unity-scene-repacker
|
|
50
|
+
unity-scene-repacker
|
|
49
51
|
--steam-game 'Hollow Knight'
|
|
50
52
|
--objects objects.json \
|
|
51
53
|
--output mybundle.unity3d
|
|
@@ -64,7 +66,7 @@ Options:
|
|
|
64
66
|
|
|
65
67
|
--objects <OBJECTS>
|
|
66
68
|
Path to JSON file, containing a map of scene name to a list of gameobject paths to include
|
|
67
|
-
|
|
69
|
+
|
|
68
70
|
{
|
|
69
71
|
"Fungus1_12": [
|
|
70
72
|
"simple_grass",
|
|
@@ -74,28 +76,31 @@ Options:
|
|
|
74
76
|
"WhiteBench",
|
|
75
77
|
]
|
|
76
78
|
}
|
|
77
|
-
|
|
79
|
+
|
|
78
80
|
|
|
79
81
|
--disable
|
|
80
82
|
When true, all gameobjects in the scene will start out disabled
|
|
81
83
|
|
|
82
84
|
--compression <COMPRESSION>
|
|
83
85
|
Compression level to apply
|
|
84
|
-
|
|
85
|
-
[default:
|
|
86
|
+
|
|
87
|
+
[default: lzma]
|
|
86
88
|
|
|
87
89
|
Possible values:
|
|
88
90
|
- none
|
|
89
91
|
- lzma
|
|
90
|
-
- lz4
|
|
91
92
|
- lz4hc: Best compression at the cost of speed
|
|
92
93
|
|
|
93
94
|
-o, --output <OUTPUT>
|
|
94
95
|
[default: out.unity3d]
|
|
95
96
|
|
|
97
|
+
--bundle-name <BUNDLE_NAME>
|
|
98
|
+
Name to give the assetbundle. Should be unique for your game
|
|
99
|
+
|
|
96
100
|
-h, --help
|
|
97
101
|
Print help (see a summary with '-h')
|
|
98
102
|
|
|
99
103
|
-V, --version
|
|
100
104
|
Print version
|
|
101
105
|
```
|
|
106
|
+
|