Topic: Friend list is not working
Hello!
This is a also an expansion to older post:
https://forums.pvpgn.pro/viewtopic.php?id=1814
I have tried stable, dev branches and also some other already compiled builds, in each of them this error happens and the friendlists does not stay saved.
I have checked SQLlite, mysql and postgres databases, if I were to guess it is some query error in the code.
After server reboot, friend lists gets reset and it is visible in logs as:
When adding a friend:
[error] sql_write_attrs: could not INSERT attribute 'friend_0_uid'->'2'
and when looking for friend:
sql_read_attrs: SELECT * FROM pvpgn_friend WHERE uid='0'
sql_read_attrs: SELECT * FROM pvpgn_friend WHERE uid='0'
[error] account_get_friend: could not find friend (friendno: 0 of 'name')
From what I see, the tables are only uid and count column, there was also another log trying to use 0_uid name. I think this is the problem, but no idea how to fix it. Adding manually these tables is not the solution.
Does someone has working version of it or know how to fix it?
Side note, dockerfile for does not seems to be working well for building the image. It does build, but it crashes the server every time I join Warcraft 3 battle.net with errors saying something out of bound. While compiling there are errors of out of range integers or something. Compiled under window with magic builder, works just fine. (not the issue I am raising this thread for, just informational)