Class loading order causes plugin to load before default asset pack on Windows
When I setup a new project in Windows filesystem, with the classpaths configured like this:
-cp C:\Users\foo\IdeaProjects\bar\build\classes\java\main;C:\Users\foo\IdeaProjects\bar\build\resources\main;C:\Users\foo\AppData\Roaming\Hytale\install\release\package\game\latest\Server\HytaleServer.jar
The server's asset loader puts the plugin pack at first slot, causing it to be the "default" assets pack, and the server crashes not being able to load basic assets.
I tested this on Linux under WSL2, and despite having the classpath order the same (plugin stuff first, game assets second), it doesn't do that.
The workaround is to add Hytale:AssetModule to plugin's dependencies in manifest.json
"Dependencies": {
"Hytale:AssetModule": "*"
},
I'll add some crash logs, just in case someone googles that error, so they see the workaround above.
[2026/02/18 19:53:42 SEVERE] [EventBus] Failed to dispatch event LoadAssetEvent{bootStart=775669105257600, shouldShutdown=true, reasons=[Assets Hytale:Hytale failed to load., failed to validate npc's, failed to validate npc's]} to SyncEventConsumer{consumer=com.hypixel.hytale.server.spawning.SpawningPlugin$$Lambda/0x000000009fe4b408@1443e114, timedConsumer=com.hypixel.hytale.event.SyncEventBusRegistry$SyncEventConsumer$$Lambda/0x000000009f6463c8@47fb1b38} EventConsumer{index=147, priority=-7, consumerString='com.hypixel.hytale.server.spawning.SpawningPlugin$$Lambda/0x000000009fe4b408@1443e114', timer=Metric{min=9223372036854775807, average=0.0, max=-9223372036854775808}}
com.hypixel.hytale.logger.sentry.SkipSentryException: java.lang.IllegalArgumentException: Test_Dummy does not exist as a role!
at com.hypixel.hytale.server.npc.NPCPlugin.validateSpawnableRole(NPCPlugin.java:901)
at com.hypixel.hytale.server.spawning.SpawningPlugin.lambda$validateSpawnMarkers$0(SpawningPlugin.java:526)
[2026/02/18 19:53:42 SEVERE] [HytaleServer] Asset validation FAILED with 3 reason(s):
Assets Hytale:Hytale failed to load.
failed to validate npc's
failed to validate npc's
Thank you for the report, I've added this as a workaround to the template for now.
I'll leave the issue open until I have time to investigate further.