Hello, I'm having troubles with saving the input from a server and saving it. It's about coloring pixels off a given server with the help of following commands:
Available commands:
HELP: Show this help
PX x y rrggbb: Color the pixel (x,y) with the given hexadecimal color rrggbb
PX x y rrggbbaa: Color the pixel (x,y) with the given hexadecimal color rrggbb. The alpha part is discarded for performance reasons, as breakwater was compiled without the alpha feature
PX x y gg: Color the pixel (x,y) with the hexadecimal color gggggg. Basically this is the same as the other commands, but is a more efficient way of filling white, black or gray areas
PX x y: Get the color value of the pixel (x,y)
SIZE: Get the size of the drawing surface, e.g. SIZE 1920 1080
OFFSET x y: Apply offset (x,y) to all further pixel draws on this connection. This can e.g. be used to pre-calculate an image/animation and simply use the OFFSET command to move it around the screen without the need to re-calculate it
#Problem with sending commands to a server and saving the input.
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
My problem is, that the jumpingRectangle method doesn't work the way its intended to and I can't figure out why. I've been debugging with prints and debugger for the past 4h and I narrowed it down to the program being stuck in the part where it wants to create the save of the pixel. But as far as I can tell, there shouldn't be a problem with handling the input of the server. So idk whats wrong but it has to be something there
Jump: 1/2
this is my only print when I test the method, so the "saved" gets never printed. it has to be stuck before that.
Why is the first line of sendCommand() sendCommand(); ?