Pixelmon Sidemod API - Bug tracker

[PixelHunt Remastered 2.1.2] - Adding a Pokemon that has a hyphen in its name (i.e. Porygon-Z, Jangmo-o) to the exclusion list crashes the server not a bug

Ticket description:
Pokemon with hyphens in their name can't be added to the exclusion list, as adding them crashes the server.

Below are results of the crash after trying to add Porygon-Z to the exclusion list. I have tried multiple different methods of inputing it, such as
  • porygon-z
  • "porygon-z"
  • "porygon\u2010z"
  • "porygon‐z"
All have resulted in the same crash.

Crash Report:
Code: Select all---- Minecraft Crash Report ----

WARNING: coremods are present:
  SpongeCoremod (0spongeforge-1.12.2-2838-7.4.7.jar)
Contact their authors BEFORE contacting forge

// Sorry :(

Time: 5/17/22 5:34 PM
Description: Exception in server tick loop

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from PixelHuntRemastered Forge (pixelhuntremastered)
Caused by: java.lang.NullPointerException
   at com.envyful.pixel.hunt.remastered.forge.hunt.PixelHuntForgeFactory.reloadHunts(PixelHuntForgeFactory.java:27)
   at com.envyful.pixel.hunt.remastered.forge.hunt.PixelHuntForgeFactory.<init>(PixelHuntForgeFactory.java:20)
   at com.envyful.pixel.hunt.remastered.forge.PixelHuntForge.onPreInit(PixelHuntForge.java:48)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)
   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
   at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.redirect$zza000$forgeImpl$PostEvent(LoadController.java:568)
   at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
   at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:629)
   at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
   at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)
   at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
   at java.lang.Thread.run(Thread.java:748)


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

-- Head --
Thread: Server thread
Stacktrace:
   at net.minecraft.server.MinecraftServer.handler$zjh000$onCrashReport(MinecraftServer.java:4687)

-- Sponge PhaseTracker --
Details:
   Phase Stack: [Empty stack]
