Project 1999

Go Back   Project 1999 > Red Community > Red Server Chat

Closed Thread
 
Thread Tools Display Modes
  #1  
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?
  #2  
Old 05-17-2013, 12:11 PM
Rogean Rogean is offline
¯\_(ツ)_/¯

Rogean's Avatar

Join Date: Oct 2009
Location: Massachusetts
Posts: 5,377
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
  #3  
Old 05-17-2013, 12:41 PM
GODPARTICLE GODPARTICLE is offline
Banned


Join Date: Apr 2013
Posts: 85
Default

Quote:
Originally Posted by Rogean [You must be logged in to view images. Log in or Register.]
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.
So you store them locally in memory for awhile and take a big dump then, you don't avoid the database
  #4  
Old 05-17-2013, 12:42 PM
Rogean Rogean is offline
¯\_(ツ)_/¯

Rogean's Avatar

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

Quote:
Originally Posted by GODPARTICLE [You must be logged in to view images. Log in or Register.]
So you store them locally in memory for awhile and take a big dump then, you don't avoid the database
Bzzzzt
__________________
Sean "Rogean" Norton
Project 1999 Co-Manager

Project 1999 Setup Guide
  #5  
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!
  #6  
Old 05-17-2013, 11:10 AM
Vile Vile is offline
Planar Protector

Vile's Avatar

Join Date: Nov 2009
Posts: 2,305
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.
  #7  
Old 05-17-2013, 12:08 PM
Vile Vile is offline
Planar Protector

Vile's Avatar

Join Date: Nov 2009
Posts: 2,305
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...
  #8  
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.]
  #9  
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"
  #10  
Old 05-17-2013, 12:20 PM
Rogean Rogean is offline
¯\_(ツ)_/¯

Rogean's Avatar

Join Date: Oct 2009
Location: Massachusetts
Posts: 5,377
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
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 10:28 PM.


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 - 2026, Jelsoft Enterprises Ltd.