phpBB Forum

It is currently Tue 22. May 2012, 11:37

All times are UTC + 1 hour

Forum rules


Hello dearest user and welcome to our EQDKP-Plus support forum.

Please read the following rules and terms before posting anything! Failure in doing so will result in being ignored or being banned. Posting in our boards means you have read, understood and accepted those rules.

English Board Rules – Click here



Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
Offline
 Post subject: BossSuite and LOTRO
PostPosted: Sun 23. Mar 2008, 01:03 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
Hi

What is the best way to ask for extensions to the LOTRO support? There are some instances and Bosses missing. I'd be happy to help document them, but want to do it in the most useful way possible.



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 01:21 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:04
Posts: 1372
Hm, well the best way for extensions is to create them ;)

For a better basic support you need 3 files:

[b]1) plugins/bosssuite/games/LOTRO/bzone.php[/b]

This file contains an array with zone and boss ids. Those ids have to be unique within the whole game, should be all lowercases and should not contain to funky special chars because they are used as filenames later on. The structure of the array should be self explanatory, if not, just ask again.

[b]2) plugins/bosssuite/games/LOTRO/lang/LANGUAGE/lang_bossbase.php[/b]

Again this file should be self explanatory, within you assign a long and a short name for each zone/boss.

[b]3) plugins/bosssuite/games/LOTRO/linklist.php[/b]

This file might look confusing, but it's also quite easy. It handles the mapping from the internal ids used within the bosssuite and assigned in the bzone array to external ids used on fansites.

There are to arrays:
1) The sources array

$sources = array(
'allakhazam' => array('name' => 'Alakhazam', 'idlist' => 'default', 'baseurl' => 'http://lotro.allakhazam.com/db/bestiary.html?lotrmob='),
);


It contains a list of fansites with their name, the link url and the assigned link-id list whereas the link-id list is specified in the next array.

2) the link-id array:

$idlist['default'] = array(
/******Miscellaneous bosses*****/
'ferndur' => '6109',
'bogbereth' => '12397',
);

It just maps the internal id to the link id which will be appended to the url specified in the sources array. You might change the default mapping or add your own.

Simple :]



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 12:00 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
I was hoping for a nice easy text format :)

I don't have much php experience, but I'll give it a try anyway. Is there a way I can send the files back to the author or should I just be creating my own local versions?



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 13:57 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
Hi

I think I've done it, but I did have a question over the links.

Can I edit the section that defines the base link:

$sources = array(
'allakhazam' => array('name' => 'Alakhazam', 'idlist' => 'default', 'baseurl' => 'http://lotro.allakhazam.com/db/bestiary.html?lotrmob='),
);

to say something like:

$sources = array(
'lotro-wiki' => array('name' => 'LOTRO Wiki', 'idlist' => 'default', 'baseurl' => 'http://www.lotro-wiki.com/index.php/'),
);

and pass in

'bogbereth' => 'bogbereth',

in the detailed section. The issue being that Allakhazam doesn't seem to have any of the LOTRO bosses listed. I can't seem to see where this link is used to be able to test it.



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 14:18 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:04
Posts: 1372
Yes, you can either change the existing entries or just add new ones like:


$sources = array(
'allakhazam' => array('name' => 'Alakhazam', 'idlist' => 'default', 'baseurl' => 'http://lotro.allakhazam.com/db/bestiary.html?lotrmob='),
'lotro-wiki' => array('name' => 'LOTRO Wiki', 'idlist' => 'wiki', 'baseurl' => 'http://www.lotro-wiki.com/index.php/'),
);


And then add a new idlist like:

$idlist['wiki'] = array(
/******Miscellaneous bosses*****/
'ferndur' => 'ferndur',
'bogbereth' => 'bogbereth',
);


Whatever you prefer.

ps: If you want me to add it to the BossSuite package (I'd appreciate that) you could either post the files here in [ code ] Tags or send them to me via pm/e-mail. And please tell me, whether and by what name/nickname you want to be mentioned in the credits.



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 15:12 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
Great. I am testing now and will let you have the stuff when I am happy it is OK. Where are the links invoked from? I can't seem to see anywhere where there is a external url displayed so that I can test them.



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 15:23 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:04
Posts: 1372
Go to the settings page, then choose the bosscounter/bossprogress tab. There should be link settings and you should be able to select your lotro-wiki entry. After pressing the save button bosscounter/bossprogress should link to lotrowiki :)



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Sun 23. Mar 2008, 15:58 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
Thanks, got it now. I have sent you a PM with the files attached



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Tue 25. Mar 2008, 18:25 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:04
Posts: 1372
Maybe you could give some feedback as a php starter whether it was easy to add those lotro stuff, or whether the istructions could be more detailed, because I want to add it to the usage page someday.



Top
 Profile  
 
Offline
 Post subject:
PostPosted: Wed 26. Mar 2008, 16:11 
User avatar

Joined: Sun 3. Feb 2008, 14:08
Posts: 97
I certainly found it pretty easy to update the files and the instructions quite straightforward to follow.

I realised after the event that the linklist.php seems a little odd as it allows me to define multiple sources but only one entry per item which means that both sources would have to have the same extension to the url which seems unlikely. I may have missed the possibility to extend each item in the array of course.

Many thanks for the advice and responsiveness



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

(C) The EQdkp-Plus Developer Team
EQdkp Plus Template by Ramon Kaes