dev

textPage 36 of 208
50 messages on this page
Tuesday, August 10, 2021
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
but you /just/ tested...which is cool πŸ˜„
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
πŸ˜‚
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
i.....was....almost.....there
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I'll need to listen to this pvp-ish log line and the logline where a player dies to zombies or smth
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Unfortunate there's no log for a generic death though
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Just need to handle both scenarios, one where CPM handles the GMSG and one where the log line appears naturally
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
That'll work!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
2021-08-10T10:06:12 969.089 INF GameMessage handled by mod 'CSMM Patrons': GMSG: Player 'Catalysm' killed by 'Catalysm'

πŸ‘€
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
depends on how i did the harmony path for this
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
makes an ass out of u and me
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
But yknow what they say about assuming
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Imma test that too cause I was assuming that it would dissapear from logs too
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
πŸ˜„
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
need to check
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
hold your horse
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
oooo rly
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
will check that
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
i disable the chat only though
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
But not output to the game chat?>
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Is it a lot of work to let that disable function still output to logs?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
πŸ˜„
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
πŸ˜‚
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
stupid cpm functionality
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
also true
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
but it'll be brittle, in the sense that if someone disables those messages, CSMM wont be able to react to it
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
2 lines possible
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
for sure
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah so I could add a handler when CSMM sees a GMSG for death
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
no other entity involved in death will spit string.Format("GMSG: Player '{0}' died", _mainName);
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
haha
unknown.png

unknown.png

PNG β€’ 42.7 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
still waking up
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
other way around of course
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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)
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
in log (as text will be used in Log.Out(text);)
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
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);
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
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;```
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
vanilla logic:
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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'
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
lol
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
tho*
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
imma check that ho
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
and idk if those bag entity lines will exist when dropondeath is configured
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I'm kinda scared to use the GMSG cause that's something that can be disabled
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I thought there's a logline directly when you died?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for eca9c03b387d8b34a7734a15cfcbf357a8717a0281f3b50a255a3b48877fbb50
User eca9c0
still doesnt work 😦
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
no clue what the diff between stat and pref is
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
sgs PlayerKillingMode 3
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
maybe both are needed
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
sgs