exodus4d / pathfinder Goto Github PK
View Code? Open in Web Editor NEWMapping tool for EVE ONLINE
Home Page: https://www.pathfinder-w.space
License: MIT License
Mapping tool for EVE ONLINE
Home Page: https://www.pathfinder-w.space
License: MIT License
Systems with a true sec of 0.45+ are showing as low sec, they're actually still 0.5.
I'd guess line 73 of app/main/data/mapper/ccpsystemsmapper.php
would be where this should be changed since this is set to < 0.5 currently.
Add a Gulp (http://gulpjs.com/) based build process for all frontend ressources.
Combine current js, css build steps into a single build process
The long-term goal is to remove compass (vendor prefixes + macros) and switch to (https://www.npmjs.com/package/gulp-sass) .
On inspection it appears the models are not updated to what they are being used for.
Specifically when generating the tables with cortex.
Hello again,
I receive a ERR_CONNECTION_REFUSED when I try to access pathfinder (Probably because I don't have mod_ssl enabled, and I don't want to enable it, plus I don't have a certificate to use with it)
Is there any way to disable HTTPS in pathfinder ? (I even tried commenting out some rewrite rules but it keeps redirecting me to HTTPS, you probably hardcoded it :/ )
Thanks.
The z-Killboard integration should be implemented as a backend PHP Service instead of frontend Ajax requests directly to the API.
pro:
The issue can be found at https://github.com/exodus4d/pathfinder/blob/master/app/main/controller/controller.php#L178
The use of apache_get_headers
is not available when running php-fpm under nginx (obviously). To get around this, I added the following code:
// apache_request_headers replicement for nginx
if (!function_exists('apache_request_headers')) {
function apache_request_headers() {
foreach($_SERVER as $key=>$value) {
if (substr($key,0,5)=="HTTP_") {
$key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5)))));
$out[$key]=$value;
}else{
$out[$key]=$value;
}
}
return $out;
}
}
I'm sure there may be a better solution, but this got me up and running quickly.
In order to make the registration process more transparent for new user. It would be nice to send Emails with account information (username + password) to new users.
This also counts for existing users who change their password.
Hint: New accounts are ready active right after the first registration step is accomplished. Required API information can be added in "map view" aswell.
I have completed a successful install of this program by reverse engineering the static database info that is needed to power the mapping system. Based on my work I would like to open some tickets for better structuring this app for public consumption.
The first major suggestion will be to remove all dependencies that are distrubited with this application and use package managers to effectuate a build and install system around them.
There are many issues right now with trying to use this app in a semi-production environment while keeping up with alpha/beta frequency changes to things like ini setting files that are potentially overwritten when we do a git pull
on our local clones.
Setting up your php dependencies to use composer will greatly help get this setup and working correctly. We can write tasks to help setup the project and change the app around internally so that your not committing your production pathfinder.ini settings to this repo.
So, to have a list of things I am suggesting with this issue:
I would heavily consider using the Symfony Console and Symfony Process components to build out the installer features listed above. Then we can reuse it to enable things like proper crontab executed jobs that dont block for unlucky users and helper functions to do interesting things with the site.
I am attempting to get a working instance of this setup, however I cannot find any sql file or any function that creates the needed tables.
[Sun Aug 30 01:40:22 2015] PDOStatement: Table 'pathfinder.user' doesn't exist
[Sun Aug 30 01:40:22 2015] [app/lib/base.php:2015] Base->error(500,'PDOStatement: Table 'pathfinder.user' doesn't exist')
The tooltip position (player count) in wrong. If the system is not visible (map scrolled to the left) and the player tooltip updates, the positon of the tooltip is not displayed correctly.
Solution: Add "viewport" param to tooltip.
Users should be able to delete/remove their account
TODO:
Step 2 of the registration (API Key),
link for API key setup did bring me to API Key Management but not to the "update page" ( Home > Support > API Key Management > Update ) where there would be adjustments selected.
while trying to find the information for the correct minimum API key adjustments I either got auto logged off or missklicked and closed the Pathfinder registration-page, which resulted in not finishing the registration.
After trying to register again I get a "500: save config error internal Server Error" and "Error email already exists" message. Seams like my email is saved although the registration is not finished/valid.
Login with the first selected name and password is not working ("wrong name and password" message).
Last thing I would have tried was to request a new password (might be i misswrote the name?), but I could not find any "forrgot/request password" button.
Hi there, my corp put up a beta server to give this tool a try but I'm not the one hosting it so I don't have access to the logs and reports in general.
Take this as a quick feedback on the first few hours of use. I must say I was rather impressed, everything works pretty well or at least it's not utterly broken which is already something for the state of the early beta. I spotted only one major problem and it's about the sig updater. It basically loops indefinitely and doesn't add the sigs. Selecting and "deleting all" gave me a msg of "1 sig to delete, confirm?" kind of msg, and this went on for a while untill for some reason they all got deleted finally. Problem is during and after this looping the tool loses track of my position. I'm basically stuck in the system where the sig updater looped and this is pretty bad. Closing the browser and re-opening it doesn't fix the problem as long as the sig updater is looping. Also, cpu spike on my task manager. I tried to copy and paste the log output in my client but it didn't work, same with the "download .cvs" at least I didn't find it. It was a problem updating client data of some sort though and I suppose it is mostly related to the IGB actually because I had pathfinder running on win too and at least it did add the new systems I was jumping into even if it still showed me on the "one in loop". This was not happening in the IGB.
Other lil issue spotted: not sure exactly why and when but sometimes it doesn't create the connections when jumping in a new hole, especially when you're running a private map aside the master one. It looks like it updates only the active one and then adds the system on the other one (no connection though) if you switch tab for a while. This means if you stay on a private map for say 5 jumps, those won't be recorded on the master one. It seems also like it loses the tracking of my position on the master map if I hop into a private one and I jump off system. I still can add the systems manually but it's a bit awkward.
Another small thing not working as intended is the poke on rally points. I'm not sure what it should do but I don't get any notification nor ping in windows when me or someone else adds a rally point in a shared map. I can see the flashy system in the win browser but no notification/alarm.
Ok sorry for the wall of text, hope it was useful. The tool is pretty awesome, have a nice day and code harder o7
π
After returning to a system (in this case, Cuba) a weird connection pops up. Easy to delete but somewhat annoying.
System tooltips (player count) are broken after jumping between the same systems multiple times.
Mouse over schows a broken tooltip (visible HTML within this tooltip)
After getting a beta-key by mail and starting the registration process the system presents a dialog asking for the API-keys. I created a new key and copied the info into the dialog.
When clicking "next" the attached message comes up.
(To be precise, first i clicked "add" and then "next", realized that now the dialog contained 2 fields, one being empty, and removed the empty field again. In any case the error stays the same.)
The static wormhole(s) of a system should be visible in the system detail view.
Fill the static table "wh_statics" with data and make the WH data visible.
In the current version (v.0.0.13
) all user SESSION data is file base stored in the default location (check php.ini
session.save_path) -> usually something like "/tmp
" (PHP default behaviour)
With the upcoming version (v.0.0.14
), the SESSION handling will be moved to the DB (MySQL).
Advantages:
More infos: F3 Session
The php implementation of apache_request_headers in windows based versions of php alters the case of the returned IGB header information. This in turn means that the IGB header information is not parsed correctly.
Under XAMP, the header data returned is "EVE_TRUSTED"
Under Windows the Header data is "Eve-Trusted"
File : app\main\controller\controller.php
Line: 115 thru 130
Need to review case sensitivity and underscore/dash characters when parsing this data. See http://php.net/manual/en/function.apache-request-headers.php for other options.
I'm trying to setup pathfinder on my debian box and have databases configured and apache2 all going, but I get an ambiguous error when attempting to load the index.php page in my apache logs:
mkdir(): Permission denied PHP Fatal error: Invalid class Controller\\Controller in ~/pathfinder/pathfinder/app/lib/base.php on line 1598
Any ideas? I did not see a specific bug issue on the git tracker.
# php -v PHP 5.6.14-1+b1 (cli) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
I have run a recent apt-get update / upgrade so everything should be current for Debian Sid
In some cases, a user who logs in, and now maps were found (e.g. private maps will be deleted automatically after 2days), the user is unable to create a new map anymore.
Cache-Busting for production (build) *.js files is not working as expected.
TODO:
The current version v.0.0.12
does not support global caching for DB connect objects [new \DB\SQL();
]. Therefore, any DB "switch" (e.g. search Solarsystem information in SDE export,...) results in a disconnect and reconnect to the requested DB.
Any active DB connection is instantly terminated and may result in a DB-Error.
This will be fixed in v.0.0.13
. Any DB has its own cached global object instance which persists active and will never be overwritten.
If a user has logged in with his account on different browsers (IGB, OGB). Die map data is not "in sync" between different characters. This causes that maps are not correctly shown/updated.
I did several smaller improvements (see commit) to fix that problem.
I have been working on various scripts to get this project running in a docker container. You can find my progress at https://github.com/andrewmunro/pathfinder-docker. Eventually I was going to create a pull request to this repo if you feel it's relevant.
Anyway, upon running the project, I had various issues with the databases running in MySQL 5.7.9. Firstly, the eve database table names pulled from https://www.fuzzwork.co.uk/dump/mysql-latest.tar.bz2 are named differently, it seems that pathfinder uses the lowercase version to retrieve them:
invtypes (is actually
invTypes`)mapconstellations
(is actually mapConstellations
)mapdenormalize
(is actually mapDenormalize
)maplocationwormholeclasses
(is actually mapLocationWormholeClasses
)mapregions
(is actually `mapRegions)mapsolarsystems
(is actually mapSolarSystems
)I had to manually rename these tables to get the app working correctly π
Secondly, I had various errors by incorrect or undefined default values:
system
, columns effect
, security
, constellation
, region
, name
, description
and alias
, are set to NOT NULL
but no default values were set causing PHP errors.
DEFAULT ''
to the sql to generate these columns fixed this.user
, column lastLogin
, the default value is incorrect
timestamp
, I had to change the value 0000-00-00 00:00:00
to 1970-01-01 00:00:00
The database contains multiple tables that have two TIMESTAMP fields. This is not supported in versions of MySQL prior to version 5.6.5 Specifically, It is not possible to have the current timestamp be the default value for one column and the auto-update value for another column.
Several internet Hosting providers do not yet use this version of My SQL. For example Hostgator is still running at version 5.5.23 and cannot give any indication of a date when their MySQL version will be upgraded.
The problem with 2 columns and multiple timestamps is described here ...
Deleting your API key in the Eve-Account Management seems to break stuff in PF.
You can't delete the old key in PF and adding a new one causes a 500 internal server error. (even though it seems to get added)
It also causes character selection and tracking to break.
Adding a nickname to a system in the IGB, and they are not being updated in Chrome.
Hi,
After fast testing, I think doing this in install process should fix the table names:
sed 's/\(\(TABLE\|EXISTS\) `\)\([^`]*\)\(`\)/\1\L\3\4/g' mysql56-vanguard-1.0-114986.sql > fixed.sql
ps. didn't test importing yet.
After moving a system on a map, I get an error 500: internal system error. An "Emergency Shutdown" splashscreen appears and the account is logged off.
The account can no longer log in after this error occurs. Seems to be an error with drawing the map after systems are moved.
To resolve this error I need to delete the "system" , "map" and "user_map" records from the database.
Unfortunately my php debugger doesn't catch any exception so Im not sure where to start looking for the bug.
There should be a "user interaction" dialog, that shows a overview of all "active" pilots and some additional information and interaction options (IGB).
There is a DB error, if a user try to register with an API Key that provides Character data for multiple characters in the same corp/ally.
Solution: Disable cache time for corporation/ally models for CCP API calls.
PHP Fatal error: Can't use method return value in write context in /var/www/app/main/controller/controller.php on line 285
I did some research and it says that it only occurs in PHP 5.5 and lower but i got this while on 5.6.14.
Anyways made the correction.
$errorCode = $f3->get('ERROR.code');
if(!empty($errorCode)){
$f3->status($f3->get('ERROR.code'));
}
With the growing number of external installations of Pathfinder, i would like to add an Import/Export feature for maps.
Features:
*.json
file (map, system, connection data)With this feature, we can build up a "map library" like "Dotlan" with pre-saved k-space maps that can be imported
The pilot tracking is not working on Corporation maps.
If a user is trying to add/save a API Key that is already stored in table user_api
(unique col), there is no visible form error displayed.
Solution:
Info:
The column "keyId" is unique for security reason. This will prevent anyone else to register an API Key that is already bound to someone else. Any "User" has to have its unique API Key information.
In some cases Low-sec systems are being displayed as Hi-sec in pathfinder, e.g. Enderailen.
Running this on
Debian Wheezy 7.8, Nginx, Mysql 5.6
Tried to register and got a 500 error
checked the log and saw this
syntax error, unexpected '(array)' (array) (T_ARRAY_CAST) in /var/www/app/main/model/basicmodel.php on line 371
Fatal error: syntax error, unexpected '(array)' (array) (T_ARRAY_CAST)
So whenever a solarsystem has a space in their name, e.g. New Caldari, New Eden or Promised Land, it won't load the routes section when you select that specific system
Hello,
Also when I set the
; time for status change visibility in header (ms)
PROGRAM_STATUS_VISIBLE = 1000[PATHFINDER.TIMER.UPDATE_SERVER_USER_DATA]
DELAY = 1000
(To make it faster to refresh data) it's just glitching a bit.. for exemple if someone jumps from a WH to another, it creates the new wormhole label, but it doesn't add any link to it.
The Cronjob (deleteLogData()
) that cleans up the character_log
tabe should be changed. In the past, all table data was removed (truncated). There are some problems with this:
CharacterLogModel
still existHello,
When I open my apache error.log I can see entries like that.
http://hastebin.com/eyejulumuv.coffee
(You can notice there is something weird like Base->error(404), referer: http://www.pathfinder.polaris-industries.com/var/www/html/pathfinder/)
Is it a normal behavior or I misconfigured something ? What could cause that.
Usefull Informations :
BASE = /var/www/html/pathfinder
URL = http://www.pathfinder.polaris-industries.com
Virtualhost = http://sakarias.eu/u/20150923201849.png
Hi. yes, I know you have not released these on purpose. But really, they are badly needed before we can offer any feedback or development assistance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.