Character Screen
by Wayne Eversole · in Torque 3D Professional · 07/25/2011 (5:02 pm) · 6 replies
Hello everyone.
I have a problem with my character select screen. Well more then one lol.
First I set the guiobjectview up in a gui to show a character model, I selected
the .dae file to display and it shows great. Upon reload of the game I get the
model with the orange missing texters. I selected the correct texters and it still does not show up.
Only way to get it to reload is to re select the solider.dae file.
Here is a screen shot.
I have a problem with my character select screen. Well more then one lol.
First I set the guiobjectview up in a gui to show a character model, I selected
the .dae file to display and it shows great. Upon reload of the game I get the
model with the orange missing texters. I selected the correct texters and it still does not show up.
Only way to get it to reload is to re select the solider.dae file.
Here is a screen shot.
http://recaci.freezoka.net/images/random/profile1selectscreen.jpg
About the author
#2
and in the gui to to mountedShapeFile = $pref::Player::c1PWeaponModel;
but does not seem to work.
07/26/2011 (8:05 am)
Also I changed the $c2players_charmodel from defaultplayerdata to display the path and dts shape like art/shapes/actors/Soldier/soldier_rigged.DAEand in the gui to to mountedShapeFile = $pref::Player::c1PWeaponModel;
but does not seem to work.
#3
07/26/2011 (8:35 am)
I'm not quite understanding what you are asking, can you please be a little more specific?
#4
Look through how the other models datablocks are set up, mess around with them until you understand. Read the docs about 14 times.
You cannot just put the name of the variable in the gui editor. You have to dynamically set the var for the view, ie
you can see all the functions (and other stuff) available via script for an object in T3d by typing in the console:
07/26/2011 (9:27 am)
To show your 'texters' (textures), you need the materials set up properly in the datablock for the dts. Most likely they are just not set up correctly, and/or your file paths are incorrect. DAE usage is certainly not 'fire-and-forget'.Look through how the other models datablocks are set up, mess around with them until you understand. Read the docs about 14 times.
You cannot just put the name of the variable in the gui editor. You have to dynamically set the var for the view, ie
WhateverYouNamedYourViewerGui.setModel($myGlobalVar);
you can see all the functions (and other stuff) available via script for an object in T3d by typing in the console:
WhateverYouNamedYourViewerGui.dump();
#5
@Jameson thanks for the info. I am using the solider.dae file from the pack thats for sale in GG store. I need to check it and make sure its setup right. Is there doc's that show what you need to have in a character model?
Thanks
07/26/2011 (12:33 pm)
@ Robert To clear things up. I am storing character models in mysql and using php to send the data into a gui. The problem I am having is the gui object view looks for a .dts shape and I am trying to just store a string in the database of where it is located and pass that back into the viewer.@Jameson thanks for the info. I am using the solider.dae file from the pack thats for sale in GG store. I need to check it and make sure its setup right. Is there doc's that show what you need to have in a character model?
Thanks
#6
Resource<TSShape>::create - '' has an unknown file format
Failed to create resource: []
GuiObjectView::setObjectModel - Failed to load model ''
Resource<TSShape>::create - '' has an unknown file format
Failed to create resource: []
GuiObjectView::setMountedObject - Failed to load object model ''
Here is my function.
function CharViewMenu(%this)
{
%MyModel = $pref::Player::classmodel;
%MyWeapon = $pref::Player::pweaponmodel;
CharViewObjectView.setModel(%MyModel);
CharViewObjectView.setMount(%MyWeapon, 0);
}
Now to figure out how to make a list of all the models to choose from and be able to change what I need to be set into the database.
07/30/2011 (5:53 am)
Well I got it working kinda, but even tho it works I still get console errors.Resource<TSShape>::create - '' has an unknown file format
Failed to create resource: []
GuiObjectView::setObjectModel - Failed to load model ''
Resource<TSShape>::create - '' has an unknown file format
Failed to create resource: []
GuiObjectView::setMountedObject - Failed to load object model ''
Here is my function.
function CharViewMenu(%this)
{
%MyModel = $pref::Player::classmodel;
%MyWeapon = $pref::Player::pweaponmodel;
CharViewObjectView.setModel(%MyModel);
CharViewObjectView.setMount(%MyWeapon, 0);
}
Now to figure out how to make a list of all the models to choose from and be able to change what I need to be set into the database.
Torque Owner Wayne Eversole
Default Studio Name
Thanks