Game Development Community

Torque starter character

by Mike G · in Torque Game Engine · 07/28/2009 (2:11 pm) · 7 replies

i would like to know if u could change that default blue cube dude to something else.

#1
07/28/2009 (7:14 pm)
You should try using the Starter.fps instead of Tutorial.base.
#2
07/28/2009 (7:34 pm)
what would that do?
#3
07/28/2009 (8:11 pm)
It would make your life a lot easier. The tutorial.base is a super basic game starter. No frills. Starter.fps is a complete (almost) game to start from. As for changing the character, go into the starter.fps data/shapes/player/ folder and copy the contents over the blue guy.
#4
07/28/2009 (8:27 pm)
Heres the locations of the included Torque 1.5.2 Models:

./starter.fps/data/shapes/player/player.dts - Torque Orc
./demo/data/shapes/tge_elf/elf.dts - Torque Elf
./starter.racing/data/shapes/buggy/buggy.dts - Torque DuneBuggy
./tutorial.base/data/hapes/player/player.dts - Torque Blue Guy

As Mike said, the Starter.fps would be easier to find out how to put your own game together because of the built-in feature demonstrations... And most of the tutorials and resources are written for the starter.fps.

Good luck and I hope you have fun learning Torque! :)
#5
07/28/2009 (9:32 pm)
Go take a look at "~/scripts/server/player.cs". Inside of that script file you will find a player datablock. Inside of this datablock will be a field called "shapeFile". This is where you change the filepath to point to a new player model.

EDIT: that file location may actually be "~/server/scripts/player.cs"
#6
07/29/2009 (5:12 am)
ok i am in the file but now what do i change?
#7
07/29/2009 (8:57 am)
Quote:Inside of that script file you will find a player datablock. Inside of this datablock will be a field called "shapeFile".

change shapeFile = "blueguy.dts" or whatever to "./starter.fps/data/shapes/player/player.dts"

This will make him an Orc.

note: this is off the top of my head, from the previous posts. I'm not actually in my Torque folder

Also, if you go back a folder, you should see main.cs. If you go into it and look for a line at the top

$defaultGame = "tutorial.base";

change it to

$defaultGame = "starter.fps";

Now you can play the A Stronghold mission. Your character will be an orc, and there is an orc running around for you to shoot at.

~Tony