Xiaotang27 发表于 2022-9-16 08:47:24

资源包创建器出现错误

本帖最后由 Xiaotang27 于 2022-9-19 16:35 编辑

我在资源包创建器上做资源包,打算添加建模部件,但是一点那个加号,Minecraft就崩溃……
下面是日志(HMCL不能导出PCL那样的zip包):
---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 2022/9/16 下午1:57
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_630.method_2851(float, float, float)" because "this.modelPart" is null
      at mtr.mappings.ModelMapper.render(ModelMapper.java:83)
      at mtr.model.ModelTrainBase.renderOnce(ModelTrainBase.java:77)
      at mtr.client.DynamicTrainModel.lambda$render$4(DynamicTrainModel.java:173)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at mtr.client.DynamicTrainModel.lambda$render$5(DynamicTrainModel.java:167)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at mtr.client.DynamicTrainModel.render(DynamicTrainModel.java:87)
      at mtr.model.ModelTrainBase.render(ModelTrainBase.java:49)
      at mtr.client.ResourcePackCreatorProperties.render(ResourcePackCreatorProperties.java:215)
      at mtr.screen.ResourcePackCreatorScreen.render(ResourcePackCreatorScreen.java:495)
      at net.minecraft.class_757.handler$zjb000$renderLevel(class_757.java:2010)
      at net.minecraft.class_757.method_3188(class_757.java:1063)
      at net.minecraft.class_757.method_3192(class_757.java:813)
      at net.minecraft.class_310.method_1523(class_310.java:1122)
      at net.minecraft.class_310.method_1514(class_310.java:737)
      at net.minecraft.client.main.Main.main(Main.java:236)
      at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
      at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
      at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
      at mtr.mappings.ModelMapper.render(ModelMapper.java:83)
      at mtr.model.ModelTrainBase.renderOnce(ModelTrainBase.java:77)
      at mtr.client.DynamicTrainModel.lambda$render$4(DynamicTrainModel.java:173)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at mtr.client.DynamicTrainModel.lambda$render$5(DynamicTrainModel.java:167)
      at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      at mtr.client.DynamicTrainModel.render(DynamicTrainModel.java:87)
      at mtr.model.ModelTrainBase.render(ModelTrainBase.java:49)
      at mtr.client.ResourcePackCreatorProperties.render(ResourcePackCreatorProperties.java:215)
      at mtr.screen.ResourcePackCreatorScreen.render(ResourcePackCreatorScreen.java:495)
      at net.minecraft.class_757.handler$zjb000$renderLevel(class_757.java:2010)
      at net.minecraft.class_757.method_3188(class_757.java:1063)

-- Affected level --
Details:
      All players: 1 total; ]
      Chunk stats: 961, 612
      Level dimension: minecraft:overworld
      Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
      Level time: 33585 game time, 9251 day time
      Server brand: fabric
      Server type: Integrated singleplayer server
Stacktrace:
      at net.minecraft.class_638.method_8538(class_638.java:407)
      at net.minecraft.class_310.method_1587(class_310.java:2376)
      at net.minecraft.class_310.method_1514(class_310.java:761)
      at net.minecraft.client.main.Main.main(Main.java:236)
      at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
      at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
      at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Last reload --
Details:
      Reload number: 1
      Reload reason: initial
      Finished: Yes
      Packs: Default, Fabric Mods, Tianjin_Metro_resourcepack _1.3_Xiaotang27.zip

