MrNavaStar / SQLib

The easiest way to store data for all your minecraft needs!
Creative Commons Zero v1.0 Universal
15 stars 5 forks source link

Fabric server startup error #93

Closed CPLALianHua closed 3 months ago

CPLALianHua commented 5 months ago

When using the latest version 2.2.13 on the fabric server, errors may occur. Mod has not yet started loading, and if using versions below 2.1.9, it is normal.

A mod crashed on startup! net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'sqlib'! Caused by: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'sqlib'! ... 4 more Caused by: java.lang.NullPointerException: Cannot read field "type" because "me.mrnavastar.sqlib.SQLib.config.database" is null ... 4 more

CPLALianHua commented 5 months ago

I downloaded the source code of InvSync and used sqllib_version=2.1.5. I found that database. getTable ("base"); In baseDatabase. get (UID), no data will be returned. I tried using sqllite and MySQL, and when the connection was successful, only a table will be automatically created without writing any player data. I tried calling baseDatabase. createDataContainer ("c2b68c02 e67f xxxx"); You will only receive inexplicable errors: Java. lang. RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'invsync'! Caused by: java. lang. NoClassDefFoundError: net/minecraft/text/Text ... 7 more Caused by: java. lang. ClassNotFoundException: net. minecraft. text Text ... 7 more

CPLALianHua commented 5 months ago

I don't understand what link went wrong.

MrNavaStar commented 5 months ago

Huh interesting, I will look into this. What mc version is this on?

Also referring to Invsync, the current code in the repository does not work. I am working on a replacement project for Invsync.

CPLALianHua commented 5 months ago

Data can be written normally in IDEA, but data cannot be written when the module is placed on the server. Mine is version 1.20.1

MrNavaStar commented 4 months ago

This should be fixed when I make a new release

MrNavaStar commented 3 months ago

This has been fixed!