Stacktrace:
   at net.minecraft.server.MinecraftServer.handler$zjh000$onCrashReport(MinecraftServer.java:4687)
   at net.minecraft.server.MinecraftServer.func_71230_b(MinecraftServer.java:889)
   at net.minecraft.server.dedicated.DedicatedServer.func_71230_b(DedicatedServer.java:371)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:558)
   at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Linux (amd64) version 4.15.0-99-generic
   Java Version: 1.8.0_311, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 772318232 bytes (736 MB) / 2183659520 bytes (2082 MB) up to 3817865216 bytes (3641 MB)
   JVM Flags: 2 total; -Xmx4096M -Xms512M
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: MCP 9.42 Powered by Forge 14.23.5.2860 24 mods loaded, 24 mods active
   States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

   Mods:

   | State | ID                  | Version                | Source                                         | Signature                                |
   |:----- |:------------------- |:---------------------- |:---------------------------------------------- |:---------------------------------------- |
   | LCH   | minecraft           | 1.12.2                 | minecraft.jar                                  | None                                     |
   | LCH   | mcp                 | 9.42                   | minecraft.jar                                  | None                                     |
   | LCH   | FML                 | 8.0.99.99              | forge-1.12.2-14.23.5.2860.jar                  | e3c3d50c7c986df74c645c0ac54639741c90a557 |
   | LCH   | forge               | 14.23.5.2860           | forge-1.12.2-14.23.5.2860.jar                  | e3c3d50c7c986df74c645c0ac54639741c90a557 |
   | LCH   | spongeapi           | 7.4.0-5ea6215          | 0spongeforge-1.12.2-2838-7.4.7.jar             | None                                     |
   | LCH   | sponge              | 1.12.2-7.4.7           | 0spongeforge-1.12.2-2838-7.4.7.jar             | None                                     |
   | LCH   | spongeforge         | 1.12.2-2838-7.4.7      | 0spongeforge-1.12.2-2838-7.4.7.jar             | None                                     |
   | LCH   | aether_legacy       | 1.5.3.2                | aether-1.12.2-v1.5.3.2.jar                     | None                                     |
   | LCH   | betterdexrewards    | 2.1.7                  | BetterDexRewards-Forge-2.1.7.jar               | None                                     |
   | LCH   | biomesoplenty       | 7.0.1.2445             | BiomesOPlenty-1.12.2-7.0.1.2445-universal.jar  | None                                     |
   | LCH   | dynmap              | 3.3.2-671              | Dynmap-3.3.2-forge-1.12.2.jar                  | None                                     |
   | LCH   | pixelmon            | 8.4.2                  | Pixelmon-1.12.2-8.4.2-universal.jar            | None                                     |
   | LCH   | moveskillcontroller | 1.0.4                  | MoveSkillController-1.12.2-1.0.4-universal.jar | None                                     |
   | LCH   | pixelextras         | 2.5.17                 | PixelExtras-1.12.2-2.5.17-universal.jar        | None                                     |
   | LCE   | pixelhuntremastered | 2.1.2                  | PixelHuntRemastered-Forge-2.1.2.jar            | None                                     |
   | LC    | tcg                 | 1.12.2-8.4.2-universal | Pixelmon-1.12.2-8.4.2-universal.jar            | None                                     |
   | LC    | poketracker         | 0.3.2                  | PokeTracker-Forge-0.3.2.jar                    | None                                     |
   | LC    | reforgedbingo       | 0.9.1                  | ReforgedBingo-Forge-0.9.1.jar                  | None                                     |
   | LC    | trainercommands     | 2.5.1                  | TrainerCommands-1.12.2-2.5.1-universal.jar     | None                                     |


   Plugins:

   | State | ID             | Version | Source                      | Signature |
   |:----- |:-------------- |:------- |:--------------------------- |:--------- |
   | LCH   | dailyrewards   |         | DailyRewards-api7-1.3.3.jar | None      |
   | LCH   | luckperms      | 5.3.98  | LuckPerms-Sponge-5.3.98.jar | None      |
   | LC    | placeholderapi | 4.4     | PlaceholderAPI-4.4.jar      | None      |
   | LC    | totaleconomy   | 1.8.1   | TotalEconomy-1.8.1.jar      | None      |
   | LC    | virtualchest   | 1.0.2   | VirtualChest-1.0.2.jar      | None      |

   Loaded coremods (and transformers):
SpongeCoremod (0spongeforge-1.12.2-2838-7.4.7.jar)
  org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer
   Profiler Position: N/A (disabled)
   Is Modded: Definitely; Server brand changed to 'fml,forge,sponge'
   Type: Dedicated Server (map_server.txt)


Relevant excerpt from console:
Code: Select all[Server thread/INFO] [STDERR]: [com.envyful.pixel.hunt.remastered.forge.PixelHuntForge:loadConfig:59]: com.envyful.pixel.hunt.remastered.forge.shade.configurate.serialize.SerializationException: [hunts, mintone, generator-config, blocked-types, 521] of type java.util.Map<java.lang.String, com.envyful.pixel.hunt.remastered.forge.config.PixelHuntConfig$HuntConfig>: Invalid enum constant provided, expected a value of enum, got porygon‐z

Comments

#25268 Posted by SkyAsa2256 » 20 May 2022 08:37

Hello! Can you test it with PorygonZ?

#25269 Posted by sup3p » 20 May 2022 12:26

Huh. That does seem to work without crashing. I guess I assumed that wouldn't work because doing "/pokespawn PorygonZ" doesn't work, but apparently I never tried it. My apologies, and thank you for your assistance.

Ticket details

  • Ticket ID: 17450
  • Project: Pixelmon Sidemod API
  • Status: Not a bug
  • Component: (unknown)
  • Project version: 8.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: Forge-1.12.2-14.23.5.2860
  • What else would be useful to know?: (unknown)
  • Assigned to: SkyAsa2256
  • Reported by: sup3p (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 17 May 2022 16:57
  • Ticket last visited by: SkyAsa2256 on 02 Jun 2022 21:29
JOIN THE TEAM