Skip to content
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

Closed
GladieUO opened this issue Sep 17, 2022 · 12 comments
Closed

houses | ships removing keeps them stuck in totalcount without UID #895

GladieUO opened this issue Sep 17, 2022 · 12 comments

Comments

@GladieUO
Copy link
Contributor

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.

@Jhobean
Copy link
Contributor

Jhobean commented Sep 17, 2022

Very similar to #530

@JulianUO
Copy link
Contributor

I think I found the issue on the code, will test in the following week.

@Tolokio
Copy link
Contributor

Tolokio commented Oct 20, 2022

@Julian any update?

@Julian
Copy link

Julian commented Oct 20, 2022

Not yet.

@Tolokio
Copy link
Contributor

Tolokio commented Oct 20, 2022

image
shouldnt b there nullptr instead 0?

@JulianUO
Copy link
Contributor

JulianUO commented Oct 20, 2022 via email

@GladieUO GladieUO mentioned this issue Oct 21, 2022
@GladieUO
Copy link
Contributor Author

GladieUO commented Oct 30, 2022

So we have a solution with help of GorGo.
Basically the sphere function "redeed" does the work and by using this, everything is correctly deleted, even from houses list, ships list.
Thats because inside this function in core, there is probably .delhouse or .delship being performed internaly, and this does the trick.

So to fix my issues, i added this before my ships redeeding function, and before my function deleting houses that decayed.
uidofowner.delhouse uidofdeletedhouse
uidofowner.delship uidofdeletedship

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.

@GladieUO
Copy link
Contributor Author

FIX PR #957
CLOSING

@GladieUO GladieUO reopened this Nov 20, 2022
@GladieUO
Copy link
Contributor Author

GladieUO commented Nov 20, 2022

Re-opened.
Still not fixed, only works with redeed core function.
If u remove/nuke or decay the house by timer, it will not remove the house/ship from its list count, until sphere restart.
UID is removed, but total count not.

@Tolokio
Copy link
Contributor

Tolokio commented Nov 21, 2022

there is not fix added to source-x yet. Bug stills.

drk84 added a commit to drk84/Source2 that referenced this issue Dec 7, 2022
@drk84 drk84 self-assigned this Dec 7, 2022
drk84 added a commit that referenced this issue Dec 7, 2022
@drk84
Copy link
Member

drk84 commented Dec 7, 2022

I sent a commit
Aabout the scripts part the various messages should be moved after the remove command
immagine

@GladieUO
Copy link
Contributor Author

GladieUO commented Dec 7, 2022

seems like fixed, thanks! 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants