{"action":"created","issue":{"url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/5","repository_url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem","labels_url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/5/comments","events_url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/5/events","html_url":"https://github.com/nukeguard/NaniteConstructionSystem/pull/5","id":344824680,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTI3MjA4","number":5,"title":"Fixed \"Target due to target being out of range\"","user":{"login":"Fank","id":1900106,"node_id":"MDQ6VXNlcjE5MDAxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1900106?v=4","gravatar_id":"","url":"https://api.github.com/users/Fank","html_url":"https://github.com/Fank","followers_url":"https://api.github.com/users/Fank/followers","following_url":"https://api.github.com/users/Fank/following{/other_user}","gists_url":"https://api.github.com/users/Fank/gists{/gist_id}","starred_url":"https://api.github.com/users/Fank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fank/subscriptions","organizations_url":"https://api.github.com/users/Fank/orgs","repos_url":"https://api.github.com/users/Fank/repos","events_url":"https://api.github.com/users/Fank/events{/privacy}","received_events_url":"https://api.github.com/users/Fank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T12:33:49Z","updated_at":"2018-07-26T23:02:00Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/pulls/5","html_url":"https://github.com/nukeguard/NaniteConstructionSystem/pull/5","diff_url":"https://github.com/nukeguard/NaniteConstructionSystem/pull/5.diff","patch_url":"https://github.com/nukeguard/NaniteConstructionSystem/pull/5.patch"},"body":"DRAFT commit, should be buildable, do not have a development Environment right now.\r\nBut should work.\r\n\r\nWe wanted to build a tower, which is over 2km high:\r\n![image](https://user-images.githubusercontent.com/1900106/43262328-074b2ce4-90e0-11e8-8af9-55b2d5215a09.png)\r\n\r\nBut nanite system keeps spinning up & down all the time, because of:\r\n```\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=127183737150850759 position=[X:-9, Y:772, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=105480192629146549 position=[X:-9, Y:771, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=101034950557621261 position=[X:-9, Y:770, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=138557655758704942 position=[X:-9, Y:769, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=95113157481034269 position=[X:-9, Y:768, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=78964597156698058 position=[X:-9, Y:767, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=99590409686210500 position=[X:-9, Y:766, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=93846444808671248 position=[X:-9, Y:765, Z:-60]\r\n[13:57:25] ADDING Construction/Repair Target: conid=86266717448755980 subtype=LargeBlockConveyor entityID=112668883239895811 position=[X:-9, Y:764, Z:-60]\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=127183737150850759,Position=[X:-9, Y:772, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 127183737150850759 Elapsed: 51041)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=105480192629146549,Position=[X:-9, Y:771, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 105480192629146549 Elapsed: 50974)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=101034950557621261,Position=[X:-9, Y:770, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 101034950557621261 Elapsed: 50908)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=138557655758704942,Position=[X:-9, Y:769, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 138557655758704942 Elapsed: 50841)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=95113157481034269,Position=[X:-9, Y:768, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 95113157481034269 Elapsed: 50775)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=78964597156698058,Position=[X:-9, Y:767, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 78964597156698058 Elapsed: 50708)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=99590409686210500,Position=[X:-9, Y:766, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 99590409686210500 Elapsed: 50642)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=93846444808671248,Position=[X:-9, Y:765, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 93846444808671248 Elapsed: 50575)\r\n[13:57:28] TOOL started.  Target block: MyObjectBuilder_Conveyor/LargeBlockConveyor - 0ms - 72.5 0.0265507 72.5\r\n[13:57:28] CANCELLING Repair Target due to target being out of range\r\n[13:57:28] CANCELLING Construction/Repair Target: 86266717448755980 - MySlimBlock (EntityID=112668883239895811,Position=[X:-9, Y:764, Z:-60])\r\n[13:57:28] TOOL completed.  Target block: MyConveyor - (EntityID: 112668883239895811 Elapsed: 50509)\r\n```\r\n\r\nWith this PR i wanted to ensure, that only targets in range will be marked as possible targets.\r\nBecause only 1/5 of the tower grid is in nanite range, but the nanite system would like to build the blocks on top of the tower (tested with increasing the build range to 3km)."},"comment":{"url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/comments/408261002","html_url":"https://github.com/nukeguard/NaniteConstructionSystem/pull/5#issuecomment-408261002","issue_url":"https://api.github.com/repos/nukeguard/NaniteConstructionSystem/issues/5","id":408261002,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODI2MTAwMg==","user":{"login":"Fank","id":1900106,"node_id":"MDQ6VXNlcjE5MDAxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1900106?v=4","gravatar_id":"","url":"https://api.github.com/users/Fank","html_url":"https://github.com/Fank","followers_url":"https://api.github.com/users/Fank/followers","following_url":"https://api.github.com/users/Fank/following{/other_user}","gists_url":"https://api.github.com/users/Fank/gists{/gist_id}","starred_url":"https://api.github.com/users/Fank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fank/subscriptions","organizations_url":"https://api.github.com/users/Fank/orgs","repos_url":"https://api.github.com/users/Fank/repos","events_url":"https://api.github.com/users/Fank/events{/privacy}","received_events_url":"https://api.github.com/users/Fank/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T23:02:00Z","updated_at":"2018-07-26T23:02:00Z","author_association":"NONE","body":"Maybe deconstruction, should be changed too.\r\n@BAM5 What do you think?"}}
{"actor":{"display_login":"Fank"}}