Author |
Message |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Nov 07, 2004 2:45 pm Post subject: Scores and Information? |
 |
|
|
|
Where is the score information set into asss, seems like the biller isnt holding it because when i type ?networkreset, the scores are still the same.. any ideas? _________________
 |
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Sun Nov 07, 2004 9:32 pm Post subject: |
 |
|
|
|
scores are stored locally in the data directory. (docs/userguide.txt).
on a separate note:
If I want to update scores in a module after setting them, would it be a good idea to GetStat right after setting it in order to update the client's points immediately? _________________ Oldbie Server Help |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sun Nov 07, 2004 11:11 pm Post subject: |
 |
|
|
|
Correct, asss keeps track of all scores (and lots more) locally, using berkeley db for storage.
I'm not sure what GetStat would do. I think the function you want is SendUpdates. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Nov 07, 2004 11:36 pm Post subject: |
 |
|
|
|
mmm yes, this is why you should use the new user database protocol haha.. In regards to network score reset. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Mon Nov 08, 2004 12:54 am Post subject: |
 |
|
|
|
Is it possible to disable this, I like the idea of it saving it but, it'd be nice if I can change it..Maybe? |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Mon Nov 08, 2004 1:36 am Post subject: |
 |
|
|
|
Sorry, the score keeping is integrated with the rest of the persistent data system and can't be separated. You can disable the whole thing by not loading the "persist" and "stats" modules (and anything that depends on them). But then you get no saved scores at all.
But give it a chance, I think you'll like the new features. You can use the provided "dbtool" to export stats data in csv format for use by external apps. |
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Mon Nov 08, 2004 9:14 pm Post subject: |
 |
|
|
|
That's what I was looking for. SendUpdates. thanks.
*reads the API* And by that I mean grep SendUpdates *.h |
|
Back to top |
|
 |
|