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

Database Tables #1199

Open
ScrawnyRonnie opened this issue May 7, 2024 · 1 comment
Open

Database Tables #1199

ScrawnyRonnie opened this issue May 7, 2024 · 1 comment

Comments

@ScrawnyRonnie
Copy link
Contributor

ScrawnyRonnie commented May 7, 2024

There is an issue with capture experience being rewarded consistently. All of my testing has been done with towers due to the quick nature in capturing them. During our regular weekly fights, capturing and resecuring bases has rarely (if ever) granted experience. I've found there to be a few reasons why it results in 0 experience.

In TowerHackParticipation.scala, RewardFacilityCapture does some calculations for contributionVictorSize and contributionOpposingSize. For whatever reason, both or one of those will come out to 0. There is also a chance that baseExperienceFromFacilityCapture or totalExperienceFromKills (from FacilityHackParticipation.scala calculateExperienceFromKills) will be 0. Any of these resulting in 0 will make it so you do not get rewarded.

To demonstrate the randomness of this issue, I recorded myself hacking the same tower over and over again. Right before starting to hack it I killed the opposing player and had them respawn and stay within the SOI. There was a slightly less than 50% success rate in being granted cep. I had the different values print to the console to see why it didn't reward each time. Most of the failures was contributionVictorSize being 0, but the last one was contributionOpposingSize.
https://github.com/psforever/PSF-LoginServer/assets/73139382/04665ea5-5093-4efe-832f-83a59f102bd0

@ScrawnyRonnie
Copy link
Contributor Author

After reading over #1138, I found a few more things related to scoring that are not working.

  • Attempting to delete rows from the buildingcapture table results in a SQL error.
    image

  • The kdasession table never populates with data

@ScrawnyRonnie ScrawnyRonnie changed the title Capture Experience Database Tables Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant