Title: Error while using self.time = (self.state.game_loop/22.4) / 60 · Issue #302 · Dentosal/python-sc2 · GitHub
Open Graph Title: Error while using self.time = (self.state.game_loop/22.4) / 60 · Issue #302 · Dentosal/python-sc2
X Title: Error while using self.time = (self.state.game_loop/22.4) / 60 · Issue #302 · Dentosal/python-sc2
Description: My code is async def on_step(self, iteration): self.time = (self.state.game_loop/22.4) / 60 .......................... ............................ While running this line (self.time = (self.state.game_loop/22.4) / 60) It's giving error ...
Open Graph Description: My code is async def on_step(self, iteration): self.time = (self.state.game_loop/22.4) / 60 .......................... ............................ While running this line (self.time = (self.state....
X Description: My code is async def on_step(self, iteration): self.time = (self.state.game_loop/22.4) / 60 .......................... ............................ While running this line (self.time = (self.state....
Opengraph URL: https://github.com/Dentosal/python-sc2/issues/302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error while using self.time = (self.state.game_loop/22.4) / 60","articleBody":"My code is\r\n async def on_step(self, iteration):\r\n self.time = (self.state.game_loop/22.4) / 60\r\n .......................... ............................\r\nWhile running this line (self.time = (self.state.game_loop/22.4) / 60)\r\nIt's giving error on the line, \r\n\r\nawait ai.on_step(iteration)\r\nInside \r\nPython36\\lib\\site-packages\\sc2\\main.py\", line 135, in _play_game_ai\r\n\r\n\r\nLogs: \r\nTraceback (most recent call last):\r\n File \"C:\\Users\\tause\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\sc2\\main.py\", line 135, in _play_game_ai\r\n await ai.on_step(iteration)\r\n File \"S:\\Starcraft 2 API\\Python Files\\pythonStarcraftPart13.py\", line 44, in on_step\r\n self.time = (self.state.game_loop/22.4) / 60\r\nAttributeError: can't set attribute\r\nERROR:sc2.main:resigning due to previous error\r\n--- on_end called ---\r\nResult.Defeat False","author":{"url":"https://github.com/tm012","@type":"Person","name":"tm012"},"datePublished":"2019-08-05T04:15:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/302/python-sc2/issues/302"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:443459f0-868d-67bc-5ed4-19f203245906 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9032:170119:20E68C6:2E77BB1:6A4CDAD0 |
| html-safe-nonce | aed4049f488c63386adb6e44e8f442f4f327daf488aa9f5e0179f226194edd76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDMyOjE3MDExOToyMEU2OEM2OjJFNzdCQjE6NkE0Q0RBRDAiLCJ2aXNpdG9yX2lkIjoiODE5NDkxMDg3MzcyMzkxOTA1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 82b3c78c0f5a0fcb08a41acbbb320e9917f55d6297f137e3dfcb706d3da7cb80 |
| hovercard-subject-tag | issue:476647967 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Dentosal/python-sc2/302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2148bd0c653cc2a50c5e03e141b78b029fcf03ec1daf42fbf1d19e0c52882b93/Dentosal/python-sc2/issues/302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2148bd0c653cc2a50c5e03e141b78b029fcf03ec1daf42fbf1d19e0c52882b93/Dentosal/python-sc2/issues/302 |
| og:image:alt | My code is async def on_step(self, iteration): self.time = (self.state.game_loop/22.4) / 60 .......................... ............................ While running this line (self.time = (self.state.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tm012 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/Dentosal/python-sc2 git https://github.com/Dentosal/python-sc2.git |
| octolytics-dimension-user_id | 2204863 |
| octolytics-dimension-user_login | Dentosal |
| octolytics-dimension-repository_id | 100306850 |
| octolytics-dimension-repository_nwo | Dentosal/python-sc2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 100306850 |
| octolytics-dimension-repository_network_root_nwo | Dentosal/python-sc2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3eeb74f55ccd8a31bdaec6839577c592bbf7844c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width