-- System Details --
Details:
      Minecraft Version: 1.18.2
      Minecraft Version ID: 1.18.2
      Operating System: Mac OS X (x86_64) version 12.5.1
      Java Version: 17.0.4, Microsoft
      Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Microsoft
      Memory: 8886096384 bytes (8474 MiB) / 9982443520 bytes (9520 MiB) up to 9999220736 bytes (9536 MiB)
      CPUs: 10
      Processor Vendor: Apple Inc.
      Processor Name: Apple M1 Max
      Identifier: Apple Inc. Family 0x1b588bb3 Model 0 Stepping 0
      Microarchitecture: unknown
      Frequency (GHz): 24.00
      Number of physical packages: 1
      Number of physical CPUs: 10
      Number of logical CPUs: 10
      Graphics card #0 name: Apple M1 Max
      Graphics card #0 vendor: Apple (0x106b)
      Graphics card #0 VRAM (MB): 0.00
      Graphics card #0 deviceId: unknown
      Graphics card #0 versionInfo: unknown
      Memory slot #0 capacity (MB): 0.00
      Memory slot #0 clockSpeed (GHz): 0.00
      Memory slot #0 type: unknown
      Virtual memory max (MB): 65536.00
      Virtual memory used (MB): 27553.92
      Swap memory total (MB): 0.00
      Swap memory used (MB): 0.00
      JVM Flags: 11 total; -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16m -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:-DontCompileHugeMethods -Xmn128m -Xmx9533m
      Fabric Mods:
                fabric: Fabric API 0.58.0+1.18.2
                        fabric-api-base: Fabric API Base 0.4.4+d7c144a860
                        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.2+2373a54560
                        fabric-biome-api-v1: Fabric Biome API (v1) 8.0.6+651bcc5960
                        fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.12+3ac43d9560
                        fabric-command-api-v1: Fabric Command API (v1) 1.1.9+d7c144a860
                        fabric-commands-v0: Fabric Commands (v0) 0.2.8+b4f4f6cd60
                        fabric-containers-v0: Fabric Containers (v0) 0.1.23+d7c144a860
                        fabric-content-registries-v0: Fabric Content Registries (v0) 3.1.1+c85f2e3860
                        fabric-convention-tags-v1: Fabric Convention Tags 1.0.1+474e4f7960
                        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.1+ee261a3e60
                        fabric-data-generation-api-v1: Fabric Data Generation API (v1) 3.0.1+9fcb91d260
                        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.20+489d6f8260
                        fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.8+d7c144a860
                        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.19+d7c144a860
                        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.19+d7c144a860
                        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.13+d7c144a860
                        fabric-item-api-v1: Fabric Item API (v1) 1.5.2+17cbbd4360
                        fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.14+91896a4960
                        fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.12+54e5b2ec60
                        fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.10+b4f4f6cd60
                        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.1.0+cc71601c60
                        fabric-loot-api-v2: Fabric Loot API (v2) 1.1.0+1997ad1260
                        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.2+e747827960
                        fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.4+cc71601c60
                        fabric-models-v0: Fabric Models (v0) 0.3.6+d7c144a860
                        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.23+2d30af4b60
                        fabric-networking-v0: Fabric Networking (v0) 0.3.10+b4f4f6cd60
                        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 2.1.3+032c981d60
                        fabric-particles-v1: Fabric Particles (v1) 0.2.12+526dc1ac60
                        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.10+0d9ab37260
                        fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.13+d882b91560
                        fabric-renderer-indigo: Fabric Renderer - Indigo 0.5.3+41a02c8a60
                        fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.11+b4f4f6cd60
                        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.7+d7c144a860
                        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 2.0.2+54e5b2ec60
                        fabric-rendering-v0: Fabric Rendering (v0) 1.1.13+b4f4f6cd60
                        fabric-rendering-v1: Fabric Rendering (v1) 1.10.7+54e5b2ec60
                        fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.0.3+91b7aa6660
                        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.5.2+446e059560
                        fabric-screen-api-v1: Fabric Screen API (v1) 1.0.10+d882b91560
                        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.2.2+1f6558e860
                        fabric-textures-v0: Fabric Textures (v0) 1.0.12+3ac43d9560
                        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.6.3+f4563ac860
                        fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.1.0+e747827960
                fabricloader: Fabric Loader 0.14.9
                java: OpenJDK 64-Bit Server VM 17
                jsblock: Joban Client Mod 1.18.2-1.1.5-hotfix-1
                minecraft: Minecraft 1.18.2
                mtr: Minecraft Transit Railway 1.18.2-3.1.0
      Launched Version: 1.18.2
      Backend library: LWJGL version 3.2.1 build 12
      Backend API: Apple M1 Max GL version 4.1 Metal - 76.3, Apple
      Window size: 1708x960
      GL Caps: Using framebuffer using OpenGL 3.2
      GL debug messages: <disabled>
      Using VBOs: Yes
      Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
      Type: Integrated Server (map_client.txt)
      GPU Warnings: version: Metal
      Graphics mode: fancy
      Resource Packs: vanilla, Fabric Mods, file/Tianjin_Metro_resourcepack _1.3_Xiaotang27.zip (incompatible)
      Current Language: 简体中文 (中国)
      CPU: 10x Apple M1 Max
      Server Running: true
      Player Count: 1 / 8; ', x=-16.56, y=-60.00, z=-133.61]]
      Data Packs: vanilla, Fabric Mods
      World Generation: Stable
#@!@# Game crashed! Crash report saved to: #@!@# /Users/xiaotang/Library/Application Support/minecraft/crash-reports/crash-2022-09-16_13.57.26-client.txt

Snapsnap 发表于 2022-9-16 09:12:10

日志?我用就没问题

K-Kortau 发表于 2022-9-16 13:02:48

请给日志

MSnj_studioX 发表于 2022-9-16 15:11:08

或者可以,在崩溃前的日志信息(可能更容易判断错误)

Xiaotang27 发表于 2022-9-16 15:15:25

书与笔 发表于 2022-9-16 15:11
或者可以,在崩溃前的日志信息(可能更容易判断错误)

hmmm

---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 2022/9/16 下午1:57
Description: Unexpected error
未知错误我咋判断:D

-DKZ4- 发表于 2022-9-16 18:15:09

是不是模型里有空文件夹,里面没有方块,这样会崩溃

Furina_汇百川 发表于 2022-9-16 18:22:08

森哥_DKZ4 发表于 2022-9-16 18:15
是不是模型里有空文件夹,里面没有方块,这样会崩溃

应该不事,错误代码不一样啊(悲

Xiaotang27 发表于 2022-9-17 16:29:11

森哥_DKZ4 发表于 2022-9-16 18:15
是不是模型里有空文件夹,里面没有方块,这样会崩溃

欸有可能
晚上我试试
页: [1]
查看完整版本: 资源包创建器出现错误