Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2008, 04:44 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

How can the 'blob' data in profile be read and/or edited? I'm wishing I had the knowledge to work on this, as I'd love to see it happen.
Reply With Quote
  #2  
Old 01-23-2008, 07:10 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Here is how I read it using PHP: Convert profile blob to useful data (Wiki).

A more up-to-date version of this can be found on Sourceforge: profile & functions. The same idea (substr()) can be used in pretty much any computer language.

Putting it back is basically the reverse, by putting all of the data back into one lump, then updating it into the database.

I haven't tried this yet, although I did create a PHP utility to directly view the contents of the blob (not on Sourceforge yet, but will eventually be located here) with the intent of eventually being able to edit it directly from the same utility (like a hex editor), then moving to a more user friendly interface. My only concern about updating directly into the profile is that there is a Checksum field at the very beginning, and I'm not sure if it would cause any problems if you do modify it.

The hard work of breaking down what's where has been done, so all of the information you need should be there. From there, you'll just need to figure out the best way to inject the changes.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 01-30-2008, 08:41 PM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Unhappy

perhaps it is more difficult that i thought and we will have to wait years before to see AA titles in eqemu
Reply With Quote
  #4  
Old 01-30-2008, 10:13 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Something else to contribute...

I found this in the Wiki: $client->SetAATitle(txt).

When I executed it in a quest:
Code:
sub EVENT_SAY {
	if ($text=~/aa title/i) {
		my $aatitle = "Baron";
		quest::say("Setting AA Title to $aatitle.");
		$client->SetAATitle("$aatitle");
		quest::say("AA Title set to $aatitle.");
	}
}
It went through the script ok, but I didn't see the title on the client, even after relogging. However, when I checked the profile blob, it did set title field to "Baron":
Code:
02384 42 61 72 6F 6E 00 00 00 00 00 00 00 00 00 00 00 B a r o n
So, it looks like the code is even there to set the title, but it isn't being sent to the client, or the client isn't seeing it.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #5  
Old 02-04-2008, 03:30 AM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default

it is nice to see any advancement, perhaps we need to do any opcodes research??
Reply With Quote
  #6  
Old 02-04-2008, 09:55 AM
TheLieka
Developer
 
Join Date: Oct 2004
Location: THE ATL (wut wut)
Posts: 325
Default

client_packet.cpp
Code:
void Client::Handle_OP_SetTitle(const EQApplicationPacket *app) {
//	m_pp.title[0] = '\0';
	//TODO: send some sort of update struct to everybody.
}

void Client::Handle_OP_RequestTitles(const EQApplicationPacket *app) {
	//zero length request
	//TODO: get the titles from somewhere, and ship em off
	
}
and

titles.cpp
Code:
TitleManager::TitleManager() {
}
I don't think the server's side is done. I'm more of a code tweaker, I don't have a clue where to start with something like this. Also when you open your titles window you get
Code:
[Debug] Unable to convert EQ opcode 0x5eba to an Application opcode.
[Debug] [CLIENT__NET_ERR] Death: Unhandled incoming opcode: [OpCode OP_Unknown (
0x5eba) Size=0]
Dax
__________________
Daxum



Former ServerOp - Vallon Zek / Tallon Zek Emu Server - Legit / Guild PvP - (2007 - 2011 RIP)
Reply With Quote
  #7  
Old 02-04-2008, 10:04 AM
TheLieka
Developer
 
Join Date: Oct 2004
Location: THE ATL (wut wut)
Posts: 325
Default

To clarify: that's the current code that's in place - I didn't write any of it.

According to the comments in the code, you're supposed to use this table for the merit based titles.

Code:
create table titles (
	id int UNSIGNED primary key AUTO_INCREMENT,
	skill_id tinyint UNSIGNED NOT NULL,
	skill_value mediumint UNSIGNED NOT NULL,
	aa_points TINYINT UNSIGNED NOT NULL,
	title varchar(32) NOT NULL
);
Dax
__________________
Daxum



Former ServerOp - Vallon Zek / Tallon Zek Emu Server - Legit / Guild PvP - (2007 - 2011 RIP)
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:54 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3