You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program compares split images to a capture region of any window (OBS, xsplit, etc.) and automatically hits your split hotkey when there is a match. It can be used in tandem with any speedrun timer that accepts hotkeys (LiveSplit, wsplit, etc.). The purpose of this program is to remove the need to manually press your split hotkey and also increase the accuracy of your splits.
4
4
@@ -14,14 +14,14 @@ This program compares split images to a capture region of any window (OBS, xspli
14
14
15
15
### Opening the program
16
16
17
-
- Download the [latest version](/Toufool/Auto-Split/releases)
17
+
- Download the [latest version](/../../releases)
18
18
- Extract the file and open AutoSplit.exe.
19
19
20
20
### Building
21
21
22
22
(This is not required for normal use)
23
23
24
-
- Microsoft Visual C++ 14.0 or greater may be required. Get it with [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
24
+
- Microsoft Visual C++ 14.0 or greater may be required. Get it with [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
25
25
- Read [requirements.txt](/scripts/requirements.txt) for information on how to run/build the python code
26
26
- Run `.\scripts\install.bat` to install all dependencies
27
27
- Run the app directly with `py .\src\AutoSplit.py`
@@ -34,7 +34,7 @@ This program compares split images to a capture region of any window (OBS, xspli
- Custom split image settings are handled in the filename. See how [here](https://github.com/Toufool/Auto-Split#custom-split-image-settings).
37
+
- Custom split image settings are handled in the filename. See how [here](#custom-split-image-settings).
38
38
- Images can be created using Print Screen, [Snipping Tool](https://support.microsoft.com/en-us/help/4027213/windows-10-open-snipping-tool-and-take-a-screenshot), or AutoSplit's Take Screenshot button.
39
39
40
40
## Capture Region
@@ -86,8 +86,8 @@ This program compares split images to a capture region of any window (OBS, xspli
86
86
87
87
- Each split image can have different thresholds, pause times, delay split times, loop amounts, and can be flagged.
88
88
- These settings are handled in the image's filename.
89
-
- Custom thresholds are place between parenthesis `()` in the filename and the custom thresholds checkbox must be checked. All images must have a custom threshold if the box is checked.
90
-
- Custom pause times are placed between square brackets `[]` in the filename and the custom pause times checkbox must be checked. All images must have a custom threshold if the box is checked.
89
+
- Custom thresholds are place between parenthesis `()` in the filename. This value will override the default threshold.
90
+
- Custom pause times are placed between square brackets `[]` in the filename. This value will override the default pause time.
91
91
- Custom delay times are placed between hash signs `##` in the filename. Note that these are in milliseconds. For example, a 10 second split delay would be `#10000#`. You cannot skip or undo splits during split delays.
92
92
- Image loop amounts are placed between at symbols `@@` in the filename. For example, a specific image that you want to split 5 times in a row would be `@5@`. The current loop # is conveniently located beneath the current split image.
93
93
- Flags are placed between curly brackets `{}` in the filename. Multiple flags are placed in the same set of curly brackets. Current available flags:
@@ -103,13 +103,19 @@ This program compares split images to a capture region of any window (OBS, xspli
103
103
104
104
### How to Create a Masked Image
105
105
106
+
Masked images are very useful if only a certain part of the capture region is consistent (for example, consistent text on the screen, but the background is always different). Histogram or L2 norm comparison is recommended if you use any masked images. It is highly recommended that you do NOT use pHash comparison if you use any masked images, as it is very inaccurate.
107
+
106
108
The best way to create a masked image is to set your capture region as the entire game screen, take a screenshot, and use a program like [paint.net](https://www.getpaint.net/) to "erase" (make transparent) everything you don't want the program to compare. More on how to creating images with transparency using paint.net can be found in [this tutorial](https://www.youtube.com/watch?v=v53kkUYFVn8). For visualization, here is what the capture region compared to a masked split image looks like if you would want to split on "Shine Get!" text in Super Mario Sunshine:
107
109
108
110

109
111
110
112
### Reset image
111
113
112
-
You can have one (and only one) image with the keyword `reset` in its name. AutoSplit will press the reset button when it finds this image. This image will only be used for resets and it will not be tied to any split. You can set a probability and pause time for it. A custom threshold MUST be applied to this image. The pause time is the amount of seconds AutoSplit will wait before checking for the reset image once the run starts. Also the image can be masked, for example: `Reset_(0.95)_[10].png`.
114
+
You can have one (and only one) image with the keyword `reset` in its name. AutoSplit will press the reset button when it finds this image. This image will only be used for resets and it will not be tied to any split. You can set a probability and pause time for it. The pause time is the amount of seconds AutoSplit will wait before checking for the reset image once the run starts. For example: `Reset_(0.95)_[10].png`.
115
+
116
+
### Start image
117
+
118
+
The start image is similar to the reset image. You can only have one start image with the keyword `start_auto_splitter`.You can reload the image using the "`Reload Start Image`" button. The pause time is the amount of seconds AutoSplit will wait before checking for the start image once a run ends/is reset.
113
119
114
120
### Timer Global Hotkeys
115
121
@@ -154,22 +160,27 @@ If this option is disabled, when the reset hotkey is hit, the reset button is pr
154
160
- The settings in the settings file include split image directory, capture region, capture region dimensions, fps limit, threshold and pause time settings, all hotkeys, "Group dummy splits when undoing/skipping" check box, "Loop Split Images" check box, and "Auto Start On Reset" check box.
155
161
- If you are upgrading to Windows 11, it's possible that save files may not transfer perfectly. You may need to readjust or reselect your Capture Region, for example.
156
162
163
+
## LiveSplit integration
164
+
165
+
There is a LiveSplit Component available that will directly connect AutoSplit with LiveSplit. You can get it [here](/KaDiWa4/LiveSplit.AutoSplitIntegration).
166
+
157
167
## Known Limitations
158
168
159
169
- For many games, it will be difficult to find a split image for the last split of the run.
160
170
- The window of the capture region cannot be minimized.
161
171
162
172
## Resources
163
173
164
-
- Still need help? [Open an issue](https://github.com/Toufool/Auto-Split/issues)
174
+
- Still need help? [Open an issue](../../issues)
165
175
- Join the [AutoSplit Discord](https://discord.gg/Qcbxv9y)
166
176
167
177
## Credits
168
178
169
-
-<https://github.com/harupy/> for the snipping tool code that I used to integrate into the autosplitter.
179
+
-[Harutaka Kawamura](https://github.com/harupy/) for the snipping tool code that I used to integrate into the autosplitter.
170
180
-[amaringos](https://twitter.com/amaringos) for the icon.
171
181
-[ZanasoBayncuh](https://twitter.com/ZanasoBayncuh) for motivating me to start this project back up and for all of the time spent testing and suggesting improvements.
172
182
-[Avasam](https://twitter.com/Avasam06) for their continued work on making an incredible amount of improvements and changes to AutoSplit while I have not had the time/motivation to do so.
183
+
-[KaDiWa](https://github.com/KaDiWa4) for the LiveSplit integration.
173
184
- Created by [Toufool](https://twitter.com/Toufool) and [Faschz](https://twitter.com/faschz).
# if its the last split image and last loop number, disable the skip split button
727
721
if (self.split_image_number==self.number_of_split_images-1andself.loop_number==self.split_image_loop_amount[self.split_image_number]) or (self.groupDummySplitsCheckBox.isChecked() ==Trueandself.dummy_splits_array[self.split_image_number:].count(False) <=1):
# if its the last split image and last loop number, disable the skip split button
842
827
if (self.split_image_number==self.number_of_split_images-1andself.loop_number==self.split_image_loop_amount[self.split_image_number]) or (self.groupDummySplitsCheckBox.isChecked() ==Trueandself.dummy_splits_array[self.split_image_number:].count(False) <=1):
0 commit comments