problem|Put Armature in BGE Online

How can I setup Armature in online game,The armature is in pose mode
Client:
#------------Setup--------------#
from GameLogic import *
from socket import *
from cPickle import *
cont = GameLogic.getCurrentController()

get the actuator attached to controller named Walk

act = cont.actuators[“Walk”]

set playback mode

act.mode = 0
obj = cont.getOwner()
if obj.OneTime == 0:
ServerIP = GameLogic.IP
Serverport = 10000
Clientname = ‘’
ClientPort = 10001
GameLogic.sClient = socket(AF_INET,SOCK_DGRAM)
GameLogic.sClient.bind((Clientname,ClientPort))
GameLogic.host = (ServerIP,Serverport)
GameLogic.sClient.setblocking(0)
obj.OneTime = 1

PosYou = obj.getPosition()
Fire = obj[“Fire”]
TM = obj[“TM”]
scene = getCurrentScene()
Server = scene.getObjectList()[“OBServer”]
PosServer = [0,0,0]
#------------RECEIVE/SEND--------------#
Data = dumps((PosYou,Fire,TM))
GameLogic.sClient.sendto(Data,GameLogic.host)
try:
Data, SRIP = GameLogic.sClient.recvfrom(1024)
UPData = loads(Data)
PosServer = [UPData[0][0],UPData[0][1],UPData[0][2]]
Server[“Fire”] = UPData[1]
Server.setPosition(PosServer)
except:
pass
#---------------THE-END----------------#

Server:
#------------Setup--------------#
from GameLogic import *
from socket import *
from cPickle import *
cont = GameLogic.getCurrentController()
obj = cont.getOwner()
if obj.OneTime == 0:
Host = ‘’
ServerPort = 10000
GameLogic.sServer = socket(AF_INET,SOCK_DGRAM)
GameLogic.sServer.bind((Host,ServerPort))
GameLogic.sServer.setblocking(0)
obj.OneTime = 1

PosYou = obj.getPosition()
Fire = obj[“Fire”]
scene = getCurrentScene()
Client = scene.getObjectList()[“OBClient”]
PosClient = [0,0,0]
#------------RECEIVE/SEND--------------#
try:
Data, CLIP = GameLogic.sServer.recvfrom(1024)
UPData = loads(Data)
PosClient = [UPData[0][0],UPData[0][1],UPData[0][2]]
Client[“Fire”] = UPData[1]
Client[“TM”] = UPData[2]
Client.setPosition(PosClient)
Data = dumps((PosYou,Fire))
GameLogic.sServer.sendto(Data,CLIP)
except:
pass
#---------------THE-END----------------#
Setup:
from GameLogic import *
#START THIS SETUP ONE TIME AS A SERVER AND ONE TIME AS A CLIENT
#BEVORE YOU START THIS SETUP AS A CLIENT REPLACE THE * IN THE
#LINE BELOW WITH THE SERVER IP
#(FOR EXAMPLE: GameLogic.IP = “192.123.100.1”)

GameLogic.IP = “127.0.0.1”

#THE CODE BELOW SETS UP IF YOU PLAY THE CLIENT OR THE SERVER
#TO START THE SERVER PRESS F1 TO START THE CLIENT F2
cont = GameLogic.getCurrentController()
obj = cont.getOwner()
scene = getCurrentScene()
Server = cont.getSensor(“F1”)
Client = cont.getSensor(“F2”)
if Server.isPositive():
Server = scene.getObjectList()[“OBServer”]
Server.Activ = 1
if Client.isPositive():
Client = scene.getObjectList()[“OBClient”]
Client.Activ = 1

Firstly, that code is so old, there are functions in there that don’t exist. It sounds like you don’t quite have a grip of Python just yet, so either learn it, or look at my networking plugins: http://hostilestudios.com/networking/plugin.php
Either way, you would have to tell the client what animation you want to perform, so you could send a property like “walking” and it would run a walkcycle. In the event that you choose my plugin system, it can be very easy; using the properties plugin you can copy gameobject properties, and on the client object activate an anim when the property becomes active.