80O / PlusEMU

37 stars 28 forks source link

No rights in the rooms #194

Closed Poumpilop closed 6 months ago

Poumpilop commented 6 months ago

Describe the bug A player who owns his room / has rights to a room does not have access to the moderation drop-down menu.

To Reproduce Steps to reproduce the behavior:

  1. Go to your room
  2. Click on the other player
  3. See the menu

Expected behavior it is supposed to appear as in the image below

Screenshots bugreport

Browser Console Error Nothing

If the bug is related to a disconnect, paste the possible related errors from the browsers dev console.

Emulator Error Nothing

Additional Information

The bug is only present with the nitro version. I started debugging on the emulator side and also looking at the nitro side to find out if it was receiving the information correctly. There is a problem with the update with the flatctrl, nitro correctly receives the line user.SetStatus("flatctrl", "1"); with the correct value.

However when updating in nitro userInfo.targetRoomControllerLevel = roomObject.model.getValue<number>(RoomObjectVariable.FIGURE_FLAT_CONTROL);

the value is referenced as "NaN" because it has not been updated yet, it is only after that nitro executes this piece of code.

if(message instanceof ObjectAvatarFlatControlUpdateMessage)
         {
             model.setValue(RoomObjectVariable.FIGURE_FLAT_CONTROL, message.level);

             return;
         }
80O commented 6 months ago

Report the bug to nitro. If it works in flash but not in Nitro, it is a nitro bug.

Yes we can start introducing workarounds, but Nitro should adhere to the same Flash protocol.