PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
55 stars 21 forks source link

1.20.4 players have to download the resource pack on every join #3360

Closed RoVaSte closed 10 months ago

RoVaSte commented 10 months ago

Terms

Discord tag (optional)

No response

What happened?

Players have to download the resource pack on every join

Steps to reproduce the issue

  1. Join the server and download the resourcepack
  2. Leave the server
  3. Rejoin the server

Server version

This server is running Paper version git-Paper-"07b956e" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 07b956e) You are 36 version(s) behind Download the new version at: https://papermc.io/downloads/paper Previous version: git-Paper-"b4e3b3d" (MC: 1.20.1)

ItemsAdder Version

3.6.3-beta-9

ProtocolLib Version

5.2.0-SNAPSHOT-679

LoneLibs Version

1.0.45

FULL server log

https://paste.denizenscript.com/View/119640

Error (optional)

No response

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

github-actions[bot] commented 10 months ago

Hello, your report will be looked into as soon as possible. Please do not bump this thread and don't post it on multiple platforms.

Thanks a lot for your patience.

LoneDev6 commented 10 months ago

Post your itemsadder configuration file. Post the output of /iainfo command. Anyway for some reason your server has no internet access, this might be the issue. I see lot of plugins have issues connecting to the web.

RoVaSte commented 10 months ago

What would be the problem with the connection? I am currently using Pebble Host 🤔

/iainfo: 23.01 12:58:51 [Server] [INFO] -=[ ItemsAdder ]=- 23.01 12:58:51 [Server] [INFO] Version: 3.6.3-beta-9 23.01 12:58:51 [Server] [INFO] ResourcePack 23.01 12:58:51 [Server] [INFO] Path: /server591401/plugins/ItemsAdder/output/generated.zip 23.01 12:58:51 [Server] [INFO] Download: https://lobfile.com/file/VdBF.zip 23.01 12:58:51 [Server] [INFO] Size: 13 MB/250 MB 23.01 12:58:51 [Server] [INFO] Last update: 2024-01-21 18:17:25 23.01 12:58:51 [Server] [INFO] Host type: lobfile 23.01 12:58:51 [Server] [INFO] Data 23.01 12:58:51 [Server] [INFO] Items: 182 23.01 12:58:51 [Server] [INFO] Items in /ia: 169 23.01 12:58:51 [Server] [INFO] Namespaces: 14 23.01 12:58:51 [Server] [INFO] Materials: 6 23.01 12:58:51 [Server] [INFO] REAL block IDs: 0/191 23.01 12:58:51 [Server] [INFO] REAL_NOTE block IDs: 0/750 23.01 12:58:51 [Server] [INFO] REAL_TRANSPARENT block IDs: 0/63 23.01 12:58:51 [Server] [INFO] REAL_WIRE block IDs: 0/127 23.01 12:58:51 [Server] [INFO] FIRE block IDs: 0/14 23.01 12:58:51 [Server] [INFO] Font images: 672/6608 23.01 12:58:51 [Server] [INFO] Loaded chunks (3692) 23.01 12:58:51 [Server] [INFO] Armorstands: 36 23.01 12:58:51 [Server] [INFO] Mobs: 0

Config (I have disabled the protection things to see if this works, but still doesn't): https://paste.denizenscript.com/View/119663

LoneDev6 commented 10 months ago

Players have to download the resource pack on every join

By "download" you mean that the game clearly tells you "downloading"? Because if you mean that is shows the progress bar it's normal, it's applying the pack, not redownloading it each time.

Let me know

RoVaSte commented 10 months ago

Yes, it tells "downloading 1../100%"

codingcat2468 commented 10 months ago

I have the same issue, I even tried it on a server with only ItemsAdder and the default pack installed using a completely vanilla 1.20.4 client and the bug still occured. This also seems to only happen in 1.20.3 - 1.20.4, so it could be caused by the recent changes to resource packs.

LoneDev6 commented 10 months ago

Do you have BungeePackFix installed? (if you're using Bungeecord)

codingcat2468 commented 10 months ago

I'm not using bungecoord, so that can't be the issue... I tried to change all related ItemsAdder config options, I also created a new test server and switched the resource pack but the bug still occured. It isn't really possible to reproduce this bug when using localhost because it almost instantly downloads the pack.

It could probably be related to the file hash, there's this line on the 1.20.3 update page: "If the hash of a pack is not set, this pack will be redownloaded before every application. Previously, if the hash was missing, the latest downloaded version of pack was applied."

RoVaSte commented 10 months ago

hi, do you have an ETA for the 3.6.3-beta-10 version?

LoneDev6 commented 10 months ago

I had to change PC due to issues so I'm setting it up. It might take a week or so.

I will have to do some other tests but last time I tested I couldn't reproduce the issue noted here.

RoVaSte commented 10 months ago

have you tried using 1.20.4? 🤔

LoneDev6 commented 10 months ago

Yes

RoVaSte commented 10 months ago

that's strange

codingcat2468 commented 10 months ago

The strangest thing is that I didn't change anything in the IA config besides enabling self-host and setting the server IP when testing this. Like I already said, if you tested the issue on localhost, the download is way too quick to see the downloading screen, so that could be the reason why you weren't able to reproduce it... I tested it on a server host and you could clearly see the download progress everytime (yes, I opened the port there and everything worked fine before updating to 1.20.3)...

LoneDev6 commented 10 months ago

Found the issue. The new 1.20.4 resourcepacks work in a different way and they don't accept empty hash anymore. I have to implement something for 1.20.4 but might slowdown processing.

RoVaSte commented 10 months ago

Great to hear that you have found the issue! Nice work.