.blend attached; made for/with 2.57b.
Working hard on learning the GE I’ve hit yet another brick wall, trying to learn networking.
This blend is meant to be run in a terminal. After starting the engine I use a python script to send UDP packets of text to 127.0.0.1:5000. I tried
data, address = server_socket.recvfrom(256)
now commented out, which of course only lets the engine run while receiving a signal. At least it printed the received packets. I could run the blend, the cube would hang in the air but when I sent something like “Hello World” to 127.0.0.1:5000 it printed that in Blender’s terminal, and the cube was allowed to fall for a split second before the script came back.
Now I’m using the try/except bit. All I want for now is this:
I start blender
The script runs, listening but not interfering.
When it receives an arbitrary string on UDP 127.0.0.1:5000 it fires up a … any will do but let’s say a Motion actuator on the cube. Nice and simple.
Help me Blender-wan Kommunity, you’re my only hope.
TEST.blend (457 KB)