ITPlay

Member
Game Developer
Aug 1, 2023
111
178
On version 0.10, Eva invited me to the prom and I'm getting an error and can't progress. Screenshot below. It's from a save used on the last update, I did not restart for 0.10.
For now, just go to previous passage and copy-paste this code in the browser console (F12):
Code:
SugarCube.State.variables.iris = {flag:{}};
 
  • Heart
Reactions: cooldevo

B10

Member
Jun 25, 2017
423
192
I started a new game and there is now a bug during covid just after training with mom and choosing better it forces you to go back to school. You haven't been vacinated yet.
 

vertsmile43

New Member
Jan 13, 2024
2
0
When I try to train in the gym at school, after 1 or 2 successful clicks, I'm blocked and I can't click anything...no way to going on and complete the training.
There is a logical bug in the code for the training where if one of the training numbers are the same it doesn't show the 'training' icon.

You can either keep going back every time it fucks up or alternatively if you have the HTML download you can copy the code below to fix and improve the training (Note this adds +10 to the main characters strength instead of 1):

Find the line that contains 'TrainSchoolGym' line 9979, and replace the start tag where it has '<tw-passagedata ...' till you see '</tw-passagedata' on a later line.

This is easier if you have a code editor (VS Code or Notepad++), however you can use notepad and use 'Ctrl-F' and search for 'TrainSchoolGym' or use 'Ctrl-G' and go to line 9979.

Further if you want to change the strength the MC gets in each training session, go to line 10029 and change the number after the text 'set $mc.stat.str += 10' to any number you desire.

Code:
<tw-passagedata pid="228" name="TrainSchoolGym" tags="schoolGym" position="550,1100" size="100,100">&lt;h2&gt;Training.&lt;/h2&gt;\
\&lt;&lt;nobr&gt;&gt;
&lt;&lt;set _tmp to random(1,3)&gt;&gt;
 &lt;&lt;switch _tmp&gt;&gt;
     &lt;&lt;case 1&gt;&gt;
        &lt;video src=&quot;video/activity/training1.mp4&quot; autoplay muted loop class=&quot;vStory&quot;&gt;&lt;/video&gt;
    &lt;&lt;case 2&gt;&gt;
        &lt;video src=&quot;video/activity/training2.mp4&quot; autoplay muted loop class=&quot;vStory&quot;&gt;&lt;/video&gt;
    &lt;&lt;case 3&gt;&gt;
        &lt;video src=&quot;video/activity/training3.mp4&quot; autoplay muted loop class=&quot;vStory&quot;&gt;&lt;/video&gt;
&lt;&lt;/switch&gt;&gt;

&lt;&lt;/nobr&gt;&gt;

&lt;&lt;nobr&gt;&gt;

&lt;span id=&quot;train1&quot;&gt;
&lt;&lt;set _trainSchool to random(0,2)&gt;&gt;
  &lt;&lt;for _i to 0; _i lt 3; _i++&gt;&gt;
    &lt;&lt;if _i is _trainSchool&gt;&gt;
      &lt;&lt;print &quot;&lt;span class=&#39;MGButton&#39;&gt;&lt;&lt;button &#39;&#39;&gt;&gt;&lt;&lt;remove &#39;#train1&#39;&gt;&gt;&lt;&lt;run $(&#39;#train2&#39;).css(&#39;display&#39;, &#39;unset&#39;)&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;&quot;&gt;&gt;
    &lt;&lt;else&gt;&gt;
      &lt;span class=&quot;MGButton&quot;&gt;&lt;&lt;button &#39;❌&#39;&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;
    &lt;&lt;/if&gt;&gt;
  &lt;&lt;/for&gt;&gt;
&lt;/span&gt;

&lt;span id=&quot;train2&quot; style=&quot;display:none&quot;&gt;
&lt;&lt;set _trainSchool to random(0,2)&gt;&gt;
  &lt;&lt;for _i to 0; _i lt 3; _i++&gt;&gt;
    &lt;&lt;if _i is _trainSchool&gt;&gt;
      &lt;&lt;print &quot;&lt;span class=&#39;MGButton&#39;&gt;&lt;&lt;button &#39;&#39;&gt;&gt;&lt;&lt;remove &#39;#train2&#39;&gt;&gt;&lt;&lt;run $(&#39;#train3&#39;).css(&#39;display&#39;, &#39;unset&#39;)&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;&quot;&gt;&gt;
    &lt;&lt;else&gt;&gt;
      &lt;span class=&quot;MGButton&quot;&gt;&lt;&lt;button &#39;❌&#39;&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;
    &lt;&lt;/if&gt;&gt;
  &lt;&lt;/for&gt;&gt;
&lt;/span&gt;

&lt;span id=&quot;train3&quot; style=&quot;display:none&quot;&gt;
&lt;&lt;set _trainSchool to random(0,2)&gt;&gt;
  &lt;&lt;for _i to 0; _i lt 3; _i++&gt;&gt;
    &lt;&lt;if _i is _trainSchool&gt;&gt;
      &lt;&lt;print &quot;&lt;span class=&#39;MGButton&#39;&gt;&lt;&lt;button &#39;&#39;&gt;&gt;&lt;&lt;remove &#39;#train3&#39;&gt;&gt;&lt;&lt;run $(&#39;#train4&#39;).css(&#39;display&#39;, &#39;unset&#39;)&gt;&gt;&lt;&lt;set _done to true&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;&quot;&gt;&gt;
    &lt;&lt;else&gt;&gt;
      &lt;span class=&quot;MGButton&quot;&gt;&lt;&lt;button &#39;❌&#39;&gt;&gt;&lt;&lt;/button&gt;&gt;&lt;/span&gt;
    &lt;&lt;/if&gt;&gt;
  &lt;&lt;/for&gt;&gt;
&lt;/span&gt;

&lt;span id=&quot;train4&quot; style=&quot;display:none&quot;&gt;
  &lt;&lt;link [[Stop training|SchoolGym]]&gt;&gt;&lt;&lt;nextPeriod&gt;&gt;&lt;&lt;set $mc.stat.str += 10&gt;&gt;&lt;&lt;/link&gt;&gt;
&lt;/span&gt;
&lt;&lt;/nobr&gt;&gt;</tw-passagedata>
 
3.00 star(s) 16 Votes