![]() |
Another RTE9 Problem - Printable Version +- Mirage Source (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: Another RTE9 Problem (/showthread.php?tid=1488) |
Another RTE9 Problem - Stomach Pulser - 04-01-2008 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? Re: Another RTE9 Problem - Stomach Pulser - 04-01-2008 This is the code before it, and it executes properly, so I know the item exists: Code: Item(n).Name = Parse(2) And I checked the packets sent between the client and server and they include the value attribute at the 9th section. Re: Another RTE9 Problem - Stomach Pulser - 04-01-2008 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. Re: Another RTE9 Problem - Stomach Pulser - 05-01-2008 No, when I'm opening the itemeditor, there are no files, so it should load everything at zero. Re: Another RTE9 Problem - Anthony - 05-01-2008 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. Re: Another RTE9 Problem - Stomach Pulser - 05-01-2008 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. Re: Another RTE9 Problem - Stomach Pulser - 05-01-2008 I thought it existed, but, since I'm an idiot, I didn't see the missing SEP_CHAR. |