Game Development Community

How to save .dts model after changing mounted object

by Playware · in Torque Game Engine · 11/09/2008 (6:56 pm) · 3 replies

Hi All,


I am very new to TGA. I am working on some Character Editor for my Game. In This I have some basic character model . Now I have to use one of these model in editor and through editor I have to modify it by adding/removing some objects (like armour, cloths, hat, shoes, Gun , etc.). So after changing it, I have to save current model as .dts file, so I can use modified .dts file for my player character.


So is there anything which can help me to get this done. How I can get this done?


thnx.

#1
11/10/2008 (10:58 am)
If you're mounting objects to your player, you're not going to save a new .dts file. What you need to do is:
1. Figure out what objects are mounted to the player
2. Write this data into some recognisable format and save that, maybe as, say, a text file
Then when you load the character next time, you:
3. Read the data you saved, and mount the same objects again.
#2
11/10/2008 (5:36 pm)
Thanks Daniel !

I will try it .........................
#3
11/11/2008 (12:18 am)
Thanks Daniel !

I will try it .........................