| Mirage Source http://web.miragesource.net/forums/ |
|
| Another RTE9 Problem http://web.miragesource.net/forums/viewtopic.php?f=201&t=3230 |
Page 1 of 1 |
| Author: | Stomach Pulser [ Fri Jan 04, 2008 7:42 pm ] |
| Post subject: | Another RTE9 Problem |
OK. I am trying to add an item feature that stores its value (the worth of the item to the markets). But, when I open the itemeditor and try to edit an item it says RTE 9: Subscript Out of Range, and it highlights "Item(n).Value = Val(Parse(9))" I traced the variable, it was declared. I scrolled over it and the tool-tip box popped up saying that "Item(n).Value = 0" The value variable itself is a long. I made sure that the server and client had the same packet information for that variable. Any help? |
|
| Author: | Lea [ Fri Jan 04, 2008 10:04 pm ] |
| Post subject: | Re: Another RTE9 Problem |
Parse(9) probably doesn't exist. Either that, or Item(n) doesn't exist. |
|
| Author: | Stomach Pulser [ Fri Jan 04, 2008 10:30 pm ] |
| Post subject: | Re: Another RTE9 Problem |
This is the code before it, and it executes properly, so I know the item exists: Code: Item(n).Name = Parse(2) Item(n).Pic = Val(Parse(3)) Item(n).Type = Val(Parse(4)) Item(n).Data1 = Val(Parse(5)) Item(n).Data2 = Val(Parse(6)) Item(n).Data3 = Val(Parse(7)) Item(n).Weight = Val(Parse(8)) Item(n).Value = Val(Parse(9)) And I checked the packets sent between the client and server and they include the value attribute at the 9th section. |
|
| Author: | Lea [ Fri Jan 04, 2008 10:33 pm ] |
| Post subject: | Re: Another RTE9 Problem |
then what is the value of parse(9)? |
|
| Author: | James [ Fri Jan 04, 2008 11:25 pm ] |
| Post subject: | Re: Another RTE9 Problem |
I think I had this error after I changed the thing to break on every error, if you are still using the default INis, before really changing anything, many developed things are missing values. I'd clear them out, see if that doesn't help. |
|
| Author: | Stomach Pulser [ Fri Jan 04, 2008 11:26 pm ] |
| Post subject: | Re: Another RTE9 Problem |
The value of Parse(9) is the item.value, which, since I have no items, is zero. When I started this project, I cleared all items, npcs, and shops. |
|
| Author: | Lea [ Fri Jan 04, 2008 11:28 pm ] |
| Post subject: | Re: Another RTE9 Problem |
Are those loaded from the files? Do they exist in the files? |
|
| Author: | Stomach Pulser [ Sat Jan 05, 2008 12:04 am ] |
| Post subject: | Re: Another RTE9 Problem |
No, when I'm opening the itemeditor, there are no files, so it should load everything at zero. |
|
| Author: | Anthony [ Sat Jan 05, 2008 12:47 am ] |
| Post subject: | Re: Another RTE9 Problem |
Make sure your server is loading and saving the items properly is what Dave was getting at I think. I would try following everything from your client to server to client to server and so on and so forth. Find /edititem and follow the packets back and forth till you find an error in the parsing or something. |
|
| Author: | Stomach Pulser [ Sat Jan 05, 2008 2:21 am ] |
| Post subject: | Re: Another RTE9 Problem |
Already checked all that, but I'll check it again I guess. Might have missed something... [Edit] Everything is fixed, I lost a SEP_CHAR in my packet that loads the Item. My items work fine now! Thanks for the help. |
|
| Author: | Lea [ Sat Jan 05, 2008 1:32 pm ] |
| Post subject: | Re: Another RTE9 Problem |
So Parse(9) didn't exist, which is the first thing I asked you to check XD |
|
| Author: | Stomach Pulser [ Sat Jan 05, 2008 7:42 pm ] |
| Post subject: | Re: Another RTE9 Problem |
I thought it existed, but, since I'm an idiot, I didn't see the missing SEP_CHAR. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|