joeindian
Members-
Posts
3 -
Joined
-
Last visited
Reputation
1 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Yep, it was as you said. Thanx a lot. Really appreciate you help. Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import krpc >>> conn = krpc.connect() >>> print 'client version', krpc.__version__ client version 0.3.4 >>> print 'server version', conn.krpc.get_status().version server version 0.3.4 >>> for service in conn.krpc.get_services().services: ... if service.name == 'KRPC': ... print 'KRPC procedures:', [x.name for x in service.procedures] ... print 'KRPC enumerations:', [x.name for x in service.enumerations] ... KRPC procedures: [u'GetStatus', u'GetServices', u'AddStream', u'RemoveStream', u'get_CurrentGameScene'] KRPC enumerations: [u'GameScene'] >>> >>> conn.krpc.current_game_scene <GameScene.flight: 1> Best regards. J.
-
Hi, regarding the missing method "current_game_scene" I thing, that this is really missing in the last release of kRPC mod. Kindly see the dump bellow: Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import krpc >>> conn = krpc.connect(name="Python kRPC") >>> >>> >>> dir(conn.krpc) ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_client', 'add_stream', 'get_services', 'get_status', 'remove_stream'] >>> >>> >>> All methods, but property "current_game _scene", are listed and works: >>> conn.krpc.get_status() version: "0.3.4" bytes_read: 294 bytes_written: 848304 rpcs_executed: 3 max_time_per_update: 10000 adaptive_rate_control: true blocking_recv: true recv_timeout: 1000 time_per_rpc_update: 0.00102034467272 poll_time_per_rpc_update: 0.00100139586721 time_per_stream_update: 7.25567679183e-06 >>> conn.krpc.current_game_scene Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'KRPC' object has no attribute 'current_game_scene' >>> Thank yuou for your response and time. Really appreciate this mod and you effort. J.
-
Hi, thank you for nice mod. Really like it, but when tried to get current game scene, it seems does not work. Would it be possible to make it work, please? >>> conn.krpc.current_game_scene Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'KRPC' object has no attribute 'current_game_scene' >>> Thank you. J.