Cubix Studio - Male NPC Pack
Tested with Torque Game Engine Demo 1.4
For exporting your own DTS / DSQ character from the max files please refer to Garage Games Tutorial or
smdLabs Tutorial.
These steps below will guide you to use CubixStudio Male NPC Pack as a player character.
To use this pack as a regular NPC you might want to consult your TGE documentation.
INSTALLATION :
- Make a backup copy of your Torque Game Engine demo folder (default: C:\Program Files\Torque Game Engine Demo\demo\),
this is necessary if you want to restore your Torque Demo to the original, or just in case something goes wrong.
You can skip this step if you're sure about what you're doing.
- From this step, for the sake of easier readability, we will refer C:\Program Files\Torque Game Engine Demo\demo (or wherever
your default Torque installation folder is)
as a simple ~ (with green color) , for example if we mention ~\data\shapes it means
C:\Program Files\Torque Game Engine Demo\demo\data\shapes
- By default Torque FPS demo player always start with a crossbow, you can change this to no weapon if you want.
Below are necessary steps to do it:
- Navigate to ~\server\scripts and delete fps.cs.dso
- Open fps.cs with your favorite text editor (Notepad)
- Scroll down in the fps.cs and find // Starting Equipment line.
- Put a comment (//) in front of those inventory codes, so it will look something like this:
// %player.setInventory(Crossbow,1);
// %player.setInventory(CrossbowAmmo,10);
// %player.mountImage(CrossbowImage,0);
- Copy CubixStudioMaleNPC folder from the pack and paste it inside ~\data\shapes\ folder
- Navigate to ~\server\scripts and delete player.cs.dso
- Open player.cs with your favorite text editor (Notepad)
- Near top of player.cs script, replace
exec("~/data/shapes/player/player.cs"); with
exec("~/data/shapes/CubixStudioMaleNPC/CubixStudioMaleNPC.cs");
- Scroll down in the player.cs script and find datablock PlayerData(PlayerBody), then replace
shapeFile = "~/data/shapes/player/player.dts"; with
shapeFile = "~/data/shapes/CubixStudioMaleNPC/CubixStudioMaleNPC.dts";
- Run the demo again, your character should change to Cubix Studio Male NPC player.
Thank you for using Cubix Studio product.