Enable GM (anonymous mode) for all players

This commit is contained in:
Chord 2016-08-05 20:03:03 -04:00
parent ccad92a555
commit 38715c0d04
2 changed files with 4 additions and 6 deletions

View file

@ -13,8 +13,7 @@ final case class LoginRespMessage(token : String, // printable ascii for 16
subscriptionStatus : Long, // 2 or 5
someToken : Long, // 685276011
username : String, // the user
unk5 : Long, // 0 and unset bool
someBit : Boolean) extends PlanetSideGamePacket {
privilege : Long) extends PlanetSideGamePacket {
def opcode = GamePacketOpcode.LoginRespMessage
def encode = LoginRespMessage.encode(this)
}
@ -27,8 +26,7 @@ object LoginRespMessage extends Marshallable[LoginRespMessage] {
("station_error" | uint32L) ::
("subscription_status" | uint32L) ::
("unknown" | uint32L) ::
("username" | PacketHelpers.encodedString) ::
("unknown" | uint32L) ::
("unknown" | byteAligned(bool))
("username" | PacketHelpers.encodedString) :: (
("privilege" | uint32L) flatZip { priv => bool } xmap[Long]({case (a, _) => a}, priv => (priv, (priv & 1) == 1)))
).as[LoginRespMessage]
}

View file

@ -118,7 +118,7 @@ class LoginSessionActor extends Actor with MDCContextAware {
val newToken = token.getOrElse("THISISMYTOKENYES")
val response = LoginRespMessage(newToken, hex"00000000 18FABE0C 00000000 00000000",
0, 1, 2, 685276011, username, 0, false)
0, 1, 2, 685276011, username, 10001)
sendResponse(PacketCoding.CreateGamePacket(0, response))