Author |
Message |
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Mon Aug 30, 2010 8:57 pm Post subject: Scores are getting mangled |
|
|
|
|
So I've been having this problem in Devastation where players will go and play in a subarena for a while, and when they go back to the main pub, their scores are getting transferred into pub. I noticed this too, since I hadn't played in pub since the last scorereset, but after going into a subarena, my scores were crossed over into pub.
ie:
(pub) Hakaku : 0 kills
?go arena
(arena) Hakaku : 100 kills
?go pub
(pub) Hakaku : 100 kills
I honestly have no clue why this is happening, any ideas? |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Mon Aug 30, 2010 9:20 pm Post subject: |
|
|
|
|
I'd be surprised if there was anyone still around that understood asss scoring modules.
I've dreamt about ditching bdb for sqlite, and persist for anything else. |
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Tue Aug 31, 2010 2:02 am Post subject: |
|
|
|
|
Are these kills being tracked by scoring:stats, or by some other module? My first guess is that the ClearData function isn't doing what it's supposed to.
Also make sure you don't have General:ScoreGroup set in any of the arenas. And what are the exact names of the arenas you're trying? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Aug 31, 2010 12:08 pm Post subject: |
|
|
|
|
Speaking of scoring modules... I had it track some custom stats for an event... how do you get it to end a 'scoring period' or whatever? I can only get all-time stats, not per-game _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Tue Aug 31, 2010 5:34 pm Post subject: |
|
|
|
|
Grelminar wrote: | Are these kills being tracked by scoring:stats, or by some other module? My first guess is that the ClearData function isn't doing what it's supposed to. |
Yes. points_goal, points_flag, and points_kill are attached to the arena. (Edit: Well unless Snrrrub modified the files when building asss, in which case I wouldn't know)
Grelminar wrote: | Also make sure you don't have General:ScoreGroup set in any of the arenas. And what are the exact names of the arenas you're trying? |
I wasn't even aware that this setting ever existed. It's <unset> in every arena though. The arenas in question are the main public arena and a subarena called 'baseduel', which you can check out in SSCA Devastation. They don't share anything other than common settings which are placed in a separate .conf file - but the problem doesn't seem to be affecting any other arenas so far.
Actually, when I typed "?stats game" these were the results:
baseduel
The server is keeping track of the following stats about you:
kill points: 297039
kills: 369
deaths: 447
team kills: 0
team deaths: 0
total time (this arena): 58011
ball carries: 3
ball time: 16 | public The server is keeping track of the following stats about you:
kill points: 0
kills: 0
deaths: 0
team kills: 0
team deaths: 0
total time (this arena): 70819
ball carries: 0
ball time: 0 | But both arenas are displaying the scores of baseduel in the F2 menu.
Samapico wrote: | Speaking of scoring modules... I had it track some custom stats for an event... how do you get it to end a 'scoring period' or whatever? I can only get all-time stats, not per-game |
Take a look at src/scoring/statcodes.h (at the bottom). |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Aug 31, 2010 6:37 pm Post subject: |
|
|
|
|
Hakaku wrote: |
Take a look at src/scoring/statcodes.h (at the bottom). | I know there are intervals... But I what defines the 'per game' interval, for example? How can you tell it when it ends.............
Hmm,
Just found this in the 'persist' thing:
void (*EndInterval)(const char *arenagrp_or_arena_name, Arena *or_arena, int interval);
I guess this should be it... |
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Wed Sep 01, 2010 3:27 am Post subject: |
|
|
|
|
Yes, you use EndInterval to end "game". I thought there was some code to do it automatically for flag and ball games, but I'm not sure.
Hmm. If ?stats is displaying the correct data but the F2 board isn't, it must be that the data in the player entering packet is wrong. But it's updated just before sending the packet, so I don't see how that could be.
Do other people see the correct stats for you in their F2 views? And if your stats change in pub, does your F2 view get corrected eventually? |
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Wed Sep 01, 2010 8:23 am Post subject: |
|
|
|
|
Hm, nevermind. The stats are displaying incorrectly in ?stats as well, I just tried to use "?stats interval" and the results were the following:
public
The server is keeping track of the following stats about you:
kill points: 323165
flag points: 4259020
kills: 398
deaths: 482
total time (this arena): 75745
flag pickups: 0
flag time: 271
flag drops: 46
neutral drops: 46
flag kills: 23
flag deaths: 23
flag games won: 1
ball carries: 0
ball time: 0 |
baseduel
The server is keeping track of the following stats about you:
kill points: 297039
flag points: 0
kills: 369
deaths: 447
total time (this arena): 58067
flag pickups: 0
flag time: 0
flag drops: 0
neutral drops: 0
flag kills: 0
flag deaths: 0
flag games won: 0
ball carries: 3
ball time: 16 |
This was after I played in pub for a bit and ended up killing 29 times and dying 35 according to the jackpot. It looks as if the scores (mainly kills and deaths) from baseduel are getting added onto the scores of pub, but not the other way around. With the exception of the points column, which is showing up correctly. |
|
Back to top |
|
|
Zomg Guest
Offline
|
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Thu Oct 14, 2010 4:42 pm Post subject: |
|
|
|
|
Yeah, if you haven't been keeping up with repository revisions then I suggest you try updating first The symptoms sound similar to what HZ and HS were having, though I never look at ?stats so iunno. |
|
Back to top |
|
|
Hakaku Server Help Squatter
Joined: Apr 07 2006 Posts: 299 Location: Canada Offline
|
Posted: Mon Oct 25, 2010 11:06 pm Post subject: |
|
|
|
|
Hmm, I wasn't aware his modifications touched the stats, I'll have to ask him about it. |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Tue Oct 26, 2010 2:22 am Post subject: |
|
|
|
|
It's the same source data. |
|
Back to top |
|
|
|