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

Editing records.db for adjusting recorded statistics? #293

Open
lacosmp opened this issue Jul 8, 2024 · 1 comment
Open

Editing records.db for adjusting recorded statistics? #293

lacosmp opened this issue Jul 8, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@lacosmp
Copy link

lacosmp commented Jul 8, 2024

New to this and can't find a proper guide but how do you configure the recorded data to adjust statistics like player death, if that is possible? Can't figure out how to edit via LiteDB Studio.

@nwesterhausen nwesterhausen self-assigned this Jul 8, 2024
@nwesterhausen nwesterhausen added the question Further information is requested label Jul 8, 2024
@nwesterhausen
Copy link
Owner

Steps should be as follows:

  1. Open LiteDB Studio
  2. Open the records.db file
  3. It should load, and you should see the tables for each statistic
  4. Double-click on "deaths" table. This will auto-fill the query with a query to get all the records.
    image
  5. In order to delete records, you have to use a DELETE query. (LiteDB docs for DELETE). For example purposes, I will delete a record with this query:

DELETE deaths WHERE _id = {"$oid":"6423015ac937df08b202ccd6"}

To get the value of _id, you can select the cell with the id and CTRL+C to copy it.

  1. After clicking the "Run" button, the output Text is the number of rows deleted. We expect to see 1 there and we do:
    image

Now if I go back and run the table query again (SELECT $ FROM deaths;), we see only two results:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants