{"action":"opened","issue":{"url":"https://api.github.com/repos/demilich1/metastone/issues/218","repository_url":"https://api.github.com/repos/demilich1/metastone","labels_url":"https://api.github.com/repos/demilich1/metastone/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/demilich1/metastone/issues/218/comments","events_url":"https://api.github.com/repos/demilich1/metastone/issues/218/events","html_url":"https://github.com/demilich1/metastone/issues/218","id":171031218,"number":218,"title":"[Coding Custom Cards] Constantly getting the error \"Error Invoking Method.\"","user":{"login":"Stick1314","id":21013182,"avatar_url":"https://avatars.githubusercontent.com/u/21013182?v=3","gravatar_id":"","url":"https://api.github.com/users/Stick1314","html_url":"https://github.com/Stick1314","followers_url":"https://api.github.com/users/Stick1314/followers","following_url":"https://api.github.com/users/Stick1314/following{/other_user}","gists_url":"https://api.github.com/users/Stick1314/gists{/gist_id}","starred_url":"https://api.github.com/users/Stick1314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stick1314/subscriptions","organizations_url":"https://api.github.com/users/Stick1314/orgs","repos_url":"https://api.github.com/users/Stick1314/repos","events_url":"https://api.github.com/users/Stick1314/events{/privacy}","received_events_url":"https://api.github.com/users/Stick1314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-13T22:36:30Z","updated_at":"2016-08-13T22:36:30Z","closed_at":null,"body":"I've been using this program for about a day now, and I have to say I am loving this program, and last night I started attempting to make some custom cards. Most of the time that I've gotten the error stated above I've been able to figure out the problem, it was usually due to the brackets being too far to the right (not lining up with the lines), and maybe one too many or too few brackets. And then came my current problems. I've tried a lot of things to get these working and I can't figure it out for the life of me. Although, it makes sense, considering I don't have too much experience with Java... but even when I copy the stuff from another card, it still spits out the error, and I don't know how to fix it. I know which cards they are because I check the report log constantly. The main one is coming from the first file I'll list, though I'm also listing the corresponding files that have to do with the first one in case one of those is causing the error. I can only guess that I'm somehow doing something wrong, or missing something, but what that might be is beyond me. Can anyone help me out with this? I'd greatly appreciate any assistance that may be given to me.\r\n\r\nhero_agent.json\r\n\r\n{\r\n\t\"id\": \"hero_agent\",\r\n\t\"name\": \"CLASSIFIED\",\r\n\t\"heroPower\": \"hero_power_clearance\",\r\n\t\"type\": \"HERO\",\r\n\t\"heroClass\": \"ANY\",\r\n\t\"rarity\": \"LEGENDARY\",\r\n\t\"attributes\": {\r\n\t\t\"HP\": 30,\r\n\t\t\"MAX_HP\": 30\r\n\t},\r\n\t\"collectible\": false\r\n},\r\n\r\nhero_power_clearance.json\r\n\r\n{\r\n\t\"id\": \"hero_power_clearance\",\r\n\t\"name\": \"Clearance\",\r\n\t\"baseManaCost\": 2,\r\n\t\"type\": \"HERO_POWER\",\r\n\t\"heroClass\": \"ANY\",\r\n\t\"rarity\": \"LEGENDARY\",\r\n\t\"description\": \"Obtain a file.\",\r\n\t\"targetSelection\": \"NONE\",\r\n\t\"spell\": {\r\n\t\t\"class\": \"ReceiveRandomCardSpell\",\r\n\t\t\"card\": \"token_file\"\r\n\t},\r\n\t\"collectible\": false,\r\n\t\"set\": \"CUSTOM\",\r\n\t\"fileFormatVersion\": 1\r\n}\r\n\r\ntoken_file.json\r\n\r\n{\r\n\t\"id\": \"token_file\",\r\n\t\"name\": \"File\",\r\n\t\"baseManaCost\": 1,\r\n\t\"type\": \"SPELL\",\r\n\t\"heroClass\": \"AGENT\",\r\n\t\"rarity\": \"FREE\",\r\n\t\"description\": \"Draw a card.\",\r\n\t\"targetSelection\": \"NONE\",\r\n\t\"spell\": {\r\n\t\t\"class\": \"DrawCardSpell\",\r\n\t\t\"value\": 1\r\n\t},\r\n\t\"collectible\": false,\r\n\t\"set\": \"CUSTOM\",\r\n\t\"fileFormatVersion\": 1\r\n}\r\n\r\nThis fourth one is what I'm planning on using to \"summon\" the Agent, considering when I put the hero_agent.json into basic in order to select him from the selection screen, the drop down menus wouldn't work. And because of that, I changed the code to hero_agent.json to match Ragnaros with whatever changes were needed. It's possible that the error is stemming from the fact there's technically no Hero Portrait for the Agent or the corresponding Hero Power now that I think about it.\r\n\r\nstrange_phenomenon.json\r\n\r\n{\r\n    \"id\": \"spell_strange_phenomenon\",\r\n    \"name\": \"Strange Phenomenon\",\r\n    \"baseManaCost\": 0,\r\n    \"type\": \"SPELL\",\r\n    \"heroClass\": \"ANY\",\r\n    \"description\": \"Is that a UFO?\",\r\n    \"targetSelection\": \"NONE\",\r\n\t\"trigger\": {\r\n\t\t\"eventtrigger\": {\r\n\t\t\t\"class\": \"TurnStartTrigger\",\r\n\t\t\t\"sourceplayer\": \"self\"\r\n\t\t},\r\n\t\t\"spell\": {\r\n\t\t\t\"class\": \"FromDeckToHandSpell\",\r\n\t\t\t\"targetPlayer\": \"SELF\",\r\n\t\t\t\"value\": 1,\r\n\t\t\t\"cardFilter\": {\r\n\t\t\t\t\"class\": \"CardFilter\",\r\n\t\t\t\t\"card\": \"spell_strange_phenomenon\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n    \"spell\": {\r\n        \"class\": \"ChangeHeroSpell\",\r\n        \"targetPlayer\": \"SELF\",\r\n        \"card\": \"hero_agent\"\r\n    },\r\n    \"collectible\": true,\r\n    \"set\": \"CUSTOM\",\r\n    \"fileFormatVersion\": 1\r\n}\r\n\r\n\r\n\r\nAnd by the way, I decided to make these cards because I saw this post on Hearthpwn, and the idea looked awesome: http://www.hearthpwn.com/forums/hearthstone-general/fan-creations/108717-class-competition-finalist-agent"}}
{"actor":{"display_login":"Stick1314"}}