Game Development Community

TGB 1.7.4 Build Directory Issues

by Deozaan · in Torque Game Builder · 07/30/2008 (4:10 pm) · 0 replies

First of all, the Build dialog never remembers the location I want the project to be built to. It defaults to "My Documents" every time when TGB is closed/restarted.

Secondly, my project name is Universe. When it builds the project, it makes the normal directory structure (visualized as nested code):

Universe
{
   common
   game
   resources
}

But then it duplicates the files like so:

Universe
{
   common
   {
      data
      gameScripts
      gui
      preferences
      [b]Universe // this shouldn't be here! and neither should its subdirectories![/b]
      {
         common
         {
            data
            gameScripts
            gui
            preferences
         }
      }
   game
   {
      behaviors
      data
      gameScripts
      gui
      managed
      [b]Universe // this shouldn't be here! and neither should its subdirectories![/b]
      {
         game
         {
            behaviors
            data
            gameScripts
            gui
            managed
         }
      }
   }
   resources
   {
      particlesArt
      starterArt
      [b]Universe // this shouldn't be here! and neither should its subdirectories![/b]
      {
         resources
         {
            particlesArt
            starterArt
         }
      }
   }
}

With a little bit of testing, it seems that it does this only when I change the default build directory from My Documents and only when I leave off the ending slash on the path.

For example (on my computer my "My Documents" folder is located at C:/Documents):

C:/Documents <-- default directory builds just fine
C:/Documents/TGB/Builds/ <-- trailing forwardslash builds just fine
C:/Documents/TGB/Builds <-- no trailing forwardslash! Duplicate files!

The bad thing is that the default behavior of browsing for a path leaves off the trailing forwardslash so it has to be put there manually.