unity_scene_repacker 2.0.0__py3-none-win32.whl
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.
|
Binary file
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: unity-scene-repacker
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Topic :: Games/Entertainment
|
|
6
|
+
License-File: LICENSE.md
|
|
7
|
+
Summary: Repack unity level files into filtered asset bundles you can load at runtime
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
11
|
+
Project-URL: Source Code, https://github.com/jakobhellermann/unity-scene-repacker
|
|
12
|
+
|
|
13
|
+
# unity-scene-repacker
|
|
14
|
+
|
|
15
|
+
When modding a unity game, you often want to `Instantiate` objects from a scene that isn't loaded.
|
|
16
|
+
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
|
+
This works, but is slow and memory intensive.
|
|
18
|
+
|
|
19
|
+
This project lets you read scenes from the distributed game, take only what you need, and package those objects into an [AssetBundle](https://docs.unity3d.com/Manual/AssetBundlesIntro.html) that you can load at runtime.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
# compile from source
|
|
25
|
+
cargo install --git https://github.com/jakobhellermann/unity-scene-repacker --branch rewrite
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
objects.json
|
|
32
|
+
{
|
|
33
|
+
"A6_S3_Tutorial_And_SecretBoss_Remake": [
|
|
34
|
+
"A6_S3/Room/Prefab/Enemy/StealthGameMonster_RunningHog (3)",
|
|
35
|
+
"A6_S3/Room/Prefab/Enemy_2/\u5f29\u83c1\u82f1"
|
|
36
|
+
],
|
|
37
|
+
"A0_S7_CaveReturned": [
|
|
38
|
+
"A0_S7/Room/StealthGameMonster_TutorialDummyNonAttack"
|
|
39
|
+
],
|
|
40
|
+
"AG_SG1": [
|
|
41
|
+
"AG_SG1/Room/Shield Crawler Spawner \u4e1f\u91d1\u96fb\u87f2"
|
|
42
|
+
],
|
|
43
|
+
...
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
unity-scene-repacker
|
|
49
|
+
--steam-game 'Hollow Knight'
|
|
50
|
+
--objects objects.json \
|
|
51
|
+
--output mybundle.unity3d
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Usage: unity-scene-repacker [OPTIONS] --objects <OBJECTS> <--game-dir <GAME_DIR>|--steam-game <STEAM_GAME>>
|
|
57
|
+
|
|
58
|
+
Options:
|
|
59
|
+
--game-dir <GAME_DIR>
|
|
60
|
+
Directory where the levels files are, e.g. steam/Hollow_Knight/hollow_knight_Data1
|
|
61
|
+
|
|
62
|
+
--steam-game <STEAM_GAME>
|
|
63
|
+
App ID or search term for the steam game to detect
|
|
64
|
+
|
|
65
|
+
--objects <OBJECTS>
|
|
66
|
+
Path to JSON file, containing a map of scene name to a list of gameobject paths to include
|
|
67
|
+
|
|
68
|
+
{
|
|
69
|
+
"Fungus1_12": [
|
|
70
|
+
"simple_grass",
|
|
71
|
+
"green_grass_2",
|
|
72
|
+
],
|
|
73
|
+
"White_Palace_01": [
|
|
74
|
+
"WhiteBench",
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
--disable
|
|
80
|
+
When true, all gameobjects in the scene will start out disabled
|
|
81
|
+
|
|
82
|
+
--compression <COMPRESSION>
|
|
83
|
+
Compression level to apply
|
|
84
|
+
|
|
85
|
+
[default: none]
|
|
86
|
+
|
|
87
|
+
Possible values:
|
|
88
|
+
- none
|
|
89
|
+
- lzma
|
|
90
|
+
- lz4
|
|
91
|
+
- lz4hc: Best compression at the cost of speed
|
|
92
|
+
|
|
93
|
+
-o, --output <OUTPUT>
|
|
94
|
+
[default: out.unity3d]
|
|
95
|
+
|
|
96
|
+
-h, --help
|
|
97
|
+
Print help (see a summary with '-h')
|
|
98
|
+
|
|
99
|
+
-V, --version
|
|
100
|
+
Print version
|
|
101
|
+
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
unity_scene_repacker-2.0.0.data/scripts/unity-scene-repacker.exe,sha256=Kez5rBquAjGRTpOzByhthm9fkNH6084yHj7QUtcmeF0,1916416
|
|
2
|
+
unity_scene_repacker-2.0.0.dist-info/METADATA,sha256=0fV7bBhzEWZcvvCpwwhxl9-FjUqJEciG_1exWWRQw0c,2949
|
|
3
|
+
unity_scene_repacker-2.0.0.dist-info/WHEEL,sha256=FArPuHHFtubKfusilx8aMueDzgUxiLHbmefWGH6YgXQ,89
|
|
4
|
+
unity_scene_repacker-2.0.0.dist-info/licenses/LICENSE.md,sha256=Ot3rOmrwyANlhTnKBTQU7SCz4vs77PnOksejXDVpgYg,1094
|
|
5
|
+
unity_scene_repacker-2.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Jakob Hellermann
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|