/vmodel reload Issue #198

Open
opened 2025-01-19 11:29:20 +01:00 by xii69 · 4 comments

Describe the bug
/vmodel reload for reloading the vehicle model configuration file isn't working, each time I try to reload and apply the changes made to a car I get this warning spammed (probably 4-5 times a second):

[23:07:56 WARN]: [VehiclesPlus] Task #196 for VehiclesPlus v3.0.4 generated an exception
java.lang.IllegalArgumentException: VehicleModel pride not found!
        at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.lambda$getVehicleModel$0(StorageVehicle.java:257) ~[VehiclesPlus-3.0.4.jar:?]
        at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
        at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.getVehicleModel(StorageVehicle.java:257) ~[VehiclesPlus-3.0.4.jar:?]
        at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.getVehicleModel(SpawnedVehicle.java:246) ~[VehiclesPlus-3.0.4.jar:?]
        at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.DrivableVehicle.update(DrivableVehicle.java:87) ~[VehiclesPlus-3.0.4.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:91) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:481) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1640) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:494) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1530) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1232) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:308) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

To Reproduce
Steps to reproduce the behavior:

  1. Create a Vehicle
  2. Start The Server
  3. Make Changes in the Vehicle File
  4. do /vmodel reload

Expected behavior
Seeing that the wanted changes applies to the vehicles

Server and Plugin Information

  • Installed plugins: Can't share on non-private places such as Issues section duo to company rules
  • VehiclesPlus Version: VehiclesPlus version 3.0.4
  • Pro or Lite? Pro?
  • Server Platform and Version [eg: PaperSpigot 1.x.x #xxx]: Leaf 1.20.4 (https://github.com/Winds-Studio/Leaf)
  • Operating System (if applicable): Linux (Ubuntu Server)

Additional context
Add any other context about the problem here, server timings reports, complete console log etc. Please do not make Pastebin dumps or screenshot expire.

**Describe the bug** /vmodel reload for reloading the vehicle model configuration file isn't working, each time I try to reload and apply the changes made to a car I get this warning spammed (probably 4-5 times a second): ``` [23:07:56 WARN]: [VehiclesPlus] Task #196 for VehiclesPlus v3.0.4 generated an exception java.lang.IllegalArgumentException: VehicleModel pride not found! at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.lambda$getVehicleModel$0(StorageVehicle.java:257) ~[VehiclesPlus-3.0.4.jar:?] at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.getVehicleModel(StorageVehicle.java:257) ~[VehiclesPlus-3.0.4.jar:?] at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.getVehicleModel(SpawnedVehicle.java:246) ~[VehiclesPlus-3.0.4.jar:?] at VehiclesPlus-3.0.4.jar/nl.sbdeveloper.vehiclesplus.api.vehicles.impl.DrivableVehicle.update(DrivableVehicle.java:87) ~[VehiclesPlus-3.0.4.jar:?] at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:91) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:481) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1640) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:494) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1530) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1232) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:308) ~[leaf-1.20.4.jar:git-Leaf-"1ab7813"] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] ``` **To Reproduce** Steps to reproduce the behavior: 1. Create a Vehicle 2. Start The Server 3. Make Changes in the Vehicle File 4. do /vmodel reload **Expected behavior** Seeing that the wanted changes applies to the vehicles **Server and Plugin Information** - Installed plugins: Can't share on non-private places such as Issues section duo to company rules - VehiclesPlus Version: VehiclesPlus version 3.0.4 - Pro or Lite? Pro? - Server Platform and Version [eg: **PaperSpigot** 1.x.x #xxx]: Leaf 1.20.4 (https://github.com/Winds-Studio/Leaf) - Operating System (if applicable): Linux (Ubuntu Server) **Additional context** Add any other context about the problem here, server timings reports, complete console log etc. Please do not make Pastebin dumps or screenshot expire.
Owner

Which values did you change?

Which values did you change?
Author

Not sure, can I share the vehicle file?

Not sure, can I share the vehicle file?
Owner

Sure, ideally before and after if you still have it.

Sure, ideally before and after if you still have it.
Owner

🔒 Secure File Upload Instructions
You can securely upload your file using the following link: Upload File Here. This platform is designed to ensure safe file transfers and is directly integrated with the corresponding Git issue.

📂 Once your file is uploaded, I will review it and provide a response as soon as possible.

**🔒 Secure File Upload Instructions** You can securely upload your file using the following link: [Upload File Here](https://uploader.sbdevelopment.tech/). This platform is designed to ensure safe file transfers and is directly integrated with the corresponding Git issue. 📂 Once your file is uploaded, I will review it and provide a response as soon as possible.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: VehiclesPlus/VehiclesPlus#198
No description provided.