Game Development Community

Server side material list?

by Dave Young · in Torque Game Engine · 02/28/2008 (12:59 pm) · 3 replies

I'm putting the finishing touches on a new resource which combines reskinning and multiple textures. It's all working great but I have a less elegant portion which trouble me.

The problem:
Server in TGE does not load material list when it loads a shape. I rely on having a list of the base materials stored server side per shape so we can tell new clients who join what the changes to those base materials are.

The solution I've come up with involves adding fields to the datablock for a shape and setting the server side texture list manually in an OnAdd. This is an extra step which could be removed if I could find an elegant way to have the server load up the materialnames out of the shape.

Has anyone tried this before? I've taken many approached but none that worked.

#1
02/29/2008 (2:17 pm)
Well, it was tricky but I'm glad I managed it, there's no need to do any manual art checking now, the server gets handed a nice little list of base materials it can preserve.

I will post the resource ASAP!
#2
02/29/2008 (3:03 pm)
Lookin' forward to it!
#3
02/29/2008 (4:13 pm)
It's here:
Resource Link

or for those lucky enough to have the domain name working...

Resource Link