GeminiXcasorm Posted June 30, 2014 Author Share Posted June 30, 2014 Ohkay. so i recently added in an ungodly amount of paperdolls. i went from having 442 to something like 632\. and i kept getting this "error 9, subscript is out of range". And i thought it had something to do with maybe the background colors. so i took all of the ones that didnt have my default background colors and changed them opaque. And yet the problem proceeded to happen. so i opened it in vb6 in a test window, and it came up with a problem with this line : ```CopyMemory ByVal VarPtr(Item(n)), ByVal VarPtr(ItemData(0)), ItemSize```And i was curious, if noone can help me with it with that information, if i could send my source and project to someone if they could get it working? PLEASE AND THANK YOU!p.s. will not sell soul for work. i already made that mistake once on here. ![](http://i1244.photobucket.com/albums/gg571/gemini_castorm/HELP.png) Link to comment Share on other sites More sharing options...
Seb Posted June 30, 2014 Share Posted June 30, 2014 Are the paperdolls all numbered/formatted correctly Link to comment Share on other sites More sharing options...
GeminiXcasorm Posted June 30, 2014 Author Share Posted June 30, 2014 I believe so. i used an external program to format them all to png from bmp. (total commander). And i know that they're all numbered correctly because i used total commander to make sure of that. Link to comment Share on other sites More sharing options...
hisherwin Posted June 30, 2014 Share Posted June 30, 2014 as far as i know, numbers of paperdoll isn't involve with the error..check this solution* try to have only 400 paperdoll..check if it will work..* try to check if the ItemRec on server side match the ItemRec on the client side* try to delete the old item dataif it didn't work.. add me on skype (username: hisherwin) i'll try to help you there.Note: don't add me if you didn't test the solution Link to comment Share on other sites More sharing options...
GeminiXcasorm Posted July 1, 2014 Author Share Posted July 1, 2014 > as far as i know, numbers of paperdoll isn't involve with the error..> > check this solution> > > > * try to have only 400 paperdoll..check if it will work..> * try to check if the ItemRec on server side match the ItemRec on the client side> * try to delete the old item data> > if it didn't work.. add me on skype (username: hisherwin) i'll try to help you there.> > Note: don't add me if you didn't test the solutionDo you think if i where to add you you could help me with some other stuff as well? i'm new to coding, and teaching myself using nothing but tutorials on the forums is kinda difficult, saying as i'm balancing that and highschool.also, i deleted all the pictures i added. i think i'm going to go through them all one at a time, and only save the ones that i'm certain i want. Link to comment Share on other sites More sharing options...
abhi2011 Posted July 1, 2014 Share Posted July 1, 2014 As Sherwin said make sure the Item rec on server matches with that on client. You can do lenb(item(1)) on server and client to check whether the size is the same. (Copymemory doesn't care about how it is ordered or if all of them are of the same data type it only cares about the size) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted July 1, 2014 Share Posted July 1, 2014 Well, I'll tell you right now, it is not an issue with there not being enough slots open for the number of images you are trying to load.CopyMemory ByVal VarPtr(Item(n)), ByVal VarPtr(ItemData(0)), ItemSizeI changed the color of the part of the code, it's just taking the number/amount of images you have, if I have to guess, somewhere along the line you have a misnumbered image. If that's not the case then I do not know what's up. Link to comment Share on other sites More sharing options...
GeminiXcasorm Posted July 1, 2014 Author Share Posted July 1, 2014 error 9 subscript out of range. i ordered them correctly and everything. the only thing i can think of is if its possibly coded to only have a certain color palate? Is there a tutorial somewhere on here to make it to it can handle any image type? Link to comment Share on other sites More sharing options...
My Brave Shine Posted July 2, 2014 Share Posted July 2, 2014 Baron s2 i hate you : )))))) *0* Link to comment Share on other sites More sharing options...
SkywardRiver Posted July 2, 2014 Share Posted July 2, 2014 > error 9 subscript out of range. i ordered them correctly and everything. the only thing i can think of is if its possibly coded to only have a certain color palate? Is there a tutorial somewhere on here to make it to it can handle any image type?Nah, not a certain color palette. And there is no limit to an amount of paperdolls you can have. Send me the source/project if you want and I'll try to see what's the matter. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted July 2, 2014 Share Posted July 2, 2014 Thanks Lovely~, anyways, it shouldn't be giving you this error, just send Sky the code, he should find it. Link to comment Share on other sites More sharing options...
hisherwin Posted July 2, 2014 Share Posted July 2, 2014 INFERNO.. still having this problem? add me on skype.. i'll try to help you. Link to comment Share on other sites More sharing options...
GeminiXcasorm Posted July 2, 2014 Author Share Posted July 2, 2014 > INFERNO.. still having this problem? add me on skype.. i'll try to help you.I figured it was a problem with the color palate or something, so im going through, and re-saving them all without the color palate. we'll see how it goes. Link to comment Share on other sites More sharing options...
Jed Posted July 2, 2014 Share Posted July 2, 2014 If it helps any, I had a similar problem except for spell icons. The problem wasn't the amount of files I had but rather one or more of your files got corrupted in the process. Try lowering the amount of paperdolls loaded until it stops erroring then start increasing the amount loaded until you can narrow down the culprit. 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