{"action":"reopened","number":21792,"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792","id":139214865,"node_id":"MDExOlB1bGxSZXF1ZXN0MTM5MjE0ODY1","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21792","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21792.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21792.patch","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21792","number":21792,"state":"open","locked":false,"title":"[WIP] Railroads","user":{"login":"ZhilkinSerg","id":16213433,"node_id":"MDQ6VXNlcjE2MjEzNDMz","avatar_url":"https://avatars0.githubusercontent.com/u/16213433?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhilkinSerg","html_url":"https://github.com/ZhilkinSerg","followers_url":"https://api.github.com/users/ZhilkinSerg/followers","following_url":"https://api.github.com/users/ZhilkinSerg/following{/other_user}","gists_url":"https://api.github.com/users/ZhilkinSerg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhilkinSerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhilkinSerg/subscriptions","organizations_url":"https://api.github.com/users/ZhilkinSerg/orgs","repos_url":"https://api.github.com/users/ZhilkinSerg/repos","events_url":"https://api.github.com/users/ZhilkinSerg/events{/privacy}","received_events_url":"https://api.github.com/users/ZhilkinSerg/received_events","type":"User","site_admin":false},"body":"# Description:\r\n\r\nResurrection of #6925. Not only overmap tiles (*as in mentioned PR*), but also some basic railroad mapgen.\r\n\r\nStill need a lot of work as this branch is 6 month old and a lot of things has been changed in mapgen since that time.\r\n\r\n# Preview download:\r\n\r\nYou can take compiled and rather old preview version for Windows (64 bit) [here](https://www.dropbox.com/s/0t7g95nslx2rfvp/dda-railroad-test-windows-x64.zip?dl=0).\r\n\r\nNot as good as in OpenTTD yet, but I hope it looks promising.\r\n\r\n# To do:\r\n\r\n- [x] - basic overmap railroad tiles;\r\n- [x] - basic railroad mapgen;\r\n- [x] - merge changes from current master;\r\n- [x] - add railroad bridges;\r\n- [x] - add railroad junctions;\r\n- [x] - add road-rail crossing/intersections;\r\n- [ ] - add railroad stations;\r\n- [x] - rework railroad overmap functions (make railroad lines more straight);\r\n- [ ] - rework railroad overmap functions (rework station placement);\r\n- [x] - rework railroad overmap functions (disallow railroads override parallel roads);\r\n- [ ] - rework railroad intersection placement (allow only on ns- and ew-roads);\r\n- [ ] - rework railroad mapgen functions (remove hard-codes, cleanup, etc).\r\n\r\n# Screenshots:\r\n\r\n- __NS-rail tracks + minimap:__\r\n![image](https://user-images.githubusercontent.com/16213433/30039271-6725be30-91d7-11e7-89b3-0ba69cbb18c1.png)\r\n\r\n- __WE-rail tracks + minimap:__\r\n![image](https://user-images.githubusercontent.com/16213433/30039283-84a9797e-91d7-11e7-93df-88a892370bce.png)\r\n\r\n- __Overmap version 0__ (`light green` lines - railroad tracks):\r\n![image](https://user-images.githubusercontent.com/16213433/30039277-7a4a0516-91d7-11e7-8b62-ef121e9d2ec4.png)\r\n\r\n\r\n","created_at":"2017-09-04T22:34:56Z","updated_at":"2018-09-09T10:05:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f6084835b38d3b8342e68fa7945780cd6e458f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":887835116,"node_id":"MDU6TGFiZWw4ODc4MzUxMTY=","url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels/Fields%20/%20Furniture%20/%20Terrain%20/%20Traps","name":"Fields / Furniture / Terrain / Traps","color":"753939","default":false},{"id":477028196,"node_id":"MDU6TGFiZWw0NzcwMjgxOTY=","url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels/Mapgen","name":"Mapgen","color":"7a213a","default":false},{"id":659366627,"node_id":"MDU6TGFiZWw2NTkzNjY2Mjc=","url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels/[C++]","name":"[C++]","color":"f9d0c4","default":false},{"id":235869031,"node_id":"MDU6TGFiZWwyMzU4NjkwMzE=","url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels/[JSON]","name":"[JSON]","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792/commits","review_comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792/comments","review_comment_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21792/comments","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/57f6b7b0784941877b787dc9056aba16dd460ff3","head":{"label":"ZhilkinSerg:mapgen-railroad","ref":"mapgen-railroad","sha":"57f6b7b0784941877b787dc9056aba16dd460ff3","user":{"login":"ZhilkinSerg","id":16213433,"node_id":"MDQ6VXNlcjE2MjEzNDMz","avatar_url":"https://avatars0.githubusercontent.com/u/16213433?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhilkinSerg","html_url":"https://github.com/ZhilkinSerg","followers_url":"https://api.github.com/users/ZhilkinSerg/followers","following_url":"https://api.github.com/users/ZhilkinSerg/following{/other_user}","gists_url":"https://api.github.com/users/ZhilkinSerg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhilkinSerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhilkinSerg/subscriptions","organizations_url":"https://api.github.com/users/ZhilkinSerg/orgs","repos_url":"https://api.github.com/users/ZhilkinSerg/repos","events_url":"https://api.github.com/users/ZhilkinSerg/events{/privacy}","received_events_url":"https://api.github.com/users/ZhilkinSerg/received_events","type":"User","site_admin":false},"repo":{"id":81851736,"node_id":"MDEwOlJlcG9zaXRvcnk4MTg1MTczNg==","name":"Cataclysm-DDA","full_name":"ZhilkinSerg/Cataclysm-DDA","owner":{"login":"ZhilkinSerg","id":16213433,"node_id":"MDQ6VXNlcjE2MjEzNDMz","avatar_url":"https://avatars0.githubusercontent.com/u/16213433?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhilkinSerg","html_url":"https://github.com/ZhilkinSerg","followers_url":"https://api.github.com/users/ZhilkinSerg/followers","following_url":"https://api.github.com/users/ZhilkinSerg/following{/other_user}","gists_url":"https://api.github.com/users/ZhilkinSerg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhilkinSerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhilkinSerg/subscriptions","organizations_url":"https://api.github.com/users/ZhilkinSerg/orgs","repos_url":"https://api.github.com/users/ZhilkinSerg/repos","events_url":"https://api.github.com/users/ZhilkinSerg/events{/privacy}","received_events_url":"https://api.github.com/users/ZhilkinSerg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhilkinSerg/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A fork/variant of Cataclysm Roguelike by Whales.","fork":true,"url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA","forks_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/ZhilkinSerg/Cataclysm-DDA/deployments","created_at":"2017-02-13T17:27:56Z","updated_at":"2018-09-09T09:52:10Z","pushed_at":"2018-09-09T09:59:01Z","git_url":"git://github.com/ZhilkinSerg/Cataclysm-DDA.git","ssh_url":"git@github.com:ZhilkinSerg/Cataclysm-DDA.git","clone_url":"https://github.com/ZhilkinSerg/Cataclysm-DDA.git","svn_url":"https://github.com/ZhilkinSerg/Cataclysm-DDA","homepage":"http://en.cataclysmdda.com/","size":1309292,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"CleverRaven:master","ref":"master","sha":"47298ed1dea10582ae57a3decfe548640ac576de","user":{"login":"CleverRaven","id":4367009,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNjcwMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/4367009?v=4","gravatar_id":"","url":"https://api.github.com/users/CleverRaven","html_url":"https://github.com/CleverRaven","followers_url":"https://api.github.com/users/CleverRaven/followers","following_url":"https://api.github.com/users/CleverRaven/following{/other_user}","gists_url":"https://api.github.com/users/CleverRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverRaven/subscriptions","organizations_url":"https://api.github.com/users/CleverRaven/orgs","repos_url":"https://api.github.com/users/CleverRaven/repos","events_url":"https://api.github.com/users/CleverRaven/events{/privacy}","received_events_url":"https://api.github.com/users/CleverRaven/received_events","type":"Organization","site_admin":false},"repo":{"id":5973855,"node_id":"MDEwOlJlcG9zaXRvcnk1OTczODU1","name":"Cataclysm-DDA","full_name":"CleverRaven/Cataclysm-DDA","owner":{"login":"CleverRaven","id":4367009,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNjcwMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/4367009?v=4","gravatar_id":"","url":"https://api.github.com/users/CleverRaven","html_url":"https://github.com/CleverRaven","followers_url":"https://api.github.com/users/CleverRaven/followers","following_url":"https://api.github.com/users/CleverRaven/following{/other_user}","gists_url":"https://api.github.com/users/CleverRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverRaven/subscriptions","organizations_url":"https://api.github.com/users/CleverRaven/orgs","repos_url":"https://api.github.com/users/CleverRaven/repos","events_url":"https://api.github.com/users/CleverRaven/events{/privacy}","received_events_url":"https://api.github.com/users/CleverRaven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CleverRaven/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.","fork":false,"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","forks_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/deployments","created_at":"2012-09-26T22:57:43Z","updated_at":"2018-09-09T09:49:38Z","pushed_at":"2018-09-09T09:55:38Z","git_url":"git://github.com/CleverRaven/Cataclysm-DDA.git","ssh_url":"git@github.com:CleverRaven/Cataclysm-DDA.git","clone_url":"https://github.com/CleverRaven/Cataclysm-DDA.git","svn_url":"https://github.com/CleverRaven/Cataclysm-DDA","homepage":"http://cataclysmdda.org","size":1305355,"stargazers_count":2075,"watchers_count":2075,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1407,"mirror_url":null,"archived":false,"open_issues_count":1002,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1407,"open_issues":1002,"watchers":2075,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21792"},"issue":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21792"},"comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21792/comments"},"review_comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792/comments"},"review_comment":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21792/commits"},"statuses":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/57f6b7b0784941877b787dc9056aba16dd460ff3"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":29,"review_comments":20,"maintainer_can_modify":true,"commits":6,"additions":870,"deletions":0,"changed_files":16}}
{"actor":{"display_login":"ZhilkinSerg"}}