Roomads catalog page disconnect
Hi!
I can't seem to get the roomads catalog page to work. When I click on the page, I get disconnected and receive this error:
Code:
error_desc:Error in update receiver "com.sulake.bootstrap::CoreCommunicationManagerBootstrap": Error: Menu selection index out of range!
mouse_up_target:normal_subitem_template: [Window case ::RegionController normal_subitem_template 3463]
click_target:normal_subitem_template: [Window case ::RegionController normal_subitem_template 3463]
This is the structure that gets send for the page:
Code:
base.WriteInteger(Page.PageId);
base.WriteString("NORMAL");
base.WriteString("roomads");
base.WriteInteger(2);
base.WriteString("events_header");
base.WriteString("");
base.WriteInteger(2);
base.WriteString(Page.Text1);
base.WriteString("");
base.WriteInteger(Page.Items.Count);
base.WriteInteger(Item.Id);
base.WriteString(Item.Name);
base.WriteBoolean(false);
base.WriteInteger(Item.CreditsCost);
base.WriteInteger(Item.DucketsCost);
base.WriteInteger(0);
base.WriteBoolean(Item.Present);
base.WriteInteger(1);
base.WriteString("b");
base.WriteString("RADZZ");
base.WriteString("");
base.WriteInteger(0);
base.WriteInteger(0);
base.WriteBoolean(Item.HaveOffer && !Item.IsLimited);
After that it requests for the rooms that are "eventable" so to speak, this is what gets send for that:
Code:
base.WriteBoolean(true);
base.WriteInteger(UserRooms.Count);
foreach (RoomData room in UserRooms)
{
base.WriteInteger(room.Id);
base.WriteString(room.Name);
base.WriteBoolean(false);
}
When I searched in the SWF on "Menu selection index out of range!" I found this:
Code:
public function set selection(_arg1:int):void
{
if (_arg1 > (this.numMenuItems - 1)){
throw (new Error("Menu selection index out of range!"));
};
var k:WindowEvent = WindowEvent._-SK(WindowEvent._-4DL, this, null, true);
this.update(this, k);
if (!k._-3w0()){
k.recycle();
this._-18j = _arg1;
this.closeExpandedMenuView();
k = WindowEvent._-SK(WindowEvent._-2sa, this, null);
this.update(this, k);
};
k.recycle();
}
I really don't understand what the problem could be. I changed the page_layout to default_3x3 just to test if the items in the page were not the problem, the page loaded when I did that, when I changed it back to roomads I got disconnected again with that error.
How can I solve this?
Re: Problem with roomads catalog page
I made sure no items get appended for the roomads catalog page, just to test, I still receive the same error. Any ideas?
Re: Roomads catalog page disconnect
I still haven't been able to solve this, if anybody could point me in the right direction that'd be great.
Re: Roomads catalog page disconnect
Come on guys.. a little help ;l
Re: Roomads catalog page disconnect
Hay, can you upload the files? (Catalog.cs / CatalogItem.cs(?) / CatalogPage.cs(?) etc.)
Re: Roomads catalog page disconnect
Quote:
Originally Posted by
Ryan
Hay, can you upload the files? (Catalog.cs / CatalogItem.cs(?) / CatalogPage.cs(?) etc.)
https://www.sendspace.com/file/9j1zsu
Hope this is sufficient
Re: Roomads catalog page disconnect
Re: Roomads catalog page disconnect
What emulator is this bc I have it working on Sled's Plus
Re: Roomads catalog page disconnect
I found the problem!
It was such a stupid little thing. Turned out I had to send the promotion categories when the emulator receives the inforetrieve event. The emulator is a silverwave edit by the way, but I fixed the problem myself after getting headaches from it for 4 days. o.o
Re: Roomads catalog page disconnect
Quote:
Originally Posted by
Gaby
I found the problem!
It was such a stupid little thing. Turned out I had to send the promotion categories when the emulator receives the inforetrieve event. The emulator is a silverwave edit by the way, but I fixed the problem myself after getting headaches from it for 4 days. o.o
Oops, I totally forgot, glad it's fixed :sleep: Anyway, the next time when nobody reacts / know the solution, please, let me know.
Goodluck!
Re: Roomads catalog page disconnect
Quote:
Originally Posted by
Ryan
Oops, I totally forgot, glad it's fixed :sleep: Anyway, the next time when nobody reacts / know the solution, please, let me know.
Goodluck!
Will do. (: Thanks