Game Development Community

guiProfile needs to have .cs file?

by Justin Mosiman · in iTorque 2D · 10/31/2009 (1:52 am) · 3 replies

I am just submitting my game (wahoo!), and I am finally stripping out the CS files from the xCode project. The problem that I am getting is that none of my gui profiles are showing up on the device when I remove guiProfiles.cs. I have the guiProfiles.dso file within the project, but for some reason that is the only file which doesn't work with just its dso.

Has anybody else experienced this? In the file I just have the standard gui profiles, such as
if(!isObject(GuiButtonProfile)) new GuiControlProfile(GuiButtonProfile)
{
	opaque = true;
	fontType  = blah blah
...
};

I don't mind leaving it in since it doesn't contain any game logic, I'm just curious why I need the cs and furthermore, if Apple will even approve the game since apparently it can't work without the scripting file.

Thanks for any hints,
Justin

#1
10/31/2009 (12:02 pm)
I'm curios about that too. especially since in some of my games I don't need the guiProfiles.cs file yet in others I do. However, it's the only .cs file that I need there. the rest I always delete.
#2
03/23/2010 (12:36 pm)
bump!
#3
03/24/2010 (5:26 am)
Correct me if I am wrong but I am guessing you created the game using a standard version TGB, and then ported it over to the iPhone? Or did you build it with iTGB on the PC?

The reason I ask this is because I didn't used guiProfiles.cs in my last game. I put my common/scripts/canvas and it worked for me.

As to why you have to have the cs file I don't know, I chopped it up to the new voodoo of being able to run the game without compiling scripts. :)