Game Development Community

Error On Start

by Rik Dodsworth · in Torque X Platformer Kit · 09/25/2007 (1:36 am) · 6 replies

I tried this out on one machine and it worked ok, so first off i dont think this is an actual bug with the framework or anything maybe just a setup config issue.
When running the platformer demo on my laptop it gets the game.Run line and errors with the following error
I put the stack trace in as well incase it helps

An unknown error has occurred. The result code was -2147467259.

at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 minVertexIndex, Int32 numVertices, Int32 startIndex, Int32 primitiveCount)
at GarageGames.Torque.T2D.T2DRenderManager.Render(SceneRenderState srs)
at GarageGames.Torque.RenderManager.SceneRenderer.Render(SceneRenderState srs)
at GarageGames.Torque.T2D.T2DSceneGraph.Render(GFXDevice gfx, TorqueObjectType renderMask, TorqueObjectType noRenderMask)
at GarageGames.Torque.GUI.GUISceneview.OnRender(Vector2 offset, RectangleF updateRect)
at GarageGames.Torque.GUI.GUICanvas.OnRender(Vector2 offset, RectangleF updateRect)
at GarageGames.Torque.GUI.GUICanvas.RenderFrame()
at GarageGames.Torque.XNA.TorqueEngineComponent.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Draw(GameTime gameTime)
at GarageGames.Torque.GameUtil.TorqueGame.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Paint(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameWindow.OnPaint()
at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Form.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Microsoft.Xna.Framework.WindowsGameForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at CallWindowProcW(IntPtr , HWND__* , UInt32 , UInt32 , Int32 )
at MouseSubClassFunc(HWND__* hWnd, UInt32 msg, UInt32 wParam, Int32 lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.Run()
at GarageGames.Torque.PlatformerDemo.GameStarter.Main(String[] args) in C:\Users\Rik\Documents\Visual Studio 2005\Projects\PlatformerDemo1\PlatformerDemo1\Game\Main.cs:line 24

#1
09/25/2007 (6:16 am)
What graphics card, version of directx, and drivers are you using? That info should help tracing configuration issues.

EDIT:
Also note OS, whether you are accessing the source on a physical volume or a network volume as Visual Studio may be having trust issues.

EDIT 2:
Also, which version of the XNA and Visual Studio do you have on the laptop? I've seen a couple of issues with the new 2008 version and converting projects listed on other forums. I haven't moved to 2008.
#2
09/25/2007 (6:47 am)
Ok i am using a macbook 2Ghz core duo..
GFX card is i think Intel 945 Express
I have c# epres 2005
XNA GSE 1.0 refresh

windows vista
all updates applied
all service packs and fixes related to VS

i am accessing source from my documents locally.

i can run other game code.. things iv written not using torque X work fine.. infact a simple TorqueX project works fine.. just not the starter kit


hope this helps
#3
09/25/2007 (6:51 am)
One more thing since you're using a macbook, are you using Bootcamp or Parellels? I do not know if the platformer kit (or TorqueX for that matter) has been tested with either one.
#4
09/25/2007 (7:05 am)
Bootcamp, parellels is dirty and VMWare doesnt have support for DX9 so i didnt even attempt that.
i can play command and conquer 3 on this beast im pretty sure its hardware capable..
i have a feelling its just a config issue with something. i could be wrong. iv tried looking around the starter kit for things i could change to see if that works but not found anything that i thought would make a difference

as i say TorqueX works with a simple game and a sprite moving around.. since then iv tried a bigger project with more objects in and it still works fine.
there must be something in the starter kit thats used that doesnt like my config or hardware.. is there anything noticably sexy being used in the starter kit that couldpotentially cause issue with lower specced hardware, although i wouldnt class my macbook as a low spec.... except gfx being a bit slow..as i say t runs really intensive games just fine with settings turned down slightly
#5
09/25/2007 (7:06 am)
Sorry if i wasnt clear.
i am using BootCamp
#6
09/25/2007 (7:13 am)
Sorry if i wasnt clear.
i am using BootCamp