clabra / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

implement python side tick method #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run in NERO Mode
2. Click "deploy" on external UI
3.

What is the expected output? What do you see instead?
We want this to act like an actual deploy button

Please use labels and text to provide additional information.

Original issue reported on code.google.com by AdamDz...@gmail.com on 18 Sep 2010 at 10:03

GoogleCodeExporter commented 9 years ago
A simple way to fix this is to add a tick() method that runs whether or not the 
AI is enabled.

A more complicated way to fix this is related to Issue #32 and requires a 
change to the way we are talking to the external interface.

We should probably do the simple fix first and the complicated fix second.

Original comment by ikarpov on 19 Sep 2010 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 19 Sep 2010 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 19 Sep 2010 at 6:36

GoogleCodeExporter commented 9 years ago
Revision 535 adds socket-based communication with the external scripts such as 
external UI. However, the initial plan to make OpenNERO and XMLRPC server did 
not (yet) pan out because OpenNERO does not seem to allow creation of server 
threads from within the embedded Python context, so this is not a fix for this 
issue (only for the multiplatform issue).

Next step is still to add the global tick() method to Python-side, which would 
allow our code to receive command messages from the external UI without an 
Environment or an AI being active.

Original comment by ikarpov on 23 Sep 2010 at 2:43

GoogleCodeExporter commented 9 years ago
Socket based communication is not a perfect solution for two reasons:

 * We still can't trigger events (without the global tick() method)
 * Relying on network communication is questionable: some firewall settings on the Mac for example make the external GUI silently fail.

Original comment by ikarpov on 29 Sep 2010 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 17 Nov 2010 at 11:23

GoogleCodeExporter commented 9 years ago
Revision 676 and Revision 677 implement this change. Assigning to Adam for 
testing.

Original comment by ikarpov on 24 Nov 2010 at 3:57