CubeCoders / AMPTemplates

For the AMP community to share Generic Module templates.
MIT License
93 stars 293 forks source link

Satisfactory - Add Join/Leave Regex #1001

Closed winglessraven closed 2 months ago

winglessraven commented 2 months ago

Changed -log to -stdout -FullStdOutLogOutput for more verbose logging. Log lines are not great but this regex works.

Join line example:

LogNet: Login request: ?ClientIdentity=2100000064316461376562353439343039613466653366373263626464643633316661660001000000012100000003621e6db9e5794ea3a90621c55c151e0100025cbba00a4a1d894dad87c5459564?EntryTicket=ew0KCSJwbCI6ICJBZG1pbmlzdHJhdG9yIiwNCgkiaWR0IjogIjE3MjYwMzEyNDYiDQp9.C41E2B1D7FAFA3B42B30554CA37B83418DB46DD1C6E2478529D63ACA4F293D3DC34B142BF8EB1C440A4B6056CB626C7A0752D9AC99F8BBE441AB8516D2CF650A?EncryptionToken=5339856C83B81BD43BD538BA11740B2833B6BDC3A83FAF7006C6C5DD4BC790B0?Name=winglessraven userId: Epic:1 (ForeignId=[Type=1 Handle=0 RepData=[03621E6DB9E5794EA3A90621C55C151E0100025CBBA00A4A1D894DAD87C5459564]) platform: NULL

Leave line example:

LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 94.193.199.94:53106, Name: IpConnection_2147473689, Driver: GameNetDriver FGDSIpNetDriver_2147482258, IsServer: YES, PC: BP_PlayerController_C_2147473509, Owner: BP_PlayerController_C_2147473509, UniqueId: Epic:1 (ForeignId=[Type=1 Handle=0 RepData=[03621E6DB9E5794EA3A90621C55C151E0100025CBBA00A4A1D894DAD87C5459564])
winglessraven commented 2 months ago

Worth noting that the current bug with userid tracking on player leave means that if there is more than one player online when a player leaves then the wrong one will be removed from the online players (I believe it's always the first in the list)