Mirage Engine
RTE9: subscript out of range - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: RTE9: subscript out of range (/showthread.php?tid=1222)



RTE9: subscript out of range - jiros - 28-08-2007

After following the paperdoll tutorial I came across this one:
[Image: 2005589736129524913_th.jpg]

Does someone know what could have caused this?


Re: RTE9: subscript out of range - Rezeyu - 28-08-2007

It means you went out of an expected range... What line did it highlight.


Re: RTE9: subscript out of range - jiros - 28-08-2007

It did not highlight anything, I was connecting and before I could choose my character it froze.


Re: RTE9: subscript out of range - Rezeyu - 28-08-2007

When the Vb 6 IDE hits an error, it highlights the line of code that causes it.
Unless you were running it compiled for whatever reason.


Re: RTE9: subscript out of range - Robin - 28-08-2007

He is, because there isn't a debug button.


Re: RTE9: subscript out of range - jiros - 28-08-2007

Quote:When the Vb 6 IDE hits an error, it highlights the line of code that causes it.
Unless you were running it compiled for whatever reason.
I used to run it compiled, I assumed that was okay, but it isn't, sorry

I ran it in vb6 and the following line was highlighted:
Client side
[Image: 2006361030515826336_th.jpg]


Re: RTE9: subscript out of range - Robin - 28-08-2007

Is parse(0) actually a number instead of a string?


Re: RTE9: subscript out of range - Rezeyu - 28-08-2007

No it's fine, Doesn't it run faster compiled?

Or something like that.


Re: RTE9: subscript out of range - jiros - 29-08-2007

Code:
Packet = "itemworn" & SEP_CHAR & Index & SEP_CHAR & Armor & SEP_CHAR & Weapon & SEP_CHAR & Helmet & SEP_CHAR & Shield & SEP_CHAR & END_CHAR



Re: RTE9: subscript out of range - William - 29-08-2007

Just move the lcase below the split parse... -_-


Re: RTE9: subscript out of range - jiros - 29-08-2007

Now I'm getting RTE6: overflow

It highlights:

Client side, ModClientTCP
Code:
Start = InStr(PlayerBuffer, END_CHAR)



Re: RTE9: subscript out of range - jiros - 30-08-2007

Client side, ModClientTCP
[Image: 2001973608497759121_th.jpg]


Re: RTE9: subscript out of range - Matt - 30-08-2007

It's okay to post the fullsize screenshots. I'm tired of looking on that.

I can't for the life of me (Just woke up) remember how to fix RTE6. I know I hate it though, it's annoying.

If I can remember, I'll post again. I just wanted to tell you to stop using thumbnails. =P


Re: RTE9: subscript out of range - jiros - 30-08-2007

Dave Wrote:I'd say just go back to your backup (you DID make a backup, didn't you?) and retry it. It's a tutorial that a lot of people have followed without problems, you shouldn't have had so many.

Of course I have backups :wink: , thanks for the help and effort.

EDIT:
copy/pasted it again, problem solved, it works perfect, thanks for the patience gracious lads that replied to my question.
I wish thou peace in thou lives and chocolate cream donuts as 4:00 AM breakfast