ScoreSave mutator

Search, find and discuss about Mutators!
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: ScoreSave mutator

Post by MrLoathsome »

Well I got the code added to hopefully fix those issues with spectators.

Made a bunch of attempts, but nothing I tried seems to fix those issues with the
reconnecting players Times and FPS stats.

I think it is related to a variable TimeAcc that is defined in the PlayerReplicationInfo.uc, but is never actually
replicated. My attempts to replicate that pretty much failed.

Anyway here is the latest version. If you can fix that problem, go for it.
Last edited by MrLoathsome on Tue Nov 30, 2010 4:05 am, edited 1 time in total.
blarg
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: ScoreSave mutator

Post by iloveut99 »

Thanks, definitively I need to take a look at this. I may also modify the code to add a conf file to allow admins to save the score with a desired time interval.
RocketJedi
Inhuman
Posts: 850
Joined: Wed Mar 12, 2008 7:14 pm
Personal rank: I.T Master
Location: New York
Contact:

Re: ScoreSave mutator

Post by RocketJedi »

thanks everyone for ignoring me :/
https://www.vulpinemission.com
Image ROCKET-X8 Server
Image MONSTERHUNT w/ NALI WEAPONS 3 + RX8
Image BUNNYTRACK NY
Image SNIPER DEATHMATCH
Image InstaGib + ComboGib + Jailbreak
Image ROSEBUM ROCKET-X RB
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: ScoreSave mutator

Post by iloveut99 »

Qwerty wrote:does this actually work with smart ctf? because when you get a gpf or have to reconnect your points will be restored but not your frags. thanks
You gave the answer, if it doesn't restore the frags don't work. Probably you will need to edit it too, to save also the frags in smartctf besides the points.
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: ScoreSave mutator - update soon

Post by MrLoathsome »

I have tracked down the cause of the bug iloveut reported where the score/deaths were getting reset.

It turns out that in the previous versions, if a player respawned quick enough, they would get set back to the score
they had a moment or to prior.

Looking closer I realized the mutator was actually restoring the players values every time they respawned, and not
just on reconnect. By adjusting that so the PRI values are only restored when the player actually disconnects and
rejoins that bug should be fixed. Always good when an optimization is the answer to a bug fix.

Currently testing beta of this on my servers.

Planning on looking at a few other possible additions to this before I release the next version.

1. Make the timer value a config var.
2. Possibly save some extra values for CTF or other gametypes.
3. Look at saving and restoring the players health value.

Currently, a player could keep an eye on his health value, and simply reconnect if it gets too low, restoring his health
to 100 without getting any deaths. If I can get this to also preserve the current health value, it should discourage that.

Not sure on the ETA for the update. Going to test some more, and perhaps try a few ideas out for fixing those
stat issues.
blarg
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: ScoreSave mutator

Post by iloveut99 »

Nice you find out that bugs. The restore of player value I find it unnecessary however the other 2 points will be nice additions.

Let us know when a new release is out.
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: ScoreSave mutator

Post by MrLoathsome »

RC5 now available. See post #1 for download.

In order to clean up the thread a bit, I have deleted the various obsolete copies that were attached to various posts, and will place
the current release in post 1.

This version adds the features mentioned a couple posts back.

Qwerty: I have added a few more pawn stat variables to the data being saved and restored by this.
Test and let us know if it now works for your Smart CTF gametype.
blarg
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: ScoreSave mutator

Post by iloveut99 »

I'm running now the latest version in my server, works smoothly and it's effective. :)

The ScoreSave.ini in RC5 zip is broken you may should fix that.

Also maybe a nice implementation should be show a small white message to the player that get the score recovered. (like the admin login message)

Something like this:

"You got your score recovered."
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: ScoreSave mutator

Post by sektor2111 »

Little bump at SS. Reason: Using this because I have removed Nexgen for the moment from some server - I don't see why was needed after all...

Because I checked various connection types I went to be dropped and I had to reconnect. In a random moment of existence I was dropped after being dead for some network reasons. When I was back I had a surprise, then because I have modified a version into a state code and compatible with MonsterHunt games, I had to adjust something - only a line but important, I'm guessing...:

Code: Select all

				NewPlayer.PlayerReplicationInfo.Score = PlyrScore[i];
				NewPlayer.PlayerReplicationInfo.Deaths = PlyrDeaths[i];
				NewPlayer.PlayerReplicationInfo.StartTime = PlyrStartTime[i];
				if ( PlyrHealth[i] > 10 ) //Added...
					NewPlayer.Health = PlyrHealth[i];
				NewPlayer.DieCount = PlyrDieCount[i];
				NewPlayer.ItemCount = PlyrItemCount[i];
				NewPlayer.KillCount = PlyrKillCount[i];
				NewPlayer.SecretCount = PlyrSecretCount[i];
				NewPlayer.Spree = PlyrSpree[i];

I was thinking that you need to know...
I had to setup various logs for figuring why it did not work in MH...
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: ScoreSave mutator

Post by MrLoathsome »

Good catch.

Is there anybody who actually wants or needs an update for this?
blarg
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: ScoreSave mutator

Post by sektor2111 »

Do what you think it's good - I'll get what's nice.
Aside, another thing occurred. Due to reversal deal with Deaths from MH (any of mine like original), at a moment I was restored with 0 so to speak in MH system - no lives - spectating only in "gameended" state. I removed that because it looks like it's not suitable in such a situation.
Advantage of this toy is that it can be updated without bugging players with packages because it do works perfectly as a nice Server-Side tool.
Post Reply