{"action":"created","issue":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1291","repository_url":"https://api.github.com/repos/endless-sky/endless-sky","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1291/labels{/name}","comments_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1291/comments","events_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1291/events","html_url":"https://github.com/endless-sky/endless-sky/issues/1291","id":163502599,"number":1291,"title":"Republic ships doing multiple scans","user":{"login":"MarcelineVQ","id":16345659,"avatar_url":"https://avatars.githubusercontent.com/u/16345659?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcelineVQ","html_url":"https://github.com/MarcelineVQ","followers_url":"https://api.github.com/users/MarcelineVQ/followers","following_url":"https://api.github.com/users/MarcelineVQ/following{/other_user}","gists_url":"https://api.github.com/users/MarcelineVQ/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelineVQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelineVQ/subscriptions","organizations_url":"https://api.github.com/users/MarcelineVQ/orgs","repos_url":"https://api.github.com/users/MarcelineVQ/repos","events_url":"https://api.github.com/users/MarcelineVQ/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelineVQ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/endless-sky/endless-sky/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/endless-sky/endless-sky/milestones/6","html_url":"https://github.com/endless-sky/endless-sky/milestones/0.9.x","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/milestones/6/labels","id":1503462,"number":6,"title":"0.9.x","description":"This will be the beginning of a series of \"experimental\" releases that will introduce larger game changes. The 0.9 series will eventually culminate in a [1.0.0 release](https://github.com/endless-sky/endless-sky/wiki/DevelopmentRoadmap). Issues tagged with this milestone are the first priority for new development.\r\n\r\nVersion 0.9.0 will include a full set of ships and outfits for the Korath, and will probably be released by the end of April.","creator":{"login":"endless-sky","id":11450262,"avatar_url":"https://avatars.githubusercontent.com/u/11450262?v=3","gravatar_id":"","url":"https://api.github.com/users/endless-sky","html_url":"https://github.com/endless-sky","followers_url":"https://api.github.com/users/endless-sky/followers","following_url":"https://api.github.com/users/endless-sky/following{/other_user}","gists_url":"https://api.github.com/users/endless-sky/gists{/gist_id}","starred_url":"https://api.github.com/users/endless-sky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endless-sky/subscriptions","organizations_url":"https://api.github.com/users/endless-sky/orgs","repos_url":"https://api.github.com/users/endless-sky/repos","events_url":"https://api.github.com/users/endless-sky/events{/privacy}","received_events_url":"https://api.github.com/users/endless-sky/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":19,"state":"open","created_at":"2016-01-12T23:59:31Z","updated_at":"2016-07-04T23:08:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-07-02T05:16:54Z","updated_at":"2016-07-05T02:27:11Z","closed_at":null,"body":"Independant ships seem to be doing inordinate amount of scanning, I'm getting as many as 28 scans at one time from a single gunboat against a single flagship that make it to Politics::Fine\r\nThe check from AI::MoveIndependent that sets the Command::SCAN bit seems to let a lot of these extra scans through, is it possible that many scans are able to be enqueued before they end up in AI::Has for the ship doing the scanning?\r\n\r\nRedundant scanning aside this issue has the effect of massively reducing the effectiveness of interference plating."},"comment":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/comments/230375496","html_url":"https://github.com/endless-sky/endless-sky/issues/1291#issuecomment-230375496","issue_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1291","id":230375496,"user":{"login":"MarcelineVQ","id":16345659,"avatar_url":"https://avatars.githubusercontent.com/u/16345659?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcelineVQ","html_url":"https://github.com/MarcelineVQ","followers_url":"https://api.github.com/users/MarcelineVQ/followers","following_url":"https://api.github.com/users/MarcelineVQ/following{/other_user}","gists_url":"https://api.github.com/users/MarcelineVQ/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelineVQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelineVQ/subscriptions","organizations_url":"https://api.github.com/users/MarcelineVQ/orgs","repos_url":"https://api.github.com/users/MarcelineVQ/repos","events_url":"https://api.github.com/users/MarcelineVQ/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelineVQ/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T02:27:11Z","updated_at":"2016-07-05T02:27:11Z","body":"I think the numbers are working as intended in terms of when fines should occur and how the value of plating stacks vs a ship scanning you: it's just that too many scans are being allowed to be done at once.\r\nCurrently if you avoid paying up it's almost solely just due to a ship not targeting you for a scan in the first place.\r\n\r\nThe equation for skipping a fine is:\r\n```\r\nif(Random::Real() > 1. / (1. + ship->Attributes().Get(\"scan interference\")))\r\n    continue;\r\n```\r\n\r\nSuch that Random::Real() is a floating number between 0 and 1. The more plating you have the more likely it is for random to roll higher than the right side of the equation and skip doing a fine.\r\n\r\nWith 20 plates your odds of avoiding a fine when scanned once are about 91%, not too shabby, seems fairly reasonable for that many. By contrast 5 plates gets you to 71% and 10 plates gets you to 83%, diminishing returns.\r\nBut, assuming I'm doing the math halfway decent, your odds of avoiding a fine from 28 scans with 20 plates is 7%. And with just 11 plates it's less than 1%.\r\n\r\nConsider that you currently also tend to get scanned by multiple ships at once since things move in fleets and that number becomes fairly infinitesimal. Though I'm not sure if that's intended either since I think you only get one \"you are being scanned by\" message per fleet, or possibly per the ships that were present when that message was sent.\r\nFines may need to be looked at again when things are in order but I want to make the point that currently if you avoid a fine it's mostly because you got out of the system before something came by and scanned you.\r\n"}}
{"actor":{"display_login":"MarcelineVQ"}}