DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
Request for enhancement/assistance

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Server interfaces

Author

Message

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Tue Oct 24, 2006 5:26 pm    Post subject: Request for enhancement/assistance

Reply with quote


Lokorin,

it occurred to me that my scripts for processing my guild's EQ1 logs are already doing most of the work that DKPLP is doing, and I was looking to use the DKPLP plugin to shovel the data straight into EQDKP (basically, avoiding re-re-inventing the wheel, as it were Smile) by pre-calculating the Individual Adjustments. Unfortunately, there plugin, although it does most of what I need (add raid, add raid participant, add loot etc) it doesn't seem to be able to add individual adjustments.

Could you give me some pointers as to get this to work? Or consider it an enhancement request for the plug-in, to be able to add individual adjustments?

Here's an example of what we post in our forums, and hence what I'm planning to use as the basis for the parser script to upload:

Code:
RAIDLOG
Shyra_Rikkukin-03_10_06
Igron:name@email.address
Rasdom:2000:Bazu Stone
Buenivere:1025:Reinforced Helmet of Cold Shadows
Explodius:500:Jade Water Beach Sandals
Gukak:600:Eye of Rikkukin
Chipwah:1500:Reflective Platinum Leggings
Jondalar:2150:Choker of One Hundred Diamonds
loot_end
Ainilye          20:43:11 21:54:11 01:11:00  120 (Total)
Ancaglon         20:00:18 21:54:11 01:53:53  190 (Total)
Armida           20:00:18 21:54:11 01:53:53  190 (Total)
Backoya          20:00:18 20:42:19 00:42:01   70 (Total)
Baidas           20:00:18 21:54:11 01:53:53  190 (Total)
Bekstabber       20:44:55 21:54:11 01:09:16  110 (Total)
Boor             20:00:18 21:54:11 01:53:53  190 (Total)
Buenivere        20:00:18 21:54:11 01:53:53  190 (Total)
Cathbad          20:00:18 21:54:11 01:53:53  190 (Total)
Celidar          20:00:18 20:44:46 00:44:28   70 (Total)
Chipwah          20:00:48 21:31:51 01:31:03  150 (Total)
Conrad           20:00:18 21:54:11 01:53:53  190 (Total)
Daske            20:00:18 21:54:11 01:53:53  190 (Total)
Eviil            20:00:18 21:54:11 01:53:53  190 (Total)
Gaennen          20:00:18 21:54:11 01:53:53  190 (Total)
Gaminide         21:28:15 21:54:11 00:25:56   40 (Total)
Gukak            20:00:18 21:54:11 01:53:53  190 (Total)
Hipposlayer      20:00:18 21:54:11 01:53:53  190 (Total)
Igron            20:00:18 21:54:11 01:53:53  190 (Total)
Iwanta           20:00:18 21:54:11 01:53:53  190 (Total)
Jondalar         20:00:18 21:54:11 01:53:53  190 (Total)
Kanekax          21:33:36 21:54:11 00:20:35   30 (Total)
Kanheel          20:00:18 21:54:11 01:53:53  190 (Total)
Kardin           20:00:18 21:54:11 01:53:53  190 (Total)
Leila            20:48:39 21:54:11 01:05:32  110 (Total)
Nexoe            20:00:18 21:54:11 01:53:53  190 (Total)
Pepster          20:00:18 21:54:11 01:53:53  190 (Total)
Quorthon         20:00:18 20:58:05 00:57:47   90 (Total)
Quorthon         21:05:15 21:53:54 00:48:39   80 (Total)
Rabiel           20:00:18 21:54:11 01:53:53  190 (Total)
Rasdom           20:00:18 21:54:11 01:53:53  190 (Total)
Saraleb          20:00:18 21:54:11 01:53:53  190 (Total)
Sarcoptes        20:00:18 21:54:11 01:53:53  190 (Total)
Sardokann        20:00:18 21:54:11 01:53:53  190 (Total)
Shadowflin       20:00:18 21:54:11 01:53:53  190 (Total)
Sinhuit          20:00:18 21:54:11 01:53:53  190 (Total)
Sleanos          20:00:18 21:54:11 01:53:53  190 (Total)
Winladariel      20:48:25 21:54:11 01:05:46  110 (Total)
Yertiow          21:02:41 21:54:11 00:51:30   80 (Total)
Zedman           20:00:18 21:54:11 01:53:53  190 (Total)

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Tue Oct 24, 2006 11:52 pm    Post subject:

Reply with quote


Actually, I think I see how to do that in via the Add Day operation, via the "DKPLP_REP_INDIVIDUAL_ADJUSTMENTS" representation.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Wed Oct 25, 2006 5:32 pm    Post subject:

Reply with quote


The specification has been updated. As you have found most of the real work is done through the Add Day function, which handles the representation. There are also some deprecated functions allow better control, Add event is the one that handles individual adjustments.

If I have understood correctly then you want each reward to be given as an individual adjustment and the loot to be associated with some additional raid. If you want to use Add Day then the following should work: Create a separate event for each amount that should be rewarded, assign the corresponding participants and then upload the day with the following representations (the values associated with the following constants in the getAvailableRepresentations function):

Day: DKPLP_REP_NONE
Loot: DKPLP_REP_REW_AND_EVENTS
Reward intervals: DKPLP_REP_RAIDS
Events: DKPLP_REP_INDIVIDUAL_ADJUSTMENTS
HPB: DKPLP_REP_RAIDS

Please ask if you run into any trouble or have any questions. I'm glad that the plugin is found useful outside of DKP Log Parser.

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Thu Oct 26, 2006 12:05 pm    Post subject:

Reply with quote


Got it working as a standalone script Smile

I think I need to understand the Serializer in Perl's SOAP::Lite package a bit better, I've ended up serializing practically the whole request by hand to match what DKPLP sends... Smile

Next step, convert it into a CGI so our officers can paste a pre-processed log like the above and have it injected into EQDKP...

Back to top

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Server interfaces All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
SoftGreen 1.1 phpBB theme © DaTutorials.com 2005