Jed Posted May 18, 2014 Author Share Posted May 18, 2014 My game RTEs on loading interface when there's over 15 spell icons in the folder. It runs fine without a problem in VB6 but for some reason it errors out in the compiled EXE. I have no clue what the issue is and I can't recreate the problem when debugging because it doesn't happen when running from the source code. Link to comment Share on other sites More sharing options...
abhi2011 Posted May 19, 2014 Share Posted May 19, 2014 Are you compiling the VB6 source into an .exe before running it? Link to comment Share on other sites More sharing options...
Jed Posted May 24, 2014 Author Share Posted May 24, 2014 Of course I am, but the problem is that I can't find out what's wrong that causes it to error out only when running from the compiled exe. Link to comment Share on other sites More sharing options...
Stein Posted May 27, 2014 Share Posted May 27, 2014 Are you sure it's throwing an RTE9 over spell icons? And if so, in what engine? Because frankly speaking it doesn't ever load the icons during the interface step in the engines I'm familiar with. Link to comment Share on other sites More sharing options...
Jed Posted May 27, 2014 Author Share Posted May 27, 2014 When I've recreated the problem in the compiled exe (because it never throws the error when debugging), it only ever gives me an RTE9 when I have too many spell icons. It only ever seems to happen when there's over a certain amount of spell icons, which is 15 in my case. What I did was put something like 50 icons in the spell icons folder, ran the exe and the RTE9 happens. I renamed the 16th icon in the folder so it wouldn't load past 15 and then the error doesn't happen. It's weird because I can't find out the problem due to not being able to recreate it while debugging to see where it would point the source of the error so I'm really just defeated at this point. Link to comment Share on other sites More sharing options...
Stein Posted May 28, 2014 Share Posted May 28, 2014 But what engine is this in? And does it do the same thing with any other engine? Link to comment Share on other sites More sharing options...
Jed Posted May 28, 2014 Author Share Posted May 28, 2014 As stated in the topic name, I'm using Eclipse Origins 3.0\. As far as I know, this hasn't happened with other engines in my experience. Link to comment Share on other sites More sharing options...
Stein Posted May 29, 2014 Share Posted May 29, 2014 Oh right, I saw that at some point and edited it out of my original post, silly me.Anyhow, how many images are you putting in your folder exactly? (Or rather, does it still do this if you go up by increments of 5 images, and if so when?) Link to comment Share on other sites More sharing options...
abhi2011 Posted May 29, 2014 Share Posted May 29, 2014 I might have missed this but set your options.debug = 1i.e go to config.ini or whatever the options file is called for the client find the debug line and change it to 1\. Save and re-run.A log should be created during error which may help us figure out if it actually is a problem with spell icons. Link to comment Share on other sites More sharing options...
Jed Posted May 30, 2014 Author Share Posted May 30, 2014 The problem seems to be occurring in the LoadTexture procedure in modGraphics.The following error occured at 'LoadTexture' in 'modGraphics'.Run-time error '9': Subscript out of range.This was the error created in the log file. The game seems to load just fine if I set debug mode to true, but I don't want to have it in debug mode the entire time. If there's no other solution, then I'll just have to stick with it. Link to comment Share on other sites More sharing options...
Jed Posted May 30, 2014 Author Share Posted May 30, 2014 I found that the problem was with a corrupt file in the spellicons folder, not the engine. Although I wouldn't have found it without the debug option, thanks Abhi. Link to comment Share on other sites More sharing options...
Stein Posted May 30, 2014 Share Posted May 30, 2014 Strange how a corrupt file would give an RTE9, not quite the number I had expected to see. But glad it's fixed either way! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now