Forge CE: Updated to latest OpenSauce
by, October 13th, 2010 at 10:04 PM (1104 Views)
I was going to wait to blog again, but oh well. I have been having this random crash happen when I am holding an object in Forge when it respawns. The object is destroyed and recreated while I am still trying to modify the invalid data. Even though I have null pointer checks properly in place, my code is not syncing up to the engine to where my code knows exactly when this respawn happens. So, I messaged Kornman and had a very brief conversation before he logged offline. I asked him about the object update hook in Objects.cpp, because he had the code hook commented out. I ask him if it worked and if this would be the ideal place to update my object pointers, but he said he will only help if I update to the latest code base in the Google Code project. I can understand that since he is not working on previous versions any longer, but the hook is the same thing and in the latest code base, it's also commented out. I guess I didn't understand why I had to update for him to answer such a generic question. Anyway, I downloaded the latest copy of OpenSauce (that is not even officially released yet) and added all my Forge code properly. I really do like the way the tree is setup and how the components system has changed. Lots of little updates I noticed that make a major difference. It's great!
Bad news -- my code is crashing after porting it over to the new OpenSauce. Sigh. The ONLY change I made was adding the new Release() function to the Forge DX Component. Everything is setup properly and it is crashing in the IDirect3DDevice9::Reset() function call in the engine before the main menu even loads. I haven't yet tried a build without the Forge components. I guess I should try that and see if it's actually my code that is crashing, which most likely it is, but who knows right now.
Edit: A clean release build of the latest OpenSauce is still crashing. I will have to continue development of the last released version until I can get them to fix this.
Once I get this crash taken care of, I will be continuing work on the menu and getting it's basis done and then work on the object respawn crash.
Keep checking back for updates guys and leave me some fudgin' comments already!!