Skip to content

Commit 0f1b340

Browse files
author
arch
committed
add troubleshot section for ofs integration
1 parent 4124777 commit 0f1b340

File tree

7 files changed

+62
-22
lines changed

7 files changed

+62
-22
lines changed

docs/app/docs/user-guide/ofs-integration.md

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,37 @@ Currently we use a hacky lua script to communicate between the Python Funscript
44

55
## Installation (Windows)
66

7-
1. Download the latest packed Python Funscript Editor from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
7+
1. Download the **latest** packed Python Funscript Editor from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
88
2. Extract the Archiv.
9-
3. Copy the `funscript_generator.lua` script ([`Repository/contrib/OpenFunscripter`](https://github.com/michael-mueller-git/Python-Funscript-Editor/tree/main/contrib/OpenFunscripter)) to `data/lua` in your OFS directory.
10-
4. Open the `funscript_generator.lua` file and adjust the `Settings.FunscriptGenerator` and `Settings.TmpFile` variable.
11-
- NOTE: Since release `v0.0.4` you should use `/` instead of `\\` for the path.
12-
- `Settings.FunscriptGenerator`: Point to the extracted Python Funscript Editor program.
9+
3. Download the **latest** `funscript_generator.lua` script from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
10+
4. Move the downloaded `funscript_generator.lua` script to `data/lua` in your OFS directory.
11+
5. Open the `funscript_generator.lua` file and adjust the `Settings.FunscriptGenerator` and `Settings.TmpFile` variable.
12+
- **NOTE:** You have to use use `/` or `\\` for the `\` symbols in your path!
13+
- `Settings.FunscriptGenerator`: Point to the extracted Python Funscript Editor program (better double check the complete path string to avoid errors later on).
1314
- `Settings.TmpFile`: Specifies a temporary file location where to store the result (must be a file not a directory!). The file does not have to exist at the moment. The specified file will be generated from the Python Funscript Editor and will be overwritten automatically at the next time the generator is started!
14-
5. Now launch OFS.
15-
6. Navigate to `View : Special functions : Custom Functions` and select the `funscript_generator.lua` entry. Click the Button `Bind Script` (This may trigger the funscript generator, just ignore it for now).
16-
7. Navigate to `Options : Keys : Dynamic` and insert a shortcut for the funscript generator.
17-
8. Now you can use the shortcut at any position in the video to start the funscript generator.
15+
6. Now launch OFS.
16+
7. Navigate to `View : Special functions : Custom Functions` and select the `funscript_generator.lua` entry. Click the Button `Bind Script` (This may trigger the funscript generator, just ignore it for now).
17+
8. Navigate to `Options : Keys : Dynamic` and insert a shortcut for the funscript generator.
18+
9. Now you can use the shortcut at any position in the video to start the funscript generator.
19+
20+
## Troubleshot
21+
22+
### After setting the min and max value after tracking no points are inserted in OFS
23+
24+
If the points are missing in OFS then most likely the variable `Settings.TmpFile` in the `funscript_generator.lua` script is set incorrectly.
25+
26+
### Noting happens when i press the Shortcut for the Funscript Generator
27+
28+
In most cases, the variable `Settings.FunscriptGenerator` in the `funscript_generator.lua` script was not set correctly.
29+
30+
If you are using an older version of the `funscript_generator.lua` you should download the latest version of the script from the [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases). With older `funscript_generator.lua` scripts there were e.g. problems with blanks in the path.
31+
32+
### When calling the generator, only a message box is displayed with the message: "Video file was not specified!"
33+
34+
In some cases OFS does not set the path to the video file within the lua script correctly (the variable `VideoFilePath` is empty). Mostly it helps to save the current project and/or create a new project. Then the variable should be set by OFS and the generator should work.
35+
36+
### Tracking stops automatically
37+
38+
If a tacker does not find the selected feature in the next frame, the tracing process stops. If more than 120 frames have already been tracked, a window appears to select the minimum and maximum value in which the reason for the abort is displayed with e.g. `Info: Tracker Woman Lost`.
39+
40+
If less than 120 frames have been processed, a message box should pop up with the message `Tracking time insufficient`. In this case, no output is generated because there is not enough data for the algorithm to work with.

docs/app/site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
204204

205205
<!--
206206
MkDocs version : 1.1.2
207-
Build Date UTC : 2021-06-26 15:52:42.322241+00:00
207+
Build Date UTC : 2021-06-27 07:47:45.353935+00:00
208208
-->

docs/app/site/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/app/site/sitemap.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
33
<loc>None</loc>
4-
<lastmod>2021-06-26</lastmod>
4+
<lastmod>2021-06-27</lastmod>
55
<changefreq>daily</changefreq>
66
</url><url>
77
<loc>None</loc>
8-
<lastmod>2021-06-26</lastmod>
8+
<lastmod>2021-06-27</lastmod>
99
<changefreq>daily</changefreq>
1010
</url><url>
1111
<loc>None</loc>
12-
<lastmod>2021-06-26</lastmod>
12+
<lastmod>2021-06-27</lastmod>
1313
<changefreq>daily</changefreq>
1414
</url><url>
1515
<loc>None</loc>
16-
<lastmod>2021-06-26</lastmod>
16+
<lastmod>2021-06-27</lastmod>
1717
<changefreq>daily</changefreq>
1818
</url><url>
1919
<loc>None</loc>
20-
<lastmod>2021-06-26</lastmod>
20+
<lastmod>2021-06-27</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url><url>
2323
<loc>None</loc>
24-
<lastmod>2021-06-26</lastmod>
24+
<lastmod>2021-06-27</lastmod>
2525
<changefreq>daily</changefreq>
2626
</url>
2727
</urlset>

docs/app/site/sitemap.xml.gz

0 Bytes
Binary file not shown.

docs/app/site/user-guide/ofs-integration/index.html

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@
102102
<li class="nav-item" data-level="2"><a href="#installation-windows" class="nav-link">Installation (Windows)</a>
103103
<ul class="nav flex-column">
104104
</ul>
105+
</li>
106+
<li class="nav-item" data-level="2"><a href="#troubleshot" class="nav-link">Troubleshot</a>
107+
<ul class="nav flex-column">
108+
</ul>
105109
</li>
106110
</ul>
107111
</li>
@@ -114,17 +118,30 @@ <h1 id="open-funscripter-integration">Open Funscripter Integration</h1>
114118
<p>Currently we use a hacky lua script to communicate between the Python Funscript Generator and the Open Funscripter.</p>
115119
<h2 id="installation-windows">Installation (Windows)</h2>
116120
<ol>
117-
<li>Download the latest packed Python Funscript Editor from <a href="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
118-
<li>Extract the Archiv to an Path without special character or spaces.</li>
119-
<li>Copy the <code>funscript_generator.lua</code> script (<a href="https://github.com/michael-mueller-git/Python-Funscript-Editor/tree/main/contrib/OpenFunscripter"><code>Repository/contrib/OpenFunscripter</code></a>) to <code>data/lua</code> in your OFS directory.</li>
121+
<li>Download the <strong>latest</strong> packed Python Funscript Editor from <a href="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
122+
<li>Extract the Archiv.</li>
123+
<li>Download the <strong>latest</strong> <code>funscript_generator.lua</code> script from <a href="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
124+
<li>Move the downloaded <code>funscript_generator.lua</code> script to <code>data/lua</code> in your OFS directory.</li>
120125
<li>Open the <code>funscript_generator.lua</code> file and adjust the <code>Settings.FunscriptGenerator</code> and <code>Settings.TmpFile</code> variable.</li>
121-
<li><code>Settings.FunscriptGenerator</code>: Point to the extracted Python Funscript Editor program.</li>
126+
<li><strong>NOTE:</strong> You have to use use <code>/</code> or <code>\\</code> for the <code>\</code> symbols in your path!</li>
127+
<li><code>Settings.FunscriptGenerator</code>: Point to the extracted Python Funscript Editor program (better double check the complete path string to avoid errors later on).</li>
122128
<li><code>Settings.TmpFile</code>: Specifies a temporary file location where to store the result (must be a file not a directory!). The file does not have to exist at the moment. The specified file will be generated from the Python Funscript Editor and will be overwritten automatically at the next time the generator is started!</li>
123129
<li>Now launch OFS.</li>
124130
<li>Navigate to <code>View : Special functions : Custom Functions</code> and select the <code>funscript_generator.lua</code> entry. Click the Button <code>Bind Script</code> (This may trigger the funscript generator, just ignore it for now).</li>
125131
<li>Navigate to <code>Options : Keys : Dynamic</code> and insert a shortcut for the funscript generator.</li>
126132
<li>Now you can use the shortcut at any position in the video to start the funscript generator.</li>
127-
</ol></div>
133+
</ol>
134+
<h2 id="troubleshot">Troubleshot</h2>
135+
<h3 id="after-setting-the-min-and-max-value-after-tracking-no-points-are-inserted-in-ofs">After setting the min and max value after tracking no points are inserted in OFS</h3>
136+
<p>If the points are missing in OFS then most likely the variable <code>Settings.TmpFile</code> in the <code>funscript_generator.lua</code> script is set incorrectly.</p>
137+
<h3 id="noting-happens-when-i-press-the-shortcut-for-the-funscript-generator">Noting happens when i press the Shortcut for the Funscript Generator</h3>
138+
<p>In most cases, the variable <code>Settings.FunscriptGenerator</code> in the <code>funscript_generator.lua</code> script was not set correctly.</p>
139+
<p>If you are using an older version of the <code>funscript_generator.lua</code> you should download the latest version of the script from the <a href="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>. With older <code>funscript_generator.lua</code> scripts there were e.g. problems with blanks in the path.</p>
140+
<h3 id="when-calling-the-generator-only-a-message-box-is-displayed-with-the-message-video-file-was-not-specified">When calling the generator, only a message box is displayed with the message: "Video file was not specified!"</h3>
141+
<p>In some cases OFS does not set the path to the video file within the lua script correctly (the variable <code>VideoFilePath</code> is empty). Mostly it helps to save the current project and/or create a new project. Then the variable should be set by OFS and the generator should work.</p>
142+
<h3 id="tracking-stops-automatically">Tracking stops automatically</h3>
143+
<p>If a tacker does not find the selected feature in the next frame, the tracing process stops. If more than 120 frames have already been tracked, a window appears to select the minimum and maximum value in which the reason for the abort is displayed with e.g. <code>Info: Tracker Woman Lost</code>.</p>
144+
<p>If less than 120 frames have been processed, a message box should pop up with the message <code>Tracking time insufficient</code>. In this case, no output is generated because there is not enough data for the algorithm to work with.</p></div>
128145
</div>
129146
</div>
130147

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)