{"action":"created","issue":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/2933","repository_url":"https://api.github.com/repos/MightyPirates/OpenComputers","labels_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/2933/labels{/name}","comments_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/2933/comments","events_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/2933/events","html_url":"https://github.com/MightyPirates/OpenComputers/pull/2933","id":353985923,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwODg3MTU3","number":2933,"title":"Improved chunkloader upgrade","user":{"login":"svitoos","id":4972564,"node_id":"MDQ6VXNlcjQ5NzI1NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4972564?v=4","gravatar_id":"","url":"https://api.github.com/users/svitoos","html_url":"https://github.com/svitoos","followers_url":"https://api.github.com/users/svitoos/followers","following_url":"https://api.github.com/users/svitoos/following{/other_user}","gists_url":"https://api.github.com/users/svitoos/gists{/gist_id}","starred_url":"https://api.github.com/users/svitoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svitoos/subscriptions","organizations_url":"https://api.github.com/users/svitoos/orgs","repos_url":"https://api.github.com/users/svitoos/repos","events_url":"https://api.github.com/users/svitoos/events{/privacy}","received_events_url":"https://api.github.com/users/svitoos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-25T05:41:16Z","updated_at":"2018-08-25T12:39:43Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/pulls/2933","html_url":"https://github.com/MightyPirates/OpenComputers/pull/2933","diff_url":"https://github.com/MightyPirates/OpenComputers/pull/2933.diff","patch_url":"https://github.com/MightyPirates/OpenComputers/pull/2933.patch"},"body":"# Improved chunkloader upgrade\r\nThis PR adds a lot of features, most of which give server admins more control over the behavior of the chunkloader upgrade.\r\nNamely:\r\n\r\n- An option to disable a chunkloader if its owner goes offline.\r\n- A whitelist and a blacklist of dimensions in which the update is allowed to load chunks.\r\n  Closes #2768.\r\n- An option to use the `forgeChunkLoading.cfg`'s settings to limit number of tickets per player.\r\n- A command that lists all chunkloaders in the world (`/oc_cl`).\r\n- More verbose logging (the logging level is configurable).\r\n- If a chunkloader is duplicated in a way so that multiple items share the same address,\r\n  only one of them is allowed to work at a time.\r\n- In case a drone with the chunkloader upgrade is teleported to another dimension, it requests a new ticket.\r\n- Allows adapters and microcontrollers to have the chunkloader upgrade.\r\n  Closes #2499.\r\n\r\nA new configuration group, `chunkloader`, is added with the following settings:\r\n\r\n- `requireOnline`. If `true`, the chunkloader only loads chunks if its owner is online.\r\n  If the owner goes offline, the chunks the upgrade kept loaded are unloaded;\r\n  the upgrade keeps consuming energy, though, and `isActive()` returns `true`.\r\n  If the option is enabled, tickets are registered for the player, not for the mod.\r\n- `dimBlacklist`. The chunkloader does not load chunks in dimensions whose IDs are listed there.\r\n- `dimWhitelist`. This setting is the opposite of `dimBlacklist`, and lists dimensions in which the chunkloader is allowed to work.\r\n  Ignored if left empty (so the upgrade works in all dimensions not listed in the blacklist).\r\n  If the same entry appears in both lists, the blacklist takes precedence.\r\n  `setActive()` returns `false` if the chunkloader is blocked in that dimension.\r\n- `playerTicket`. If `true`, tickets are assigned to the player who owns the chunkloader rather than the mod,\r\n  so the `forgeChunkLoading.cfg`'s limits get applied for that player.\r\n  Makes it impossible to activate a chunkloader not owned by a player.\r\n- `logLevel`. Controls the level of logging: (`0` for quiet; `1` for more verbose; `2` for debug).\r\n\r\nA new command, `/oc_chunkloaders` (`/oc_cl`), is added, which lists chunkloaders in the loaded chunks,\r\nand inactive registered tickets, displaying the following information:\r\n\r\n- the component address\r\n- the chunkloader status\r\n  - `inactive` (the chunkloader is inactive)\r\n  - `active` (the chunkloader is enabled, and loads chunks)\r\n  - `active/suspend` (the chunkloader is enabled, but doesn't load chunks)\r\n- the block coordinates\r\n- the chunk coordinates\r\n- the dimension ID\r\n- the owner\r\n"},"comment":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/comments/415966583","html_url":"https://github.com/MightyPirates/OpenComputers/pull/2933#issuecomment-415966583","issue_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/2933","id":415966583,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTk2NjU4Mw==","user":{"login":"asiekierka","id":113514,"node_id":"MDQ6VXNlcjExMzUxNA==","avatar_url":"https://avatars3.githubusercontent.com/u/113514?v=4","gravatar_id":"","url":"https://api.github.com/users/asiekierka","html_url":"https://github.com/asiekierka","followers_url":"https://api.github.com/users/asiekierka/followers","following_url":"https://api.github.com/users/asiekierka/following{/other_user}","gists_url":"https://api.github.com/users/asiekierka/gists{/gist_id}","starred_url":"https://api.github.com/users/asiekierka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asiekierka/subscriptions","organizations_url":"https://api.github.com/users/asiekierka/orgs","repos_url":"https://api.github.com/users/asiekierka/repos","events_url":"https://api.github.com/users/asiekierka/events{/privacy}","received_events_url":"https://api.github.com/users/asiekierka/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T12:39:43Z","updated_at":"2018-08-25T12:39:43Z","author_association":"CONTRIBUTOR","body":"@Vexatos I agree. MCUs should be available, whereas Adapters should be opt-in server-side?\r\n\r\n>Doesn't this also imply that computers without an owning player can no longer use chunkloaders if requireOnline is true?\r\n\r\nWould it be a good idea to make chunkloaders themselves owner-able?"}}
{"actor":{"display_login":"asiekierka"}}