{"action":"created","issue":{"url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/66","labels_url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/66/comments","events_url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/66/events","html_url":"https://github.com/Vhati/ftl-profile-editor/issues/66","id":101513009,"number":66,"title":"Get/set the name and type of the current sector","user":{"login":"Niels-NTG","id":6061595,"avatar_url":"https://avatars.githubusercontent.com/u/6061595?v=3","gravatar_id":"","url":"https://api.github.com/users/Niels-NTG","html_url":"https://github.com/Niels-NTG","followers_url":"https://api.github.com/users/Niels-NTG/followers","following_url":"https://api.github.com/users/Niels-NTG/following{/other_user}","gists_url":"https://api.github.com/users/Niels-NTG/gists{/gist_id}","starred_url":"https://api.github.com/users/Niels-NTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Niels-NTG/subscriptions","organizations_url":"https://api.github.com/users/Niels-NTG/orgs","repos_url":"https://api.github.com/users/Niels-NTG/repos","events_url":"https://api.github.com/users/Niels-NTG/events{/privacy}","received_events_url":"https://api.github.com/users/Niels-NTG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-17T21:24:43Z","updated_at":"2015-08-18T16:12:17Z","closed_at":null,"body":"Currently it doesn't seem to be possible to retrieve and change the name of the sector the ship is currently in. Information about the name and type (friendly, hostile, nebula) has to be saved somewhere in continue.sav. Looking trough SavedGameParser.java it seems that ftl-profile-editor doesn't have any methods of getting or setting this information.\r\n\r\nI'm overlooking something or is it just not possible (yet)?"},"comment":{"url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/comments/132262996","html_url":"https://github.com/Vhati/ftl-profile-editor/issues/66#issuecomment-132262996","issue_url":"https://api.github.com/repos/Vhati/ftl-profile-editor/issues/66","id":132262996,"user":{"login":"Niels-NTG","id":6061595,"avatar_url":"https://avatars.githubusercontent.com/u/6061595?v=3","gravatar_id":"","url":"https://api.github.com/users/Niels-NTG","html_url":"https://github.com/Niels-NTG","followers_url":"https://api.github.com/users/Niels-NTG/followers","following_url":"https://api.github.com/users/Niels-NTG/following{/other_user}","gists_url":"https://api.github.com/users/Niels-NTG/gists{/gist_id}","starred_url":"https://api.github.com/users/Niels-NTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Niels-NTG/subscriptions","organizations_url":"https://api.github.com/users/Niels-NTG/orgs","repos_url":"https://api.github.com/users/Niels-NTG/repos","events_url":"https://api.github.com/users/Niels-NTG/events{/privacy}","received_events_url":"https://api.github.com/users/Niels-NTG/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T16:12:17Z","updated_at":"2015-08-18T16:12:17Z","body":"Now slightly less clunky and more usable:\r\n\r\n    log.info( getSectorInfo( gameState.getSectorNumber() ).getTitle() );\r\n\r\n\tprivate SectorDot getSectorInfo( int index ) {\r\n\t\tArrayList<SectorDot> visitedSectors = new ArrayList<SectorDot>();\r\n\r\n\t\tRandomSectorTreeGenerator myGen = new RandomSectorTreeGenerator( new NativeRandom() );\r\n\t\tList<List<SectorDot>> myColumns = myGen.generateSectorTree(\r\n\t\t\tgameState.getSectorTreeSeed(),\r\n\t\t\tgameStateArray.isDLCEnabled()\r\n\t\t);\r\n\r\n\t\tint columnsOffset = 0;\r\n\t\tfor (int i = 0; i < myColumns.size(); i++) {\r\n\t\t\tfor (int k = 0; k < myColumns.get(i).size(); k++) {\r\n\t\t\t\tif (gameState.getSectorVisitation().subList(\r\n\t\t\t\t\t\tcolumnsOffset, columnsOffset + myColumns.get(i).size()\r\n\t\t\t\t\t).get(k)\r\n\t\t\t\t) {\r\n\t\t\t\t\tvisitedSectors.add( myColumns.get(i).get(k) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcolumnsOffset += myColumns.get(i).size();\r\n\t\t}\r\n\r\n\t\treturn visitedSectors.get( index );\r\n\t}"}}