Game Development Community

TGB Build produce strange result [work around]

by Max Kielland · in Torque Game Builder · 01/30/2013 (12:21 pm) · 2 replies

I was going to head over to a friend and thought I will bring my game to show off a bit. I used the Build function in TGB to create a release version.

When I start the release version the Gui profiles are screwed-up. All borders are on even if the profile says off. I clear all DSO files and made a new build. This time it said that one of my gui files was missing, but it wasn't. A new build and this time it found the missing gui file.

The build process feels very unstable and unreliable. Is there a way to manually build the release version?

[EDIT]
The whole problem seems to be related to the guiProfile.cs. To get your build to work you need to manually transfer a copy of your guiProfile.cs file to your build. Then it works as a charm!

#1
01/31/2013 (9:22 pm)
Did you check "Include Source Code"? If not I recommend it. I have NOT done extensive testing on it but it seems that including the source code and manually removing the .cs files provides a more stable build strangely enough. It has been a while since I included the source code in a build but I don't really have any problems with it.
#2
02/01/2013 (8:26 am)
Thank you for the recomendation.

When I ticked the source code box it worked. Then I started to manually remove the CS files and found out, just as I suspected, that the guiProfile.sc in the gameScript folder must be present!

So to test my theory I made a new build without source and, of course I got the same problem as before. I then copied the guiProfile.cs from my project folder into the release build and Voilà, it worked!

Since I'm not using any network functions I could remove the Client adn Server folders under Common and clean out all the common gui and cs dso files I'm not using.