H
haloflooder
Guest
I'm having a bit of difficulty trying to understand how to get a python client to communicate with a server on a gamemaker program I'm creating.
I did get python to connect to the program but if I try to send any data, the console in GMS 2 says "Error: Login failed".
This is what I'm doing to attempt to send some data from python to a GM server.
The reason why I'm doing this is because I have some data on a headless OS with some inputs that I need to pass onto the GM program. I can't read MIDI messages with GM without having to fork over $25 for that MIDI extension on the yoyogames marketplace.
I did get python to connect to the program but if I try to send any data, the console in GMS 2 says "Error: Login failed".
This is what I'm doing to attempt to send some data from python to a GM server.
Code:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
data = struct.pack('<b',*[50])
time.sleep(.1);
s.send(data)
time.sleep(.1);
s.close()