-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Characters are not marked as inactive #116
Comments
I believe this is because the getActiveUserCharacters gets the characterLog that matches but does not check it's age at all. |
Short answer: Is your cronjob running? Long answer: Yeah I know, this is in known "problem" :( The expectations of an character, beeing "active" is not clearly specified. For example:
Present state:For now, any character is marked as "active" when he is currently in-game (IGB) in a system which is mapped. So this does not represent any user who is viewing at a map (e.g. desktop browser users).
Hint: There is no other way to automatically detect when a character becomes "inactive" (The IGB does not send JS Upcoming changes in
|
Anything else, you want to know about this feature? |
Thanks for the explanation exodus! That makes a lot of sense. My cron jobs aren't running and I can't see to get them started at all: hitting /cron results in apache throwing a 404. Is there any way to troubleshoot this? |
For testing, open
How it works:
Hint
CLI => "Command Line Interface" Why so complicated?
|
@exodus4d How are you planning to tackle Alliance maps using CREST? I've been experimenting with this but CCP has yet to implement this part of the API as far as I can tell. Will you be using "Corporate" maps and having people add each Corp instead of the Alliance as whole? PS. Awesome job on this! |
@mrmurb The CREST "location endpoint" was implemented by CCP in January . Once a character logged in (by SSO), You can request additional "Scopes" like "location endpoint". this allows me to update the current location of this character, whenever I want. You have to request the current location for each pilot individually by its "access_token" (given by CCP when a SSO login was successful). So can´t request locations for all pilots in a corporation or perform any kind of "bulk"-request. So yeah, any pilot that is tracked in an corp/ally have to log in into Pathfinder. But you don´t have to use the IGB anymore for tracking. Even if a character closes the desktop browser afterwards, the "access_key" is still cached for this character, which enables me to perform following CREST "location endpoint" requests for this character e.g. by a cronjob every X Seconds. 90% of the implementation is already done and can be tested. The "Develop" branch should be stable (more information in #84) The "core" SSO controller that handles all CREST calls, can be found here: https://github.com/exodus4d/pathfinder/blob/develop/app/main/controller/ccp/sso.php#L512 The implementation is a bit complex but straight forward :) The CREST API is build like a "tree". If you want the "location endpoint" you have to perform multiple API calls, by recursively "walking down" the "tree" like: The response for each call is cached individually by the Cache-Control Headers, which CCP sends back. |
@exodus4d Thanks for the very detailed answer. The I take it as the Alliance map type is still not completed in this version. Map creation.
This is Sorry, I realize that this has diverted far from the actual topic of this issue, if you feel that this should be in another issue please move it accordingly. |
Yeah that´s right. Alliance maps are not implemented yet. Im focusing on privat/corp maps for now. There is a simple reason for that: No one of my chars in any of my 3 Acc is currently in an alliance ;) . I probably have to "mock" some fake ally data for testing them. Please don´t open issues for missing features/bugs in |
Thanks @exodus4d. I figured out the issue and this might be helpful for others in future running new versions of apache: If MultiViews are enabled in your apache configuration (as in |
Updated on this -- initially misattributed it.
We have several hundred characters added and they are all marked as 'active' and none are ever marked as inactive. I can't seem to find where this marking is to test.
The text was updated successfully, but these errors were encountered: