linuxgurugamer Posted March 17 Share Posted March 17 (edited) This script is designed to package up all the files necessary to report a bug to the KSP 2 developers The script consists of three files, an INI file, a PowerShell .ps1 file and a batch file. The INI file contains a description for each parameter, full explanation is further down What it does The script will gather up all files necessary to report a bug. You will be prompted for some information, and the files will be compiled into a zip file and stored in a file. All settings are configurable in the INI file. The result will be in two zip files, one containing the logs and the second containing the save file(s) INI file Documentation Copy the file KSP2_BugPackager.ini-example to KSP2_BugPackager.ini and then edit it using the following documentation of the variables: debug Controls debugging level. 0 means no debugging, 1 displays the values read from the INI file, 2 turns on PowerShell tracing allInOneFile If true, all files will be packaged up into a single file. Otherwise there will be one file for the logs and a second file for the save files zipFilePath This contains the full path to where you want the script to saved the zip file userName Replace with your Windows user name pathToGameDirectory Replace with the path to the directory where KSP 2 is. The followin two lines are examples of two different locations where KSP 2 lives on my system: pathToGameDirectory=C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program 2 pathToGameDirectory=U:\SteamLibrary\steamapps\common\Kerbal Space Program 2 Usage Once the INI file is configured, you can start the script by double-clicking on the KSP2_PowerShell.bat file. The following prompts are displayed: Enter Bug title: Enter the title of the bug. Keep this short, it is used as the name of the zip file. Also, if there is an existing zip file by that name you will be prompted to enter a different one. It is also advisable not use spaces Please enter the bug description. Enter a blank line when you're finished. Select the Severity of the bug Select the Frequency of the bug A list of all the campaigns in the SinglePlayer directory is then displayed. Select the campaign which you are reporting the bug occurred in. Then a list of the save files for that campaign are displayed. Again, select the one which contains the bug. Do you want to include a workspace? (y/N): Yes or no, pressing return (or anything other than a "y") will bypass the workspaces If you did reply with a "y", you will then be presented with a list of workspaces Select the workspace to include. The files will then be packaged up, and the names of the file(s) which contain the bug report will be displayed. When done, press to end the script and close the window Availability License: GPLv3 Download: https://github.com/linuxgurugamer/KSP2_BugPackager/releases Edited May 5 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
Daniel Prates Posted March 19 Share Posted March 19 I was wondering if you would be the first to come up with one of those! Quote Link to comment Share on other sites More sharing options...
Nikolai Posted March 19 Share Posted March 19 Does this only work on Steam installs or something? I tried using it for KSP2 v0.1.1.0 using the portable install; after altering KSP2_BugPackager.ini and double-clicking KSP2_BugPackager.bat, PowerShell opens quickly and then immediately closes (without asking me any questions). Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 20 Author Share Posted March 20 3 hours ago, Nikolai said: Does this only work on Steam installs or something? I tried using it for KSP2 v0.1.1.0 using the portable install; after altering KSP2_BugPackager.ini and double-clicking KSP2_BugPackager.bat, PowerShell opens quickly and then immediately closes (without asking me any questions). Did you configure the INI file as it says in the OP and the README? Quote Link to comment Share on other sites More sharing options...
Nikolai Posted March 20 Share Posted March 20 (edited) 22 hours ago, linuxgurugamer said: Did you configure the INI file as it says in the OP and the README? Yes. Here are the contents of my INI file: [KSP2_BugPackager] debug=0 allInOneFile=true zipFilePath=D:\Games userName=go_4_ pathToGameDirectory=D:\Games\KSP2_win64 # Following are two examples # pathToGameDirectory=C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program 2 # pathToGameDirectory=U:\SteamLibrary\steamapps\common\Kerbal Space Program 2 pathToCampaignDirectories=C:\Users\go_4_\AppData\LocalLow\Intercept Games\Kerbal Space Program 2\Saves\SinglePlayer Edited March 21 by Nikolai Added contents of INI file Quote Link to comment Share on other sites More sharing options...
Space_Moomin Posted March 21 Share Posted March 21 (edited) Hello Nikolai, I think the issue is the .bat file On windows, try replacing it with this line: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\KSP2_BugPackager.ps1'" Edited March 21 by Space_Moomin Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 21 Author Share Posted March 21 45 minutes ago, Space_Moomin said: Hello Nikolai, I think the issue is the .bat file On windows, try replacing it with this line: PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\KSP2_BugPackager.ps1'" @Nikolai Please let me know if that works for you. The bat I supplied worked on my system, but it's quite possible it needs to be updated with this. Quote Link to comment Share on other sites More sharing options...
Nikolai Posted March 21 Share Posted March 21 (edited) 8 hours ago, linuxgurugamer said: @Nikolai Please let me know if that works for you. The bat I supplied worked on my system, but it's quite possible it needs to be updated with this. Changing the contents of the batch file to follow Space_Moomin's suggestions worked like a charm! Thank you both very much! Now, stupid question: Where do I go to report bugs? Edited March 21 by Nikolai Additional question Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 23 Author Share Posted March 23 On 3/21/2023 at 4:44 PM, Nikolai said: Changing the contents of the batch file to follow Space_Moomin's suggestions worked like a charm! Thank you both very much! Now, stupid question: Where do I go to report bugs? Next release will help with that. For now: Submit feedback through the game launcher Private division Customer Support: https://support.privatedivision.com/hc/en-us/requests/new?ticket_form_id=360001675633 Forum page: https://forum.kerbalspaceprogram.com/index.php?/forum/144-ksp2-bug-reports/ Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 23 Author Share Posted March 23 (edited) I have a beta available for the next version: Changes Made app fully GUI based Added ability to include misc files to be added Removed option for allInOneFile Added credits header line to bug description (deleted, see next post) Please test this, and be sure to look at the generated zip file. This is a total rewrite, and while I think I got all the issues fixed, would like to get some additional eyes on it before I make it a full release. I also need to write some documentation, but it should be fairly easy to follow Edited March 24 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 24 Author Share Posted March 24 (edited) New Beta, 0.3.1 Fixed error when adding multiple optional files Added button to clear entered files (deleted) Edited March 27 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted March 27 Author Share Posted March 27 New release 0.3.2 Made app fully GUI based Added ability to include misc files to be added Removed option for allInOneFile Added credits header line to bug description Fixed error when adding multiple optional files Added button to clear entered files Updated prompts for drag/drop Swapped location of the bug reports buttons Added an additional line re. forum files Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted May 2 Author Share Posted May 2 New release, 0.3.3 Fixed the buttons for the reporting pages to only show after the finalize button is clicked Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted May 5 Author Share Posted May 5 New release, 0.4.0 Added more information gathering: DX Diagnostic information System information Added Severity and Frequency Added prompts to indicate info gathering in progress Quote Link to comment Share on other sites More sharing options...
Angelo Kerman Posted May 6 Share Posted May 6 This is a great reporting tool. By chance does it produce a boilerplate text (e.g. system information) for the start of a forum post? That might be helpful for users who post bugs on the forums. Then it would be a matter of opening the boilerplate output and cutting and pasting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.