Claude
42d9271cec
Fix serveradmin.xml path - go up 2 levels to Saves folder
...
GetSaveGameDir() returns the world folder (Saves/RWG/WorldName),
but serveradmin.xml is in the Saves folder according to the game config:
AdminFileName path is relative to UserDataFolder/Saves.
Added path: Saves/../.. to reach the correct location.
2025-11-24 07:38:01 +00:00
Claude
7d4b95f342
Improve serveradmin.xml error logging - show all attempted paths
2025-11-24 07:22:47 +00:00
Claude
c4b8e4395c
Add local storage for muted players and serveradmin.xml integration
...
**MuteStorage (JSON Persistence)**:
- Added persistent storage in CHRANIBotTNG/Data/muted_players.json
- Auto-loads muted players on mod init
- Auto-saves on mute/unmute operations
- Thread-safe file operations
- Simple JSON serialization without external dependencies
**AdminManager (serveradmin.xml Integration)**:
- Reads serveradmin.xml to load admin SteamIDs (permission_level < 1000)
- Auto-discovers serveradmin.xml location in common paths
- Caches admin list in memory for fast permission checks
- Supports /bot reload command to refresh admin list
**Updated Commands (Admin-only)**:
- /bot mute <player> - Now requires admin permission and persists
- /bot unmute <player> - Now requires admin permission and persists
- /bot mutelist - List all muted players (admin-only)
- /bot reload - Reload serveradmin.xml (admin-only)
**Build System**:
- Added System.Xml.dll and System.Xml.Linq.dll references
All features integrate seamlessly with existing codebase structure.
2025-11-24 07:04:40 +00:00
Claude
c7b93dc0a8
Add mute/unmute functionality for chat
...
- /bot mute {id} - mutes player by EntityID, SteamID, or name
- /bot unmute {id} - unmutes player
- Muted players' messages blocked in-game but visible in telnet
- All /bot commands only visible in telnet
2025-11-23 20:34:29 +00:00
Claude
96d535633a
Clear recipients instead of blocking - allow server logging
2025-11-23 19:54:53 +00:00
Claude
2aca59b25e
Use Console.WriteLine instead of non-existent Log.Out
2025-11-23 19:53:50 +00:00
Claude
1217cc30be
Use Log.Out to write chat message to telnet-visible server log
2025-11-23 19:50:39 +00:00
Claude
4641764819
Simplify patch signature - only use needed parameters
2025-11-23 19:45:10 +00:00
Claude
4a7fc2c3ec
Implement ChatMessageServer patch with correct signature
...
Intercepts /bot messages and logs to console only
2025-11-23 19:39:06 +00:00
Claude
f12fc20b3e
Add introspection to discover Chat methods and fix ModInfo V2 format
2025-11-23 19:27:09 +00:00
aa713a093a
update damit claude mir nicht immer meinen mod-namen ruiniert.
2025-11-23 20:23:53 +01:00
Claude
81781835be
Use Console.WriteLine instead of Log.Out
...
Remove unnecessary empty patch class
2025-11-23 17:49:59 +00:00
Claude
8cdd933d35
Fix build script and API usage
...
- Add all required assembly references (mscorlib, netstandard, System.dll, System.Core.dll)
- Use GameManager.ChatMessageServer instead of NetPackageChat
- Use Log.Out (proper 7DTD API) instead of Debug.Log
2025-11-23 17:44:58 +00:00
Claude
79718c0acd
Fix compilation errors - use correct 7DTD APIs
...
- Use NetPackageChat instead of non-existent ChatCommandManager
- Use Debug.Log instead of Log.Out
- Add UnityEngine namespace
2025-11-23 17:41:37 +00:00
Claude
d344ea0e1c
Add basic bot command mod
...
- Intercepts chat messages starting with /bot
- Logs them to telnet only
- Prevents display in game chat
2025-11-23 17:15:09 +00:00