[EDK3] rank_mod 1.01 - custom pilot ranks, medals and stats

Discuss/Upload mods to the EVE-Dev Killboard.
Post Reply
User avatar
bora
Junior Expert
Posts: 112
Joined: Sun May 16, 2010 19:24
Location: HABIT / Pandemic Legion

[EDK3] rank_mod 1.01 - custom pilot ranks, medals and stats

Post by bora »

Ok guys, I am opening a new thread as the old one started to get confusing.
You can find the previous problems and ideas in the previous thread.

current version: 1.01

Requirements:
PHP 5
EDK 3.2 or later

What it does:
display custom graphics as rank, medals and ribbons based off user defined kill based awards.

Example:
This is how it should look like: Sample Killboard (testing environment, might have some errors!)
example_pilot_medalbox_stats.png
example_pilot_medalbox_stats.png (61.8 KiB) Viewed 29713 times
Unbenannt-1.png
Unbenannt-1.png (114.17 KiB) Viewed 29861 times
example_medaldetail.png
example_medaldetail.png (167.24 KiB) Viewed 29713 times
Affected scripts:
pilot_detail.php

Any modules having custom scripts for these pages might be overridden (working on improving this).
See the discussion for fixes (only if you are good with php)

How to Install:
1. Download it
2. please read README.txt for version related informations/warnings
3. unzip into mods directory (usually /mods)
4. login as admin, open modules admin and click settings for the rank_mod module
5. select the options you wish and assign ships to the categories as you wish
6. run all 6 config pages, and click save on each
7. enable the mod in module admin
8. check pilot detail or awards page to see awards (make sure the pilot qualifies for some)

Download:
Download link: version 1.01

Donations:
If you like this mod, feel free to send some ISK to Chro'Tal for continuous updates/fixes. ;-)

Changelog:

Code: Select all

recent changes:

- added new faction warfare ranks and insignias for Minmatar and Gallente
- added warnings in admin interface so people are remembered to SAVE settings before using the module

- temporarily removed some ranktitle sets, they will be reactivated in later releases - their images are still available!

- changed the array layout for settings_defines ranksets, if you had customer image/titlesets make sure you convert them
- changed ribbons and medals in medal box so they show up as if they were hanging on your uniform. ribbons ABOVE medals

- fixed calculation error on frontpage stats in boards which used weekly statistics
- fixed up some error messages people had when they did not configure the module correctly

in progress:

- campaign medals linked to existing campaigns.
- ribbons for kills by regions
- make admin page for managing survival/efficiency descriptors and thresholds instead of using a settings file

TO DO with priority from * least important to **** very important:

[****] - change programming so awards are not generated real time but also save to DB and only periodically update
[*** ] - improve performance issues with corp ranks page, PAGING might be a good idea - improving perf. is not really possible the way it is coded right now
[**  ] - change programming of pilot_detail so it goes along with other mods (tough one!)
[**  ] - detailed pilot view of awards and progression towards each ribbon etc
[*   ] - integrate custom medals / uploading images via settings (tricky one...) at least make it possible to rename them

user wishlist:

