[Packets]

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Hi Guys,

I cannot open room settings. Been searching why I cannot open any settings and can't seem to find out why...
Any ideas?

Edit:
You can open room settings from the navigator , not the room tools
 

Brad

Well-Known Member
Jun 5, 2012
2,319
992
Are you updating an older version?

this is old and might not work, but I remember from and old version in UserPerksComposer.cs You need to set the boolean under base.WriteString("NAVIGATOR_PHASE_TWO_2014"); to true.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Are you updating an older version?

this is old and might not work, but I remember from and old version in UserPerksComposer.cs You need to set the boolean under base.WriteString("NAVIGATOR_PHASE_TWO_2014"); to true.
No, so I have had this version and I could have sworn room settings DID WORK. Then all of a sudden I can't get the room settings to open and they only open by going into Navigator , and selecting "Room Settings" while hovering over the icon.

Not sure what else to try I feel like I have combed through ALL of my options here
 
I believe I am using a revision from May 2017.
 

Mikee

Active Member
Jul 8, 2017
162
102
My only hunch since u say u can open it with the navigator and not the button in the room is that the Room object being passed is not correct for some reason.

that is, when u click it in navigator, the GetRoomSettingsEvent recognizes which Room object to pass to the RoomSettingsDataComposer packet, but it doesn't recognize the Room object to pass to that same packet (RoomSettingsDataComposer) when it is clicked through the settings button.

I might be completely wrong but just throwing ideas out there.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
My only hunch since u say u can open it with the navigator and not the button in the room is that the Room object being passed is not correct for some reason.

that is, when u click it in navigator, the GetRoomSettingsEvent recognizes which Room object to pass to the RoomSettingsDataComposer packet, but it doesn't recognize the Room object to pass to that same packet (RoomSettingsDataComposer) when it is clicked through the settings button.

I might be completely wrong but just throwing ideas out there.
So I put a Console.Writeline inside "GetRoomSettingsEvent"

When I clicked "Room Settings" in the room , I seen nothing.
When I clicked "Room Settings" on the navigator, I seen the alert + the pop up window for settings.
 
 

Mikee

Active Member
Jul 8, 2017
162
102
So I put a Console.Writeline inside "GetRoomSettingsEvent"

When I clicked "Room Settings" in the room , I seen nothing.
When I clicked "Room Settings" on the navigator, I seen the alert + the pop up window for settings.


Hmm interesting. Can you try Session.Sendwhisper(Convert.ToString(Room.Id)) just to see if when that button is clicked if the room object is being initalized properly
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Hmm interesting. Can you try Session.Sendwhisper(Convert.ToString(Room.Id)) just to see if when that button is clicked if the room object is being initalized properly
It's not calling that method at all...
 
If I click on the room navigator it says "Incoming Packet --> Room Settings"
If I click on the room tools it says nothing.
 

Mikee

Active Member
Jul 8, 2017
162
102
?
I may be completely dumb right now but i believe it is
Room Room = PlusEnvironment.GetGame().GetRoomManager().LoadRoom(Packet.PopInt());
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
?
I may be completely dumb right now but i believe it is
Room Room = PlusEnvironment.GetGame().GetRoomManager().LoadRoom(Packet.PopInt());
Nah Mate, It's not sending/receiving any packets when I click on "Room Settings"... Where as with the navigator I can see on the [DEBUG] it says room settings. 1 sec ill show
 

Mikee

Active Member
Jul 8, 2017
162
102
Nah Mate, It's not sending/receiving any packets when I click on "Room Settings"... Where as with the navigator I can see on the [DEBUG] it says room settings. 1 sec ill show
Oh ok, i thought u were saying that the code wasnt trying to get the Room object, i misunderstood.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Code:
private void RegisterRoomSettings()
        {
            this._incomingPackets.Add(ClientPacketHeader.GetRoomSettingsMessageEvent, new GetRoomSettingsEvent());
            this._incomingPackets.Add(ClientPacketHeader.SaveRoomSettingsMessageEvent, new SaveRoomSettingsEvent());
            this._incomingPackets.Add(ClientPacketHeader.DeleteRoomMessageEvent, new DeleteRoomEvent());
            this._incomingPackets.Add(ClientPacketHeader.ToggleMuteToolMessageEvent, new ToggleMuteToolEvent());
            this._incomingPackets.Add(ClientPacketHeader.GetRoomFilterListMessageEvent, new GetRoomFilterListEvent());
            this._incomingPackets.Add(ClientPacketHeader.ModifyRoomFilterListMessageEvent, new ModifyRoomFilterListEvent());
            this._incomingPackets.Add(ClientPacketHeader.GetRoomRightsMessageEvent, new GetRoomRightsEvent());
            this._incomingPackets.Add(ClientPacketHeader.GetRoomBannedUsersMessageEvent, new GetRoomBannedUsersEvent());
            this._incomingPackets.Add(ClientPacketHeader.UnbanUserFromRoomMessageEvent, new UnbanUserFromRoomEvent());
            this._incomingPackets.Add(ClientPacketHeader.SaveEnforcedCategorySettingsMessageEvent, new SaveEnforcedCategorySettingsEvent());
        }
 
I have 100% confirmed - There is NO PACKETS incoming when I click that button.
 

Users who are viewing this thread

Top