Project 1999

Go Back   Project 1999 > Red Community > Red Server Chat

Closed Thread
 
Thread Tools Display Modes
  #221  
Old 05-17-2013, 10:46 AM
GODPARTICLE GODPARTICLE is offline
Banned


Join Date: Apr 2013
Posts: 85
Default

You want even more overhead? How about a write to innoDB

Code:
	database.LogPvPKill(zone->GetShortName(), pvp_points,
						killer->CharacterID(), killer->GetName(), guild_mgr.GetGuildName(killer->GuildID()), killer->GuildID(), 
						killer->GetLevel(), killer->GetRace(), killer->GetClass(), long2ip(killer->GetIP()).c_str(),
						
						this->CharacterID(), this->GetName(), guild_mgr.GetGuildName(this->GuildID()), this->GuildID(), 
						this->GetLevel(), this->GetRace(), this->GetClass(), long2ip(this->GetIP()).c_str()
						
	);
Or an update

Code:
	this->UpdatePVPStats(PVPEncounterDeath, pvp_points); // you lose! next we'll divide your points between the group.
	// we don't need to SendPVPStats() here, they'll get them when they zone to their bind
Or an update for the entire group?

Code:
	if (killer->IsGrouped())
	{
		Group *pvp_group = entity_list.GetGroupByClient(killer);
		if (pvp_group != NULL)
		{
			pvp_points = pvp_points / pvp_group->GroupCount();  // divide the points, TODO: fix it to not divide by people not in zone

			for (int i = 0; i < 6; i++)
			{
				if 
				(	pvp_group->members[i] != NULL &&
					// we're only awarding "assists" for groupies in the same zone
					pvp_group->members[i]->CastToClient()->CharacterID() != killer->CharacterID() &&
					pvp_group->members[i]->CastToClient()->GetZoneID() == zone->GetZoneID()
				)
				{
					pvp_group->members[i]->CastToClient()->UpdatePVPStats(PVPEncounterAssist, pvp_points);
					pvp_group->members[i]->CastToClient()->SendPVPStats();
				}
			}
		}
	}

	killer->UpdatePVPStats(PVPEncounterKill, pvp_points); // do this here for code flow logic
	killer->SendPVPStats();

Somehow that read from a myISAM table ain't looking like that big a deal anymore?
  #222  
Old 05-17-2013, 10:49 AM
hijinks hijinks is offline
Kobold


Join Date: Feb 2012
Posts: 166
Default

Rogean,

Is it possible you could dump the logs of the PvP kills to a different public area where somebody else (as I doubt you have the time) could create a web page that tracks kill:death ratio for some sort of Leaderboard. If the data is readily available somebody else could make like a Sullon Zek type page, though I'm not sure how successful it would be with the population being where it's at currently. Need these changes like yesterday!
__________________
Thrilla - 60 Wizard - Red99
Zyrino the Defiler - RZ



Red99 Graveyard blog updated 4/8, find yourself!
  #223  
Old 05-17-2013, 10:59 AM
Lazortag Lazortag is offline
Planar Protector

Lazortag's Avatar

Join Date: Apr 2010
Posts: 3,635
Default

Quote:
Originally Posted by GODPARTICLE [You must be logged in to view images. Log in or Register.]
I explained the reasoning, as if .00007s is an overhead

As far as being a genius, I do like to brag

[You must be logged in to view images. Log in or Register.]
Cropped to hide MQ.
__________________
Project 1999 (PvE):
Giegue Nessithurtsithurts, 60 Bard <Divinity>
Starman Deluxe, 24 Enchanter
Lardna Minch, 18 Warrior

Project 1999 (PvP):
[50 (sometimes 49) Bard] Wolfram Alpha (Half Elf) ZONE: oasis
  #224  
Old 05-17-2013, 11:10 AM
Vile Vile is offline
Planar Protector

Vile's Avatar

Join Date: Nov 2009
Posts: 2,304
Default

Quote:
Originally Posted by hijinks [You must be logged in to view images. Log in or Register.]
Rogean,

Is it possible you could dump the logs of the PvP kills to a different public area where somebody else (as I doubt you have the time) could create a web page that tracks kill:death ratio for some sort of Leaderboard. If the data is readily available somebody else could make like a Sullon Zek type page, though I'm not sure how successful it would be with the population being where it's at currently. Need these changes like yesterday!

Make an API for me Rogean.. I will make a pwn leaderboard site.
  #225  
Old 05-17-2013, 11:13 AM
GODPARTICLE GODPARTICLE is offline
Banned


Join Date: Apr 2013
Posts: 85
Default

server needs leaderboards

[You must be logged in to view images. Log in or Register.]
  #226  
Old 05-17-2013, 12:08 PM
Vile Vile is offline
Planar Protector

Vile's Avatar

Join Date: Nov 2009
Posts: 2,304
Default

Quote:
Originally Posted by Vile [You must be logged in to view images. Log in or Register.]
Make an API for me Rogean.. I will make a pwn leaderboard site.
I'll even code the API and send to you for approval (you can input DB info etc..). I just need to see the table structure where you logging the PvP kill info...
  #227  
Old 05-17-2013, 12:11 PM
Rogean Rogean is offline
¯\_(ツ)_/¯

Rogean's Avatar

Join Date: Oct 2009
Location: Massachusetts
Posts: 5,381
Default

Quote:
Originally Posted by GODPARTICLE [You must be logged in to view images. Log in or Register.]
You want even more overhead? How about a write to innoDB

Or an update

Or an update for the entire group?


Somehow that read from a myISAM table ain't looking like that big a deal anymore?
And yet we have far more sophisticated tracking on numerous systems such as that in the game, as I'm sure you've seen.

Or have you?

http://www.rogean.com/images/p99sysencsearch.png
http://www.rogean.com/images/p99sysencdetails.png
http://www.rogean.com/images/p99sysnpctrade.png

Point of all this.. Those logging systems don't make a single database call from the zoneserver process.

Database queries are 10 years ago. Get on my level.
__________________
Sean "Rogean" Norton
Project 1999 Co-Manager

Project 1999 Setup Guide
  #228  
Old 05-17-2013, 12:18 PM
magician magician is offline
Banned


Join Date: Mar 2013
Location: NA
Posts: 935
Default

God what i'd do to see whats inside "Hackers"
  #229  
Old 05-17-2013, 12:20 PM
Rogean Rogean is offline
¯\_(ツ)_/¯

Rogean's Avatar

Join Date: Oct 2009
Location: Massachusetts
Posts: 5,381
Default

Quote:
Originally Posted by magician [You must be logged in to view images. Log in or Register.]
God what i'd do to see whats inside "Hackers"
Nothing, actually. It's a dead link. Page I never made. All the information is in the database, but there's no front end page for it. (Account table holds the flag, separate tables hold violation instances with information regarding type and details).
__________________
Sean "Rogean" Norton
Project 1999 Co-Manager

Project 1999 Setup Guide
  #230  
Old 05-17-2013, 12:26 PM
Splorf22 Splorf22 is offline
Planar Protector


Join Date: Mar 2011
Posts: 3,237
Default

I don't think anyone is claiming you haven't done a fantastic job.

We just wish you'd stop playing star wars and come back to it [You must be logged in to view images. Log in or Register.]
__________________
Raev | Loraen | Sakuragi <The A-Team> | Solo Artist Challenge | Farmer's Market
Quote:
Originally Posted by Arteker
in words of anal fingers, just a filthy spaniard
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:09 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.