Add option to hide pos modules from main page

Development information and discussion about EDK.
Post Reply
Depili
Greenhorn
Posts: 32
Joined: Wed May 05, 2010 11:16

Add option to hide pos modules from main page

Post by Depili »

As pos mod kills tend to come in the dozens at a time they can easily make up for the most of kills shown on the main page when multiple towers go down and thus having an option to hide them like noobships and pods would be nice.

I have hacked our kb to do so via editing the noobship ignore function to also ignore kills in the pos module category but a more official method that doesn't get broken with new releases would be really nice to have.
wyattwic
Active Author
Posts: 140
Joined: Wed Sep 01, 2010 08:21

Re: Add option to hide pos modules from main page

Post by wyattwic »

Although this would be a great idea, I think this would be better suited to go into a mod.

How you would do this, I have no idea.
NOTE: No longer in game!


A question that sometimes drives me hazy: am I or are the others crazy?
Logic will get you from A to B. Imagination will take you everywhere.
dafinga
Noob
Posts: 1
Joined: Sun Dec 07, 2008 09:01

Re: Add option to hide pos modules from main page

Post by dafinga »

Anychance that change went threw or any possible way to hide the pos mods from front page ?
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Add option to hide pos modules from main page

Post by Salvoxia »

Hi,

I'm afraid this change won't make it into 4.2.
But here's how you can hide pos modules from the front page:

open common/includes/class.killlist.php and find the following code block:

Code: Select all

public function setPodsNoobShips($flag)
	{
		if (!$flag)
		{
			array_push($this->exclude_scl_, 2);
			array_push($this->exclude_scl_, 3);
			array_push($this->exclude_scl_, 11);
AFTER that, append

Code: Select all

array_push($this->exclude_scl_, 38);

That will hide POS Modules from the front page if you have deactivated the option "Include Capsules, Shuttles and Noobships in kills" in ACP -> Global options.


Regards,
Salvoxia
Eek
Someday Author
Posts: 73
Joined: Fri Dec 17, 2010 00:20

Re: Add option to hide pos modules from main page

Post by Eek »

I've deployed this change as well on my KB and it works perfectly!

I've also blocked a few other classes from view, like Fighters (49), Infrastructure Modules (41), Custom Office (44) and Deployable Structure (45).. Imho these don't really belong on a killboard.
Post Reply