Blender client python server TCP movement test
Uploader Comments (jplur)
All Comments (8)
-
@jplur also i was premature to say i had it working. I thought i had it but i only tested it in my cpu, it was able to connect two open files to the server. but was unable to connect with a friend via internet. error was target mach. actively refused. i do have a router, and i tried to mess with port fowarding. I just wasnt sure what my server ip is, or what type on service to choose (htp,ftp, so on). how do i know i did it right. it is port 5057 -? thanks for the reply
-
Is it pure scripting or is there some blender drag and drop?
-
woah, online!!
how do u do that??
-
haha this is great ive been working with the same stuff. not with the twisted module though. is it similar to programing for normal sockets?
-
nice man maybe a tutorial :D
i got your blenderserve.2 file working. I had to install the zope.egg in the twisted module. anyway i got the server up, but i want to know how do you send information to eachother. like animation triggers, and shooting, and jumping, or even propertys. a reply would be greatly appreciated
carlosandlexi 1 year ago
@carlosandlexi
not much room to post a message in comments,
The info is sent in the client.blend 'client' script on line 106
own['s'].send( pkt )
To send animation changes, the client has to send a message when it starts an animation, and interperate those kinds of messages from other players into actions.
something like
own['s'].send(":A:walk")
then similar to line 169
if item == "A": if splitdata[z+1] = "walk": entry.walk() #tell the local representation to do the action
jplur 1 year ago