hello,
I was wondering how to add new characters to the server?
How do clients get this new characters?
A little background on the main python modules would be nice.
thanks,
Moderator: SirGolan
d = newURLImageAsset(ag,
self.baseUrl + u"Materials/Textures/armored_swordman.tga", u"armored_swordman.tga", u"Body Texture")
d.addCallback(lambda tta: newURLOgreMaterialAsset(ag,
self.baseUrl + u"Materials/Scripts/armored_swordman.material", u"",
u"armored_swordman.material", u"swordman Material", [tta]))
d2 = newURLFileAsset(ag,
self.baseUrl + u"Models/armored_swordman.skeleton",
u"armored_swordman.skeleton", u"swordman Skeleton")
g = gatherResults([d, d2])
g.addCallback(lambda res: newURLOgreMeshAsset(ag,
self.baseUrl + u"Models/armored_swordman.mesh", u"", u"swordman Mesh", [res[0], res[1]]))
g.addCallback(lambda s: self.playerassets.append({u"models":[s], u"scale":(0.02, 0.02, 0.02)}))
d = newURLImageAsset(ag,
self.baseUrl + u"Materials/Textures/ninja2.jpg", u"ninja2.jpg", u"Ninja Texture")
d.addCallback(lambda tta: newURLOgreMaterialAsset(ag,
self.baseUrl + u"Materials/Scripts/ninja2.material", u"", u"ninja2.material", u"Ninja2 Material", [tta]))
d2 = newURLFileAsset(ag,
self.baseUrl + u"Models/ninja2.skeleton", u"ninja2.skeleton", u"Ninja2 Skeleton")
g = gatherResults([d, d2])
g.addCallback(lambda res: newURLOgreMeshAsset(ag,
self.baseUrl + u"Models/ninja2.mesh", u"", u"Ninja2 Mesh", [res[0], res[1]]))
g.addCallback(lambda s: self.playerassets.append({u"models":[s], u"scale":(0.02, 0.02, 0.02)}))
Users browsing this forum: No registered users and 2 guests