(initial version of page for this utility script) |
m (br tags) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page describes two different "dv-annotate" tools: one GUI-based utility for Windows, and one package of simple bash scripts for Linux/SteamOS/OSX. These are for keeping notes on when problems happen (annotations) and creating a zip or tgz archive of the game data directory to aid in debugging. | |||
This is a human-readable script for Windows Powershell 5.1 (the powershell.exe that ships with Windows 10). | =dV-Annotate Windows Utility= | ||
[[Image:DV_Annotate-image.png|300px|thumb|right]]This is a human-readable script for Windows Powershell 5.1 (the powershell.exe that ships with Windows 10). | |||
It is a GUI utility to help people using Windows archive game logs, saved games, screenshots, and also timestamps of events for bug reports. I wrote it in powershell but no knowledge of powershell or command lines is needed to run it. | It is a GUI utility to help people using Windows archive game logs, saved games, screenshots, and also timestamps of events for bug reports. I wrote it in powershell but no knowledge of powershell or command lines is needed to run it. | ||
Line 11: | Line 13: | ||
This is just a plain text .ps1 (powershell) script, but it creates a GUI so you don't need to run it from the command line. Just download the .ps1 file and save it wherever it's convenient. | This is just a plain text .ps1 (powershell) script, but it creates a GUI so you don't need to run it from the command line. Just download the .ps1 file and save it wherever it's convenient. | ||
If you double click on the script it won't execute, but instead should get opened in a text editor. (I encourage everyone to review it because it's a good idea to look for anything suspicious in scripts before running them.) | If you double click on the script it won't execute, but instead should get opened in a text editor. (I encourage everyone to [https://gist.github.com/NimrodXMods/e642e10d50953ef7f8abce7e308c0633 review it] because it's a good idea to look for anything suspicious in scripts before running them.) | ||
To actually run it, just right-click on dv-annotate.ps1 in Windows Explorer and select "Run with PowerShell". | |||
The first time it is run it will create a settings file in <code>%AppData%\dV-annotate\</code>. It will then offer to move itself to that directory and create a shortcut in its current location that will allow it to be run in a normal manner without opening a terminal window. This shortcut can be moved anywhere you want and it will still work. | |||
==Configuration== | |||
If you need to change any paths or settings, see the '''Archive''' tab. | |||
And if you want to modify the script yourself, all the important functions are at the top of the file will all the ugly tool-generated GUI stuff being toward the bottom. It's just a normal plain text file PowerShell script, so it can be read and edited with any text editor. | |||
==Usage== | |||
The easiest way to use this is to run it and minimize it before launching the game. During the game, just bring the window to the front by using <code>Alt+Tab</code>, type in a comment, hit Enter, then <code>Alt+Tab</code> again to make it go away and go back to playing. Having the "Auto-pause in background" option enabled in dV's settings will be useful. | |||
As long as you have the Annotate tab selected, the input focus will switch to the textbox and so you can just <code>Alt+Tab</code>, Type a comment, hit enter, and <code>Alt+Tab</code> again to go back to playing. | |||
===Including Screenshots (optional)=== | |||
If using Steam then you can use <code>F12</code> to take screenshots of anything interesting. (This requires having the Steam Overlay enabled.) The script by default try to find the Steam screenshots folder for Delta V, and will include screenshots that were taken since the annotation log was reset. Therefore you don't need to delete screenshots to keep them out of the archive. | |||
You can also set your own screenshots folder man ually. This folder will also get used to include any jpg or png files newer than the last annotation log reset. | |||
===When to Archive=== | |||
The recommended time to create the .zip archive is '''after returning to Enceladus''' (which saves the game) but '''before exiting the game'''. This helps to ensure that the Godot engine log doesn't get blown away and that anything interesting is saved in the game save. | |||
The script '''can archive the game directory while the game is running''' without any problems. | |||
==Windows Download== | |||
Download the script from GitHub Gist here: [https://gist.github.com/NimrodXMods/e642e10d50953ef7f8abce7e308c0633 dv-annotate.ps1]<br /> | |||
Use the "Raw" or "Download Zip" buttons in the upper right to download. | |||
=dv-annotate bash Scripts (Linux/SteamOS/OSX)= | |||
The gist linked to below contains bash scripts I hacked together help with bug reports. I threw these together quickly just for myself, so they’re pretty minimal. But I fixed them up some in case anyone else wants to use them. They're roughly the equivalent of the windows utility above. | |||
I use these on SteamOS but they should work on any Linux and probably OSX if the pathnames are set properly. | |||
===dv-archive.include.sh=== | |||
Edit this to set pathnames and such for screenshots. Not much needs changing here, but OSX will need more changes. | |||
===dv-annotate=== | |||
Run this to save a comment plus the timestamp of when you started the script and the file name of the most recent screenshot in the screenshots dir. | |||
===dv-archive=== | |||
Run this to archive the dV game directory along with the annotations and screenshots taken since the first annotation. | |||
===dv-show-annotations=== | |||
Run this to review current annotations or the ones in the most recent archive. | |||
==Unix Download== | |||
The | The scripts can be downloaded from this GitHub Gist: [https://gist.github.com/NimrodXMods/1c0cbd519cc357d4e23d8611be41bc5f dv-annotate.sh]<br /> | ||
(Use the "Download ZIP" button in the upper right). |
Latest revision as of 21:48, 25 November 2024
This page describes two different "dv-annotate" tools: one GUI-based utility for Windows, and one package of simple bash scripts for Linux/SteamOS/OSX. These are for keeping notes on when problems happen (annotations) and creating a zip or tgz archive of the game data directory to aid in debugging.
dV-Annotate Windows Utility
This is a human-readable script for Windows Powershell 5.1 (the powershell.exe that ships with Windows 10).
It is a GUI utility to help people using Windows archive game logs, saved games, screenshots, and also timestamps of events for bug reports. I wrote it in powershell but no knowledge of powershell or command lines is needed to run it.
The reason for a script like this is that it can be rather difficult to keep track of when different things happen during gameplay that might be relevant for debugging, and the more timestamps and descriptive info the developer can get, the less time they have to spend looking for stuff. So this can save a lot of developer time and also make it more possible to discover more issues, etc.
Installation/Setup
This is just a plain text .ps1 (powershell) script, but it creates a GUI so you don't need to run it from the command line. Just download the .ps1 file and save it wherever it's convenient.
If you double click on the script it won't execute, but instead should get opened in a text editor. (I encourage everyone to review it because it's a good idea to look for anything suspicious in scripts before running them.)
To actually run it, just right-click on dv-annotate.ps1 in Windows Explorer and select "Run with PowerShell".
The first time it is run it will create a settings file in %AppData%\dV-annotate\
. It will then offer to move itself to that directory and create a shortcut in its current location that will allow it to be run in a normal manner without opening a terminal window. This shortcut can be moved anywhere you want and it will still work.
Configuration
If you need to change any paths or settings, see the Archive tab.
And if you want to modify the script yourself, all the important functions are at the top of the file will all the ugly tool-generated GUI stuff being toward the bottom. It's just a normal plain text file PowerShell script, so it can be read and edited with any text editor.
Usage
The easiest way to use this is to run it and minimize it before launching the game. During the game, just bring the window to the front by using Alt+Tab
, type in a comment, hit Enter, then Alt+Tab
again to make it go away and go back to playing. Having the "Auto-pause in background" option enabled in dV's settings will be useful.
As long as you have the Annotate tab selected, the input focus will switch to the textbox and so you can just Alt+Tab
, Type a comment, hit enter, and Alt+Tab
again to go back to playing.
Including Screenshots (optional)
If using Steam then you can use F12
to take screenshots of anything interesting. (This requires having the Steam Overlay enabled.) The script by default try to find the Steam screenshots folder for Delta V, and will include screenshots that were taken since the annotation log was reset. Therefore you don't need to delete screenshots to keep them out of the archive.
You can also set your own screenshots folder man ually. This folder will also get used to include any jpg or png files newer than the last annotation log reset.
When to Archive
The recommended time to create the .zip archive is after returning to Enceladus (which saves the game) but before exiting the game. This helps to ensure that the Godot engine log doesn't get blown away and that anything interesting is saved in the game save.
The script can archive the game directory while the game is running without any problems.
Windows Download
Download the script from GitHub Gist here: dv-annotate.ps1
Use the "Raw" or "Download Zip" buttons in the upper right to download.
dv-annotate bash Scripts (Linux/SteamOS/OSX)
The gist linked to below contains bash scripts I hacked together help with bug reports. I threw these together quickly just for myself, so they’re pretty minimal. But I fixed them up some in case anyone else wants to use them. They're roughly the equivalent of the windows utility above.
I use these on SteamOS but they should work on any Linux and probably OSX if the pathnames are set properly.
dv-archive.include.sh
Edit this to set pathnames and such for screenshots. Not much needs changing here, but OSX will need more changes.
dv-annotate
Run this to save a comment plus the timestamp of when you started the script and the file name of the most recent screenshot in the screenshots dir.
dv-archive
Run this to archive the dV game directory along with the annotations and screenshots taken since the first annotation.
dv-show-annotations
Run this to review current annotations or the ones in the most recent archive.
Unix Download
The scripts can be downloaded from this GitHub Gist: dv-annotate.sh
(Use the "Download ZIP" button in the upper right).