New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vrpex] spawn error #405
Comments
|
it's my debug print and comments, sorry 155 line
|
You can check the user_id validity and check the value of vRP.getUData(user_id, "vRP:datatable"), also check if there are MySQL errors. You can also check the vRP.setUData data in the disconnect event of base.lua. |
I don't think I can specifically reproduce this error again. I'll add prints for the future. |
There are some reports of money loss, random MySQL errors, etc, so maybe using something else than |
I'll try to use https://github.com/GHMatti/FiveM-MySQL |
You can create a driver, I don't know if this resource supports prepared statements, but stability is better than performance for now. If you create a repository, I could help you with the interface. |
You mean the fork GHMatti''s MySQL? I have zero knowledge in C# |
No C#, it's just a bridge resource that depends on |
I don't know if it's good to do it this way, I will ask on the topic of the creator. |
In any case, we comply with AGPLv3 |
If his work is a standalone resource, it could be better to just write the bridge and let people install his resource with our own. |
So it would be better in terms of resource support. |
Yes (and no duplication of data). |
I think I will create a global repository with all the potential bridges inside instead, if you don't mind, easier to manage and they are too specific resources related to vRP core features, not really standalone. |
ok, i delete mine |
It wasn't so difficult, I think I have GHMattiMySQL working well. https://github.com/ImagicTheCat/vRP-db-drivers |
With a new database problem was repeated tested without ac679a9
Then character reset |
|
I don't know why this is happening, but to keep the loop going, it's better to move the SetTimeout to the beginning.
|
When a lot of players try to connect to a full server, they are stored in a strange way in the DB and die when spawned (because there is no value for hp). Note even that there is no user group |
Probably irrelevant for vRP 2. |
It happens when you come after the crash.
Then character reset
The text was updated successfully, but these errors were encountered: