Gui's do not work right after using build project if guiProfiles.cs is not included
by Joseph Bosch · in Torque Game Builder · 09/01/2012 (7:26 am) · 2 replies
so I am building a version of a game to send to a third party interested in the work I have done so far. The problem is that if I do not include the source files the GUI's do not work properly (by this I mean that they are just a back background and anything on the screen get multiplied anytime anything changes (IE 10,000 mouse pointers on screen). I notice that when i do include the source files everything worked fine. I followed a suggestion the forms to include the source file, let the DSO's compile at run time, then delete the .cs files. This did not work out at all. Through some trial and error I determined that if I deleted guiProfiles.cs this problem would occur, I can delete all other .cs files but this one, my question is why? Shouldn't all I need is guiProfiles.cs.dso?
#2
For my games I used TGB 1.7.4 and 1.7.5. I just checked a clean new project with 1.7.6 and I can't reproduce the bug.
09/07/2012 (7:33 pm)
Hi guys, I never experienced that problem. The only file that need to be .cs and not .dso is the main.cs in the root of folder.For my games I used TGB 1.7.4 and 1.7.5. I just checked a clean new project with 1.7.6 and I can't reproduce the bug.
Torque 3D Owner George Ison
SG MediaSoft
Just an FYI...
We have experienced this as well. Something does not get compiled properly with the guiProfiles so the .dso itself isn't enough. So we now put all our custom profiles under /common/gui/profiles.cs. We don't use the default guiProfiles.cs found in the gamescripts folder because of the issue you state. We simply hash out a section in the profiles.cs and put our custom content there. It works without leaving any script files in your final product. Hope that helps....