Releases: BanRevenant/D-Wire
Release list
v0.5.1: Update stats_commands.py
Bug Fix
- Fixed an issue with the !statsme command where stats weren't being posted to the correct Discord channel when the command was used in-game. There were two main problems:
The code was looking for the wrong configuration key - it was searching for 'discord.factorio_general_id' when the actual key in the config was 'discord.factorio_general_channel_id'
This incorrect key needed to be fixed in two places within the post_player_stats method in stats_commands.py - both where it handles error messages and where it posts the actual stats
Some bug fixes
Bug Fixes
-
Fixed bug and location with mod_urls.json (Previously the file was stored in the game folder, it has been moved to the bot folder , you can delete the mods_url.json file that you will find in your mods folder of the game server if you have ran the /sync_mods command and remapped a mod URL to a different mod.)
-
Fixed variable naming inconsistency in mod_tracker.py where it used store_path but tried to read from self.urls_file (mods marked as author mismatch were asking for URLs repeatedly because the system wasn't checking the stored URLs before doing author verification)
-
Added added visual feedback in the sync report to show when a mod is using a remapped URL via "[URL REMAPPED]" text
-
Log Position issue readlog.py If there is a crash or power failure logs would be fully parsed, Modified when and how the last_position is saved to disk, Added flush() and fsync() to ensure immediate disk writes, Only updates position after successful line processing.
-
Fixed file path issue in status.py , NoneType error by constructing server.log path from install_location ( also changed to factorio-current.log )
-
Fixed file path issue in downloadsaves.py , Fixed saves directory path construction both in main cog and view class)
v0.4: Update logger.py
Fixes and New Implementation
- Added pretty colors to the logger to help catch issues, errors, warnings ( and cause blue is cool )
- Fixed random issue with stats logger not loading quickly enough because of random cog loading order
- Added server version detection and output the information to the update status command
- Different variants and different hosts have issue with the binding, updated to prevent server starting and no connection possible
- Factorio install location would randomly go to /factorio/factorio (Like the 10th time fixing this shit)
- Detection and Invalid registration fix
D-Wire Base Development
Features Fully Implemented
- Server Control: Start and stop the Factorio server with ease, including customizable parameters.
- Save File Management: Upload, download, and delete save files directly from Discord.
- Mod Management: Download, enable, disable, and remove mods as needed.
- Server Logs & Configuration: Access server logs and adjust configurations without manual file edits.
- Status Monitoring: The bot's status dynamically reflects server status—DND when running, Idle when offline.
- Player Statistics Tracking: Track user stats, including biter kills.
- Integrated Chat: Send and receive messages between Discord and the Factorio server.
- User Registration System: Bind Discord accounts to Factorio accounts for better user management.
- Server Status Command: Quickly view key server information.
- Country Tracking: Optionally track the country of players joining the server.
- Custom Cog Management: Create, enable, disable, upload, or remove cogs for easy feature management.
- Save Game Augmentation: Automatically augment new save-game files with softmod code to enhance utility.
- Player Management: Ban, kick, or mute players effortlessly.
- Spawn Point Configuration: Modify player spawn locations on the map.
- Cheat Controls: Enable or disable cheats with automatic researching options.
- Feature Self-Management: Enable or disable local features as needed.
- Map Recharting: Rechart the game map while the server is live.
- System Commands: Query server status, PIDs, and base versions.
- Log Upload: Upload server log files directly to Discord for easier monitoring.
- Automatic Server Updating: Automatically checks the server for updates once an hour.
- Automatic Softmod Augmentation: Automatically apply softmods to enhance gameplay.
- Easy Bot Deployment: Simplified deployment for streamlined setup.
- Add-On Reporting & Updates: Report and automatically update game add-ons and even mod mismatch detection.
Alpha Release v0.2
- Added Stats, Database Management, Auto Deployment with required dependencies, Cog Management system
- Adjusted Debug logging.
- Removed hard coded test line from Registration system to prepare for user mapping.
Alpha Release v0.1
First release of a functional discord bot.