extenz Posted October 7, 2017 Share Posted October 7, 2017 This is the 2nd time I got this error. The first time I just made a new project and started over but this time I really don't feel like remaking it all again. Here's a screenshot: It worked just fine before I closed Leadwerks. When I reopened it without changing anything it just didn't work anymore. It doesn't say anything else. The error tab just says "Index out of range" and nothing else. No warnings either. The output tab says "Process Complete." I'm using Luawerks if that has something to do with it Any ideas, please? Quote Link to comment Share on other sites More sharing options...
reepblue Posted October 7, 2017 Share Posted October 7, 2017 Hey extenz, I have been having similar issues but as far as I know, it has something to do with releasing classes. First try to disable Luawerks with a default main script if possible. If you suspect it is Luawerks, lemme know. I haven't played with it since August, but I'll be more than happy to look into it. Be careful what you release as the world:clear() call releases all entities automatically. This is one reason why Josh is moving to smart pointers in LE5. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
extenz Posted October 8, 2017 Author Share Posted October 8, 2017 7 hours ago, reepblue said: Hey extenz, I have been having similar issues but as far as I know, it has something to do with releasing classes. First try to disable Luawerks with a default main script if possible. If you suspect it is Luawerks, lemme know. I haven't played with it since August, but I'll be more than happy to look into it. Be careful what you release as the world:clear() call releases all entities automatically. This is one reason why Josh is moving to smart pointers in LE5. Yeah, it's definitely Luawerks. I just replaced the Main.lua with a default one and it works Quote Link to comment Share on other sites More sharing options...
Josh Posted October 8, 2017 Share Posted October 8, 2017 Typically this will mean you are calling GetChild() or GetSurface() with an invalid index. I can't see what function the code is stopped on in the script window. Quote 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...
Solution extenz Posted October 8, 2017 Author Solution Share Posted October 8, 2017 oh I didn't even notice it highlights the error lol I commented the highlighted line and uncommented the one above it and it works again 1 Quote Link to comment Share on other sites More sharing options...
reepblue Posted October 9, 2017 Share Posted October 9, 2017 I'll take a look at this, thanks. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.