mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-20 02:54:46 +00:00
removing excess faux-guid initialization from char select; moving client poke executor to stop server from generating new sessions when idling
This commit is contained in:
parent
040bea8b13
commit
1f59550641
|
|
@ -654,6 +654,11 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
log.info(s"New world login to $server with Token:$token. $clientVersion")
|
||||
self ! ListAccountCharacters
|
||||
|
||||
import scala.concurrent.duration._
|
||||
import scala.concurrent.ExecutionContext.Implicits.global
|
||||
clientKeepAlive.cancel
|
||||
clientKeepAlive = context.system.scheduler.schedule(0 seconds, 500 milliseconds, self, PokeClient())
|
||||
|
||||
case msg @ CharacterCreateRequestMessage(name, head, voice, gender, empire) =>
|
||||
log.info("Handling " + msg)
|
||||
sendResponse(PacketCoding.CreateGamePacket(0, ActionResultMessage(true, None)))
|
||||
|
|
@ -670,11 +675,6 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
//TODO if yes, get continent guid accessors
|
||||
//TODO if no, get sanctuary guid accessors and reset the player's expectations
|
||||
galaxy ! InterstellarCluster.GetWorld("home3")
|
||||
|
||||
import scala.concurrent.duration._
|
||||
import scala.concurrent.ExecutionContext.Implicits.global
|
||||
clientKeepAlive.cancel
|
||||
clientKeepAlive = context.system.scheduler.schedule(0 seconds, 500 milliseconds, self, PokeClient())
|
||||
case default =>
|
||||
log.error("Unsupported " + default + " in " + msg)
|
||||
}
|
||||
|
|
@ -1449,18 +1449,6 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
tplayer.Holsters().foreach(holster => {
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(holster.Equipment, gen)
|
||||
})
|
||||
tplayer.Inventory.Items.foreach({
|
||||
case ((_, entry : InventoryItem)) =>
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
tplayer.Slot(5).Equipment match {
|
||||
case Some(locker) =>
|
||||
locker.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case ((_, entry : InventoryItem)) =>
|
||||
SetCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj), gen)
|
||||
})
|
||||
case None => ;
|
||||
}
|
||||
})
|
||||
tplayer.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||
}
|
||||
|
||||
|
|
@ -1492,17 +1480,6 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
tplayer.Holsters().foreach(holster => {
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(holster.Equipment)
|
||||
})
|
||||
tplayer.Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
})
|
||||
tplayer.Slot(5).Equipment match {
|
||||
case Some(locker) =>
|
||||
locker.Invalidate()
|
||||
locker.asInstanceOf[LockerContainer].Inventory.Items.foreach({ case((_, entry : InventoryItem)) =>
|
||||
RemoveCharacterSelectScreenGUID_SelectEquipment(Some(entry.obj))
|
||||
})
|
||||
case None => ;
|
||||
}
|
||||
tplayer.Invalidate()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue