AggrorJorn Posted January 16, 2017 Share Posted January 16, 2017 I am trying to figure out why my game is crashing so often everytime I try to reset my car. I think I have found something but it also leaves with the question whether I am disposing my vehicle correctly. The test script attached is only a slight modification from the Leadwerks vehicle API. Create a new map with terrain Create a camera Creae a pivot Attach script to pivot:crashtest.lua Press R, Vehicle is reset correctly Press R again, the game crashes with the output seen in the screenshot: Link to comment Share on other sites More sharing options...
Jazz Posted January 16, 2017 Share Posted January 16, 2017 Crashes trying to release self.chassis. I put in self.chassis:Hide() as a test and it appeared to function okay. --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 16, 2017 Author Share Posted January 16, 2017 Crashes trying to release self.chassis. I put in self.chassis:Hide() as a test and it appeared to function okay. That is what I use in the game that is currently in the game launcher. However that might be the reason the car becomes so glitchy when trying to load a new car level. That said the error above does seem like a bug. If not than there should be documentation on how to properly dispose of a vehicle/chassis. Setting vehicle to nil first and then releasing the chassis wont work. Link to comment Share on other sites More sharing options...
Sakru Posted January 17, 2017 Share Posted January 17, 2017 That is what I use in the game that is currently in the game launcher. However that might be the reason the car becomes so glitchy when trying to load a new car level. That said the error above does seem like a bug. If not than there should be documentation on how to properly dispose of a vehicle/chassis. Setting vehicle to nil first and then releasing the chassis wont work. No bug in Linux, so this is Windows only. But game stops at second R hit. Link to comment Share on other sites More sharing options...
Josh Posted January 25, 2017 Share Posted January 25, 2017 Thanks, i found the cause of this and have fixed it. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts