Game Development Community

Change project name?

by Mike Rowley · in Torque 3D Professional · 10/03/2009 (2:54 pm) · 5 replies

I'm basing my game off one of the examples and wonder if there is an easy way to change the name of the project?

#1
10/03/2009 (3:20 pm)
did you use create new project in the toolbox? that let's you select your project name right at the beginning.
#2
10/03/2009 (3:40 pm)
I already have a project. I was just looking to see if there was an easy way to change the project name. (without having to look up the old name throughout the project to change it)
#3
10/03/2009 (4:17 pm)
ah got it that i'm not sure as I decided to start fresh with t3d
#4
10/03/2009 (7:01 pm)
Thanks for trying Chris. I've come to the realisation that I'm going to have to:
1. Start fresh (meaning pretty much starting over)
2. Do a find in files and change all the names. (what I may do. Haven't decided yet)
#5
10/04/2009 (7:07 am)
Here is the steps I use to manually rename a project:

1) In <old name>/buildFiles/config open up project.conf and project.mac.conf and change the project name in this line:

beginProject("<old name>");

2) In <old name>/buildFiles/config open up webDeploy.conf and update the following lines with appropriate values:

public static $plugin = "Web<old name>";

public static $mimeType = "x-<old name>";

(I would recommend following the formats of the old names for the new names...like no spaces or all lowercase)

3) In <old name>/buildFiles/config open up webDeploy.mac.conf and update the following lines with appropriate values:

public static $identifier = "com.mygamecompany.<old name>";

public static $description = "<old name> Plugin";

public static $mimeType = "x-<old name>";

(I would recommend following the formats of the old names for the new names...like no spaces or all lowercase)

4) In <old name>/game rename <old name>.torsion to <new name>.torsion

5) Open your <new name>.torsion file and find and replace all of the references of <project> with <new name> (should be 4 references).

6) In <old name>/game rename <old name>.exe and <old name>.dll to <new name>.exe and <new name>.dll

7) Open up <old name>/game/main.cs and update this line:

$appName = "<old name>";

7) Open up <old name>/source/torqueConfig.h and update this line:

#define TORQUE_APP_NAME            "<old name>"

8) Go through the <old name>/buildFiles folders and remove any .sln, .vcproj, .ncb, .suo, .xcode, or .user files that start with <old name>

9) Run generateProjects.bat/command to build new project files with the correct names

10) Rename the top level <old name> folder to <new name> (having this mismatch can cause issues with the Toolbox.