LMBishop / Quests

Questing plugin for Minecraft, enabling the addition of goals for players.
https://www.spigotmc.org/resources/23696/
GNU General Public License v3.0
165 stars 80 forks source link

A problem occured quest progress file is null #675

Open moonies44 opened 3 weeks ago

moonies44 commented 3 weeks ago

Description of Bug

Hello there. when a player logs in i get this error

[22:25:27 INFO]: ScrambleTime joined the game [22:25:27 INFO]: ScrambleTime[/109.252.118.244:46982] logged in with entity id 126314 at ([world]1463.4168614299595, 177.62657084823462, -572.0126570617338) [22:25:27 INFO]: [Quests] DEBUG: Loading player 4d6b4af2-53ec-4a5a-9aab-25f4519b5fa4... [22:25:27 INFO]: [Quests] DEBUG: A problem occurred trying loading player 4d6b4af2-53ec-4a5a-9aab-25f4519b5fa4; quest progress file is null.

Steps to Reproduce

Login to the server. (they haven't done any quests before)

Environment

Agreements

Other

No response

Krakenied commented 3 weeks ago

are you using mysql or files

Krakenied commented 3 weeks ago

also, it's just debug log - maybe it's just phrased in a wrong way, have to take a look into it

Krakenied commented 3 weeks ago

ok i see it returns null only if there is a problem with database connection - ensure your setup is correct

moonies44 commented 3 weeks ago

ok i see it returns null only if there is a problem with database connection - ensure your setup is correct

thanks for replying, im using flatfile, so im unsure how my setup could be wrong? any other ideas how i can check if something is wrong? thank you.

Krakenied commented 3 weeks ago

Flatfile meaning provider: "yaml", yeah?

Krakenied commented 3 weeks ago

Also, that's only debugging. Do you see any errors without debugging enabled? And, does this thing affect how Quests plugin behaves? From what I can see, this completable future is expected to complete with null due to the nullability checks in the code. So this log is most probably perfectly fine - if you don't encounter any issues, just disable debugging. https://github.com/LMBishop/Quests/blob/a82c96b60d6a78644d0b74ae4f494a5653d9484d/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerManager.java#L177-L181 https://github.com/LMBishop/Quests/blob/a82c96b60d6a78644d0b74ae4f494a5653d9484d/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/CommandUtils.java#L133-L136 https://github.com/LMBishop/Quests/blob/a82c96b60d6a78644d0b74ae4f494a5653d9484d/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/CommandUtils.java#L163-L166 https://github.com/LMBishop/Quests/blob/a82c96b60d6a78644d0b74ae4f494a5653d9484d/bukkit/src/main/java/com/leonardobishop/quests/bukkit/listener/PlayerJoinListener.java#L37-L53 Debug logging can be disabled in config.yml here (as you can see, 2 is default): https://github.com/LMBishop/Quests/blob/a82c96b60d6a78644d0b74ae4f494a5653d9484d/bukkit/src/main/resources/resources/bukkit/config.yml#L110-L111

moonies44 commented 3 weeks ago

ah, it was set to mysql lol, oops. i swear i set it to yaml a while back, think it got reset somehow. i have logged in 3 accounts and have not been able to re-produce the issue. i shall keep an eye on it