Game Development Community

Build/Package project by hand?

by Chris Jorgensen · in Torque Game Builder · 11/27/2006 (4:21 pm) · 8 replies

I can't seem to build a project properly. It's crashed 3 times while analyzing. The one time it actually built something, it didn't work. Is there a way I can just "build" by hand and not use that utility?

#1
11/28/2006 (12:33 pm)
Just to add an additional question, what are the common causes of a built game to crash?
#2
11/28/2006 (1:24 pm)
To do a manual build you can follow these steps (just off the top of my head so I might be missing something)

Copy the following to a new folder

1) .exe
2) the .dlls
3) the common folder
4) the resources folder and the proper resources in it (only the ones you are using in that game)
5) main.cs

Then run the cleandso.bat to remove all the dsos.

you will want to go into main.cs and set the followin gvalues at the begging (before any functions)


$startupProject = "<MAINGAME>";
$defaultGame = "<MAINGAME>";
$defaultMods = "<MODS>";
$levelEditor::LastLevel[$startupProject] = "<CURRENTLEVEL>";
$runWithEditors = false;

Be sure to replace "" with the project folder name, "" with any additional mods (empty if you don't have any additional), and "" with the level you want to load at start.


I beleive that is the majority of what the packaging utility does.
#3
11/28/2006 (3:43 pm)
@Matt

I appreciate the help. But now I'm confused. I thought the built game wasn't supposed to have its CS files? What stops a person playing the game from opening up my files and learning how to code? I guess my assumption was to remove the CS files and leave only the DSO files...
#4
11/28/2006 (3:52 pm)
@Chris: That's old information, the EULA was changed with T2D was officially released, so you are allowed to distribute your torquescript source.

Gary (-;
#5
11/28/2006 (4:39 pm)
Okay, well that's fine for me sending a demo to my musician. But when it comes to release, can I substitute the .cs files with their .cs.dso files instead? I'd prefer not to give away my entire game code to whoever buys it, since it's entirely written in script...
#6
11/28/2006 (5:28 pm)
Quote:Okay, well that's fine for me sending a demo to my musician. But when it comes to release, can I substitute the .cs files with their .cs.dso files instead? I'd prefer not to give away my entire game code to whoever buys it, since it's entirely written in script...

Yes.

Gary (-;
#7
11/28/2006 (6:16 pm)
Total brain lapse on that one... you need to clear out the .cs files instead of the .dso files... you can edit the dso bat to do so just be careful to do it within your new packages folder only and don't delete the root main.cs. Sorry about that.
#8
11/28/2006 (10:58 pm)
@Matt

Not a problem.

@Matt/Gary

Thanks for the help. It worked! :D