XBOX360 doesn't work multiple sceneload
by frontakk · in Torque X 2D · 03/20/2010 (10:53 pm) · 5 replies
Hi.I tried this code in Game.cs.
SceneLoader.Load(@"data\levels\Setting.txscene");
_camera = orqueObjectDatabase.Instance.FindObject<T2DSceneCamera>"Camera");
_camera.FarDistance = 10000f;
SceneLoader.Load(@"data\levels\stage1.txscene");
this code run the PC works fine.
But run the XBOX360 not work. (code 4 error)
this line comment out work fine.
//SceneLoader.Load(@"data\levels\stage1.txscene");
How to work multiple txscene load in XBOX360 ?
sorry, I'm bad English.
SceneLoader.Load(@"data\levels\Setting.txscene");
_camera = orqueObjectDatabase.Instance.FindObject<T2DSceneCamera>"Camera");
_camera.FarDistance = 10000f;
SceneLoader.Load(@"data\levels\stage1.txscene");
this code run the PC works fine.
But run the XBOX360 not work. (code 4 error)
this line comment out work fine.
//SceneLoader.Load(@"data\levels\stage1.txscene");
How to work multiple txscene load in XBOX360 ?
sorry, I'm bad English.
About the author
#2
SceneLoader.Load(@"data\levels\stage1.txscene");
_camera =torqueObjectDatabase.Instance.FindObject
<T2DSceneCamera>"Camera");
_camera.FarDistance = 10000f;
Setting.txscene --- player,enemy,bulletdata etc,,,
stage1.txscene --- stage1 buckground data.
stage1.txscene is light weight data.
03/22/2010 (4:12 am)
Yes,I tried this code, works fine.SceneLoader.Load(@"data\levels\stage1.txscene");
_camera =torqueObjectDatabase.Instance.FindObject
<T2DSceneCamera>"Camera");
_camera.FarDistance = 10000f;
Setting.txscene --- player,enemy,bulletdata etc,,,
stage1.txscene --- stage1 buckground data.
stage1.txscene is light weight data.
#3
It might be helpful for you to run it in the debugger...I don't know if anyone here can help you without at least a stack trace (although Duncan is pretty sharp). ;)
--RB
03/22/2010 (5:40 am)
Have you tried running this with the XNA GS debugger and seeing where the app is crashing? Or did you just deploy a copy to your Xbox and then execute it from the dashboard?It might be helpful for you to run it in the debugger...I don't know if anyone here can help you without at least a stack trace (although Duncan is pretty sharp). ;)
--RB
#4
Do you have a bunch of assets in the torque game project that aren't actually being used in the particular scene you're trying to load? Are you stripping those unused assets out of your levels? Check out this forum for a tool to do that: Preload Materials
03/22/2010 (11:02 am)
You can watch your task manager in Windows to see what the memory for the running game jumps up to. We've had code 4 issues with levels in the 400+ mb range. Do you have a bunch of assets in the torque game project that aren't actually being used in the particular scene you're trying to load? Are you stripping those unused assets out of your levels? Check out this forum for a tool to do that: Preload Materials
#5
Debugger set to "xbox360" works fine.
Copy to xbox, run the game, code 4 error ...
Preload Materials thread is very nice reference.
Many thanks!
03/23/2010 (10:07 am)
Thanks comments Ron and Josh.Debugger set to "xbox360" works fine.
Copy to xbox, run the game, code 4 error ...
Preload Materials thread is very nice reference.
Many thanks!
Torque Owner Duncan Colvin