dev
textPage 36 of 208
50 messages on this page
Tuesday, August 10, 2021
User a506fe
but you /just/ tested...which is cool π
User a506fe
π
User a506fe
i.....was....almost.....there
User bddf69
I'll need to listen to this pvp-ish log line and the logline where a player dies to zombies or smth
User bddf69
Unfortunate there's no log for a generic death though
User bddf69
Just need to handle both scenarios, one where CPM handles the GMSG and one where the log line appears naturally
User bddf69
That'll work!
User bddf69
2021-08-10T10:06:12 969.089 INF GameMessage handled by mod 'CSMM Patrons': GMSG: Player 'Catalysm' killed by 'Catalysm'π
User a506fe
depends on how i did the harmony path for this
User bddf69
makes an ass out of u and me
User bddf69
But yknow what they say about assuming
User bddf69
Imma test that too cause I was assuming that it would dissapear from logs too
User a506fe
π
User a506fe
need to check
User a506fe
hold your horse
User bddf69
oooo rly
User a506fe
will check that
User a506fe
i disable the chat only though
User bddf69
But not output to the game chat?>
User bddf69
Is it a lot of work to let that disable function still output to logs?
User a506fe
π
User bddf69
π
User a506fe
stupid cpm functionality
User a506fe
also true
User bddf69
but it'll be brittle, in the sense that if someone disables those messages, CSMM wont be able to react to it
User a506fe
2 lines possible
User a506fe
for sure
User bddf69
Yeah so I could add a handler when CSMM sees a GMSG for death
User a506fe
no other entity involved in death will spit string.Format("GMSG: Player '{0}' died", _mainName);
User a506fe
still waking up
User a506fe
other way around of course
User bddf69
Yeah but I remembered some issues in the past for someone who had disabled those GMSGs (was for smth else that deaths iirc)
So had a google to see how to disable those π
https://community.7daystodie.com/topic/13999-disable-joinedleft-messages/?do=findComment&comment=272668
https://community.7daystodie.com/topic/13999-disable-joinedleft-messages/?do=findComment&comment=272668
User a506fe
in log (as text will be used in Log.Out(text);)
User a506fe
so if you die without any entity killing you (falling for ex) you get text = string.Format("GMSG: Player '{0}' killed by '{1}'", _mainName, _secondaryName);
User a506fe
case EnumGameMessages.EntityWasKilled: if (!string.IsNullOrEmpty(_secondaryName)) { text = string.Format("GMSG: Player '{0}' killed by '{1}'", _mainName, _secondaryName); _msg = string.Format(Localization.Get("killedGameMessage"), _secondaryName, _mainName); goto IL_D2; } text = string.Format("GMSG: Player '{0}' died", _mainName); _msg = string.Format(Localization.Get("diedGameMessage"), _mainName); goto IL_D2; case EnumGameMessages.JoinedGame: text = string.Format("GMSG: Player '{0}' joined the game", _mainName); _msg = string.Format(Localization.Get("joinGameMessage"), _mainName); goto IL_D2; case EnumGameMessages.LeftGame: text = string.Format("GMSG: Player '{0}' left the game", _mainName); _msg = string.Format(Localization.Get("leaveGameMessage"), _mainName); goto IL_D2; } return text; IL_D2: if (_log) { Log.Out(text); } if (!GameManager.IsDedicatedServer) { _msg += "[ffffffff][/url][/b][/i][/u][/s][/sub][/sup][ff]"; foreach (EntityPlayerLocal entityPlayer in this.m_World.GetLocalPlayers()) { XUiC_ChatOutput.AddMessage(LocalPlayerUI.GetUIForPlayer(entityPlayer).xui, _type, EChatType.Global, -1, null, _msg); } } return text;```
User a506fe
vanilla logic:
User bddf69
Yeah, with bags disabled the output is a lot shorter
2021-08-10T09:54:57 294.723 INF GMSG: Player 'Catalysm' killed by 'Catalysm' 2021-08-10T09:55:11 308.966 INF Player set to online: 76561198028175941 2021-08-10T09:55:11 308.968 INF PlayerSpawnedInWorld (reason: Died, position: -81, 59, -10): EntityID=171, PlayerID='76561198028175941', OwnerID='76561198028175941', PlayerName='Catalysm'
User bddf69
lol
User bddf69
tho*
User bddf69
imma check that ho
User bddf69
and idk if those bag entity lines will exist when dropondeath is configured
User bddf69
I'm kinda scared to use the GMSG cause that's something that can be disabled
User bddf69
I thought there's a logline directly when you died?
User bddf69
2021-08-10T09:44:34 20366.434 INF Client 76561198028175941/Catalysm executing client side command: cm 2021-08-10T09:45:00 20393.262 INF Time: 339.51m FPS: 34.67 Heap: 1215.4MB Max: 1217.9MB Chunks: 240 CGO: 57 Ply: 1 Zom: 3 Ent: 10 (12) Items: 2 CO: 1 RSS: 2238.5MB 2021-08-10T09:45:16 20408.726 INF GMSG: Player 'Catalysm' killed by 'Catalysm' 2021-08-10T09:45:16 20408.754 INF 409900 EntityBackpack id 0, plyrId 171, (0.0, 0.0, 0.0) (0, 0), chunk False (0, 0, 0), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Read 2021-08-10T09:45:16 20408.754 INF 409900 EntityBackpack id 1053, plyrId 171, (350.1, 63.1, -346.1) (21, -22), chunk True (21, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Write 2021-08-10T09:45:16 20408.758 INF TileEntityLootContainer backpack write 0, 0, 0 2021-08-10T09:45:16 20408.763 INF 409900 EntityBackpack id 1053, plyrId 171, (350.1, 63.1, -346.1) (21, -22), chunk True (21, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Start 2021-08-10T09:45:16 20409.018 INF [CSMM_Patrons] 2 falling blocks prevented! @ 346, 60, -350 2021-08-10T09:45:17 20410.205 INF 409945 EntityBackpack id 1053, plyrId 171, (352.2, 59.9, -346.0) (22, -22), chunk True (22, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Write 2021-08-10T09:45:17 20410.205 INF TileEntityLootContainer backpack write 0, 0, 0 2021-08-10T09:45:25 20418.228 INF 410242 EntityBackpack id 1053, plyrId 171, (351.7, 59.2, -345.5) (21, -22), chunk True (21, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Write 2021-08-10T09:45:25 20418.228 INF TileEntityLootContainer backpack write 0, 0, 0 2021-08-10T09:45:29 20421.865 INF 410367 EntityBackpack id 1053, plyrId 171, (351.7, 59.2, -345.5) (21, -22), chunk True (21, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : OnEntityUnload markedForUnload False, IsDead True, IsDespawned False 2021-08-10T09:45:29 20422.104 INF 410375 EntityBackpack id 0, plyrId 171, (0.0, 0.0, 0.0) (0, 0), chunk False (0, 0, 0), items 17 resourceCloth, resourceRockSmall at (0, 0, 0, xz 0 0) : Read 2021-08-10T09:45:29 20422.105 INF 410375 EntityBackpack id 784, plyrId 171, (-22.6, 63.2, 21.6) (-2, 1), chunk True (-2, 3, 1), items 17 resourceCloth, resourceRockSmall at (0, 0, 0, xz 0 0) : Write 2021-08-10T09:45:29 20422.106 INF TileEntityLootContainer backpack write 0, 0, 0 2021-08-10T09:45:29 20422.110 INF 410375 EntityBackpack id 784, plyrId 171, (-22.6, 63.2, 21.6) (-2, 1), chunk True (-2, 3, 1), items 17 resourceCloth, resourceRockSmall at (0, 0, 0, xz 0 0) : Start 2021-08-10T09:45:29 20422.254 INF 0 EntityBackpack id 1053, plyrId 171, (351.7, 59.2, -345.5) (21, -22), chunk True (21, 3, -22), items 1 thrownDynamite at (0, 0, 0, xz 0 0) : Write 2021-08-10T09:45:29 20422.254 INF TileEntityLootContainer backpack write 0, 0, 0 2021-08-10T09:45:30 20423.031 INF Player set to online: 76561198028175941 2021-08-10T09:45:30 20423.032 INF PlayerSpawnedInWorld (reason: Died, position: -81, 61, -10): EntityID=171, PlayerID='76561198028175941', OwnerID='76561198028175941', PlayerName='Catalysm'
So I killed myself ingame with dynamite nut I only got a GMSG for the actual death, and after I respawned the PlayerSpawnerInWorld line
Monday, August 9, 2021
User eca9c0
still doesnt work π¦
User a506fe
no clue what the diff between stat and pref is
User a506fe
sgs PlayerKillingMode 3
User a506fe
maybe both are needed
User a506fe
sgs
