Updating txchema when components are on separate class libraries
by Diego Santos Leao - GameBlox Studio · in Torque X 2D · 12/21/2008 (11:29 am) · 1 replies
Hi, I want to organize my projects by putting components on a separate class library. The problem is that the "myschema.txschema generator" (the exe that is called on a post build event) is not able to find the components I am referencing on my project (the my txschema ends up not contains any of my custom components).
I managed to find a workaround for this issue on windows (by following a tip offered in one of the posts here), but when I try to test the game on xbox, its not working. Does anyone have a definitive solution for this? Maybe a special parameter for the post build event that will also consider all referenced libraries when assembling the myschema.txschema?
Thanks!
I managed to find a workaround for this issue on windows (by following a tip offered in one of the posts here), but when I try to test the game on xbox, its not working. Does anyone have a definitive solution for this? Maybe a special parameter for the post build event that will also consider all referenced libraries when assembling the myschema.txschema?
Thanks!
About the author
Creative director at Gameblox Interactive, a game studio focused on downloadable games and advergames. www.gameblox.net - contact@gameblox.net.
Torque Owner Diego Santos Leao - GameBlox Studio
Instead I was suposed to create a "New>Project>XNA Game Studio 2.0>Windows Game Library".
After doing that, in the Game class, you have to call:
Engine.RegisterAssembly(Assembly.LoadFrom(@"YourDllContainingYourComponents.dll"));
Engine.RegisterAssembly(Assembly.LoadFrom(@"YourDllContainingMoreComponentsEtc.dll"));
So that all your components works. This works for windows.
To make it work for Xbox 360, you have to choose "Create copy of project to xbox" for each of your libraries (observe that if you do it first for your main "Game" dll, Visual Studio will probably create a copy for xbox for all the dependencies included on your solution.