[**  ] - change ribbons to png with 3 different size/qualities
[**  ] - merge rank insignia into cached pilot portraits (http://eve-id.net/forum/viewtopic.php?p=37279#p37279)
[*   ] - look into making the mod compatible with multiple site instances run on a server!

Last edited by bora on Tue Jun 14, 2011 11:39, edited 27 times in total.
dirg
Greenhorn
Posts: 20
Joined: Sun Jul 26, 2009 13:27

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by dirg »

After installing the mod, the last update says this Last Update: NEVER - Please run "check tables"

There is no option for Check tables, should it say 'Check awards'

Also, I notice the ribbons/medal images do not load. http://spacecads.com/killboard/?a=pilot ... t_id=39012

just checked and it looks like its not resolving say www.spacecads.com/killboard/ I've altered a line for one of the .tpl files and put /killboard/ before /mods/rank_mod/ and it is now displaying the medals.

Thanks
Blake
Someday Author
Posts: 88
Joined: Sat Jan 24, 2009 20:53

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by Blake »

now this prob due to it being on my test board which is running 3.2 but i get this when i click check awards/tables

Code: Select all

NOTICE [1024] Using TopPodKillerList is deprecated. Use TopKillsList and set ship classes as needed.
Error on line 677 in file /home/******/public_html/test/common/includes/class.toplist.php
PHP 5.3.4 (Linux), EDK 3.2.0 Beta (Incursion)
File: /home/******/public_html/test/common/includes/class.toplist.php, line: 677, function: trigger_error
File: /home/******/public_html/test/mods/rank_mod/settings.php, line: 353, class: TopPodKillerList, function: TopPodKillerList
File: /home/******/public_html/test/common/index.php, line: 334, function: include
File: /home/******/public_html/test/index.php, line: 26, function: include
Every thing seems find thou
Image
User avatar
bora
Junior Expert
Posts: 112
Joined: Sun May 16, 2010 19:24
Location: HABIT / Pandemic Legion

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by bora »

I will look into these problems when I get to work on monday.
Need to upgrade to newest edk myself to see the messages I guess.

As for images, thats from runnign it in a subdirectory, I thought I fixed that.. strange!
Kovell
Veteran
Posts: 1036
Joined: Wed Nov 26, 2008 13:35

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by Kovell »

Blake wrote:now this prob due to it being on my test board which is running 3.2 but i get this when i click check awards/tables

Code: Select all

NOTICE [1024] Using TopPodKillerList is deprecated. Use TopKillsList and set ship classes as needed.
Error on line 677 in file /home/******/public_html/test/common/includes/class.toplist.php
PHP 5.3.4 (Linux), EDK 3.2.0 Beta (Incursion)
File: /home/******/public_html/test/common/includes/class.toplist.php, line: 677, function: trigger_error
File: /home/******/public_html/test/mods/rank_mod/settings.php, line: 353, class: TopPodKillerList, function: TopPodKillerList
File: /home/******/public_html/test/common/index.php, line: 334, function: include
File: /home/******/public_html/test/index.php, line: 26, function: include
That is specific to the 3.2 beta, and would actually work in a live version as well since there you would turn off NOTICE level warnings. Making the change suggested also works on both old and new boards, though.
User avatar
KrabKley
Greenhorn
Posts: 16
Joined: Wed Jun 25, 2008 09:38
Location: Moscow

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by KrabKley »

KB 3.1.8 + 0.98b, No images!
http://eve.rmt-zone.com/killboard/?a=pi ... &plt_id=14
wrong path to the images.
In my case the missing "/ killboard /"

Not true
http://eve.rmt-zone.com/mods/rank_mod/i ... killer.png

True
http://eve.rmt-zone.com/killboard/mods/ ... killer.png

PS. And please Repack the files normally.
User avatar
bigsteve
Someday Author
Posts: 96
Joined: Sat Jun 14, 2008 20:24
Contact:

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by bigsteve »

i thin that the image path should not be hard scripted as /mods/rank_mod or /killboard/mods/rank_mod, as alot of boards dont use the the killboard dir, may be it should get the dir and use it as a function or what ever u call it..
Killboard Update/Install Service.
Installation & Upgrade to version 4.0 available now. Please Ask for Costs.
Helping you all out.

Image

EVE is life, Life is EVE
That's it pick on the minority. Bigots.
User avatar
bora
Junior Expert
Posts: 112
Joined: Sun May 16, 2010 19:24
Location: HABIT / Pandemic Legion

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by bora »

I will look into it on monday. Is there a config variable which already holds the path to the killboard? if so i will use that to prefix the module directory and all should be fine.
Kovell
Veteran
Posts: 1036
Joined: Wed Nov 26, 2008 13:35

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by Kovell »

For the images I think you could just use "mod/..." without the first slash. To give a full url you can get the board's address from config::get('cfg_kbhost') - or use $_SERVER constants.
User avatar
bora
Junior Expert
Posts: 112
Joined: Sun May 16, 2010 19:24
Location: HABIT / Pandemic Legion

Re: [EDK3] pilot rank, medals and ribbons a.k.a. rank_mod

Post by bora »

right now it is src="mods/rank_mod/images/awards/{$medal.medal_filename}.png" so I don't understand why it is not working for people who use it in subdirectories...

the only thing i need to modify is the rank picture.
Post Reply