-
Notifications
You must be signed in to change notification settings - Fork 48
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
houses | ships removing keeps them stuck in totalcount without UID #895
Comments
Very similar to #530 |
I think I found the issue on the code, will test in the following week. |
@Julian any update? |
Not yet. |
No, this is related to how std::vector and std::map works, and it happens
when you remove an item from the list
El jue, 20 oct. 2022 14:46, Tolokio ***@***.***> escribió:
… [image: image]
<https://user-images.githubusercontent.com/20745578/197021025-fadfdcdf-56c0-4a5a-a859-8d846bb403ee.png>
shouldnt b there nullptr instead 0?
—
Reply to this email directly, view it on GitHub
<#895 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALRUXCH3NDPFASW24R4BO5LWEGAQXANCNFSM6AAAAAAQPABH5Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So we have a solution with help of GorGo. So to fix my issues, i added this before my ships redeeding function, and before my function deleting houses that decayed. Only issue is, if you manualy delete house or ship, then the UID from owners list will be deleted, but the total amount will be stuck until you restart the sphere. Now i will let this for the Devs to decide, if this issue to be closed or not. |
FIX PR #957 |
Re-opened. |
there is not fix added to source-x yet. Bug stills. |
…otalcount without UID. (Issue Sphereserver#895)
seems like fixed, thanks! 😎 |
Hi,
i just found out there is probably some issue with the houses and ships property counting multis.
If you build house / ship, houses or ships will add +1 and its UID.
this way first house/ship is house.0 and UID stored.
If you remove the house or ship, the UID will become 0, but the problem is, you still see that you have one house, with UID 0.
This diseappear only if you shutdown sphere and run again.
This way if you have sphere limit for 1 house/player and he fail to build it properly on wanted spot and needs to redeed and build again, he is blocked by limit until sphere shutdown.
The text was updated successfully, but these errors were encountered: