GithubHelp home page GithubHelp logo

ship_display_tool's People

Contributors

chrissheppard41 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ship_display_tool's Issues

Division by zero in FittingTools::remoteRepStats()

Encountered a kill throwing Division by zero errors with the following stacktrace:
WARNING [2] Division by zero
Error on line 1242 in file /www/htdocs//_//killboard/mods/ship_display_tool/init.php
PHP 5.2.12-nmm4 (Linux), EDK 4.2.1.0 (Kronos 1.0)
File: /www/htdocs/_
_/killboard/mods/ship_display_tool/init.php, line: 1242, class: EDKError, function: handler
File: /www/htdocs/
__/killboard/mods/ship_display_tool/init.php, line: 635, class: FittingTools, function: remoteRepStats
File: /www/htdocs/
__/killboard/mods/ship_display_tool/init.php, line: 351, class: FittingTools, function: getExtraStats
File: /www/htdocs/
__/killboard/common/includes/class.pageassembly.php, line: 80, function: call_user_func_array
File: /www/htdocs/
__/killboard/common/includes/class.pageassembly.php, line: 44, class: pageAssembly, function: call
File: /www/htdocs/
__/killboard/common/kill_detail.php, line: 1620, class: pageAssembly, function: assemble
File: /www/htdocs/
__/killboard/common/index.php, line: 303, function: include
File: /www/htdocs/
_**/killboard/index.php, line: 27, function: include

Link to kill causing this problem: http://public-crest.eveonline.com/killmails/39436269/be5b4f7a6e8b98c3438c2e48f1e849da4695c899/

Apply bugfix to EDK item list class

There has been a bug in class.itemlist.php since the release of EDK 4.2, causing items in the "None" bay (Inventory Flag 0) to be displayed with their quantity doubled.
This bug has been fixed with commit evekb/evedev-kb@2752cd4 , but since the mod brings its own version of the library, this bug has been inherited and needs to be fixed there as well

Error on line 514 in file /var/www/killboard/mods/ship_display_tool/Libs/Fitting.class.php

I'm unsure if this is a problem due to my configuration or something you need to fix in the code?

Getting this at the top of the screen when opening a kill:

DEPRECATED [8192] Non-static method Calculations::calculateMass() should not be called statically, assuming $this from incompatible context
Error on line 514 in file /var/www/killboard/mods/ship_display_tool/Libs/Fitting.class.php
PHP 5.6.16-2+deb.sury.org~trusty+1 (Linux), EDK 4.2.17.0 (Frostline 1.0)
File: /var/www/killboard/mods/ship_display_tool/Libs/Fitting.class.php, line: 514, class: EDKError, function: handler
File: /var/www/killboard/mods/ship_display_tool/init.php, line: 309, class: Fitting, function: getShipStats
File: /var/www/killboard/common/includes/class.pageassembly.php, line: 80, function: call_user_func_array
File: /var/www/killboard/common/includes/class.pageassembly.php, line: 44, class: pageAssembly, function: call
File: /var/www/killboard/common/kill_detail.php, line: 1731, class: pageAssembly, function: assemble
File: /var/www/killboard/common/index.php, line: 319, function: include
File: /var/www/killboard/index.php, line: 27, function: include

Scan Resolution / Targeting Range Scripts imply existence of Sensor Booster

If the mod finds Scan Resolution or Targeting Range Scripts fitted on a ship it automatically assumes there are also Sensor Boosters fitted. But if there only are Remote Sensor Boosters, it tries to access an array which is NULL, causining multiple warnings.

Add a check if there are really sensor boosters before trying to access the sensorbooster array in the Fitting class: https://github.com/chrissheppard41/ship_display_tool/blob/eve42/Libs/Fitting.class.php#L1441-L1448

Example kill CREST link: http://public-crest.eveonline.com/killmails/40926839/6ac342f9bcf6b9e6a2a05fdf6fe564fccce4243f/

Enhancement: Expose a kill's CREST link

As of EDK 4.2.2.0 a kill's CREST link is exposed when not using any kill_detail mods.
To maintain this functionality, expose a kill's CREST link (perhaps as link in the source field).
The Kill class has a method called getCrestUrl(), which returns either the kills CREST link or NULL, if the kill has not been posted via CREST (see https://github.com/evekb/evedev-kb/blob/4.0-dev/common/includes/class.kill.php#L1824).

Perhaps even add "CREST" as new source type for a kill.

Missing ammo if no ammo used in first high slot

If the first high slot of a ship does not have a weapon fitted using any ammo, all other fitted weapons using ammo are regarded as empty, even if they were not at the time of the kill.
Example: First high slot is a neutralizer, the missiles in the other launcher are disregarded (http://kb.bunkerhub.de/?a=kill_detail&kll_id=320900)

Example: First high slot is a launcer, ammo is recognized correctly (http://kb.bunkerhub.de/?a=kill_detail&kll_id=320829)

The problem seems to be in the Statistics::slot() method, which looks for ammo explicitly in the first High or medium power slot (disregarding charges for ancillary armor reppers in the low slots).

Wrong reference to Statistics class

The PHP class in Libs/Statistics.class.php is actually called "Statis_i_tics" (without the _). It is correctly referenced as such throughout the Fitting class except in lines 1643 and 1645, where it is referenced as (correctly spelled) "Statistics" and thus is not found.

Fatal error: Class 'Statistics' not found in /www/htdocs/******/killboard/mods/ship_display_tool/Libs/Fitting.class.php on line 1645

Additionally, in line 1645 parameter 5 is an Integer, which cannot be passed as reference, as expected for that parameter by the method called, leading to:
Fatal error: Cannot pass parameter 5 by reference in /www/htdocs/******/killboard/mods/ship_display_tool/Libs/Fitting.class.php on line 1645

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.