This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#6851 2013-02-12 10:05:37

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

okay, okay, I'm just going to add the input to the clone block, nevermind...  smile


Jens Mönig

Offline

 

#6852 2013-02-12 10:19:17

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Yay!  big_smile

Bad news: I'm having serious issues with perfectly normal custom blocks turning into "Obsolete!":  sad

Code:

<project name="abc" app="Scratch 2.0 + snapin8r, http://scratch.mit.edu" version="1">
   <notes>Generated by snapin8r by Hardmath123.
   Some Scratch 2.0-specific features may be missing, like cloud data.</notes>
   <thumbnail></thumbnail>
   <stage name="Stage" costume="1" tempo="60" pentrails="" threadsafe="false">
      <scripts/>
      <blocks/>
      <variables>
         <variable name="GLOBALVAR" value="7"/>
         <variable name="THIS_IS_A_LIST">
            <list>
               <item>
                  <l>thing</l>
               </item>
               <item>
                  <l>hi</l>
               </item>
               <item>
                  <l>object</l>
               </item>
            </list>
         </variable>
      </variables>
      <costumes>
         <list>
            <item>
               <costume name="backdrop1" center-x="240" center-y="180" image="data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20width%3D%22480%22%20height%3D%22360%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%3E%0A%20%20%3C%21--%20Exported%20by%20Scratch%20-%20http%3A//scratch.mit.edu/%20--%3E%0A%20%20%3Cpath%20id%3D%22ID0.6935151549987495%22%20fill%3D%22%23FFF%22%20scratch-type%3D%22backdrop-fill%22%20d%3D%22M%200%200%20L%20480%200%20L%20480%20360%20L%200%20360%20L%200%200%20L%200%200%20Z%20%22/%3E%0A%3C/svg%3E"/>
            </item>
         </list>
      </costumes>
      <sounds>
         <list>
            <item>
               <sound name="pop" sound="data:audio/wav,RIFF%28%02%00%00WAVEfmt%20%10%00%00%00%01%00%01%00%11%2B%00%00%22V%00%00%02%00%10%00data%04%02%00%00%D5%00%03%03%BD%07r%0D%EF%15S%1D%3C%23%9B%24%E2%20%AB%16s%06U%F1_%DA%60%C4%8D%B3i%A9%92%A8%E5%B1G%C5A%E1%F3%02%ED%26%D1GJa%7Do%23p%0Aa%CED%EA%1D%2A%F3%0F%C9j%A7%FD%91%25%8D%EE%989%B5%E8%DD%E2%0C%9D%3AD%60pv%B5y%A2h%D8Eg%17J%E4l%B5z%92%DE%81k%86q%9F%8E%C8%21%FC%E20%7D%5D%DFy%E4%7F7q%A9M%B6%1C%A9%E7O%B8%8C%96%03%89i%91O%AE%F5%D9%5C%0C%00%3CP_%EFo%17iVN%0A%24q%F2Y%C5g%A3%B6%93x%99%F8%B2h%DA%A3%09%8E6kW%29f%A2_%BCF%F5%1F%C8%F2%03%CA%F5%AD%CE%A2%1F%AB2%C4%F1%EA%C0%14%AB9%28Q%F1V4IN%2B%03%04%2C%DB%BE%BA%EC%A8%0E%A9%D1%BC%8C%DD%BC%06%3C.%80K%14Y%27R%5D9%AC%13%1C%EAq%C5%AD%AD%29%A7%BA%B3%1B%D0%B0%F6%A5%1Ez%3F%C8Q%CAQk%3F%7D%1F%E7%F9%D3%D6%81%BE%1F%B6U%BE%AC%D5%BC%F5%2A%18%823%F5A%84%40%2C/%0C%13W%F2%9F%D5%B3%C3%F5%BFt%CB%9C%E3z%02z%20%896%86%3F%D28%3A%24%C3%06%92%E7%1B%CE%86%BF%08%C0%15%CFQ%E9k%08%7E%25%20%3A%08A%B58%96%23S%06/%E8V%CF%2A%C2%EA%C2Z%D1%05%EAI%07%94%22%D75%D0%3C%EC5J%23Z%09G%EE%1B%D8w%CB%0D%CBf%D6o%EA%B1%02%92%193%2Ax0%AA%2B%3C%1D%F4%08d%F3%BF%E1%B8%D7%F6%D6%AC%DF%10%EF%CD%01%29%13%5C%1F%A8%23H%1F%AB%13%AF%03R%F3p%E6%BA%DF%DB%E03%E9%CC%F6%24%06%DB%13%F2%1CJ%1F%84%1A%C9%0F%7C%01%E4%F25%E7%0D%E1%86%E1z%E8g%F4%A1%02%2C%10_%1A%10%1F%8C%1D%5E%16%3D%0Bt%FE%E7%F2%CA%EA%96%E7%84%E9%E0%EF%F9%F8%D4%02%08%0BJ%10%92%11%D9%0E7%09%19%02y%FB%9D%F6%96%F4%DD%F5%D7%F9%1F%FF%8E%04%97%08%17%0A%8A%08U%04a%FE"/>
            </item>
         </list>
      </sounds>
      <sprites>
         <watcher var="local variable!" style="normal" color="243,118,29" x="261" y="133"/>
         <sprite name="Scratch Cat" costume="1" x="72.1702787891" y="-50.0" heading="0" scale="1">
            <scripts>
               <script x="51" y="48">
                  <block s="receiveKey">
                     <l>up arrow</l>
                  </block>
                  <block s="createClone"/>
               </script>
               <script x="59" y="311">
                  <block s="receiveOnClone"/>
                  <custom-block s="jump %n">
                     <l>100</l>
                  </custom-block>
               </script>
            </scripts>
            <blocks>
               <block-definition s="jump %'height'" category="other" type="command">
                  <inputs>
                     <input type="%n">1</input>
                  </inputs>
                  <script>
                     <block s="forward">
                        <block var="height"/>
                     </block>
                     <block s="doWait">
                        <l>1</l>
                     </block>
                     <block s="forward">
                        <block s="reportProduct">
                           <block var="height"/>
                           <l>-1</l>
                        </block>
                     </block>
                  </script>
               </block-definition>
            </blocks>
            <variables>
               <variable name="local variable!" value="1"/>
            </variables>
            <costumes>
               <list>
                  <item>
                     <costume name="costume1" center-x="47" center-y="55" image="data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22cat%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2295px%22%20height%3D%22111px%22%20viewBox%3D%220%200%2095%20111%22%20enable-background%3D%22new%200%200%2095%20111%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%3E%0A%20%20%3Cg%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_3%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20stroke%3D%22%23000000%22%20d%3D%22M22.462%2C79.039c-2.415-0.451-5.304-1.309-7.742-3.503%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3BC9.268%2C70.629%2C7.526%2C62.535%2C3.672%2C64.622c-3.856%2C2.088-3.782%2C15.165%2C8.353%2C19.194c4.182%2C1.391%2C7.998%2C1.396%2C11.091%2C1.312%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc0.811-0.025%2C7.717-0.654%2C10.079-4.074c2.361-3.42%2C0.719-4.272-0.09-4.744C32.295%2C75.838%2C25.878%2C79.677%2C22.462%2C79.039z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M4.236%2C64.877c-1.989%2C0.613-3.075%2C4.998-2.076%2C8.484c0.998%2C3.49%2C2.634%2C5.022%2C3.863%2C6.398%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc1.528%2C1.038-0.72-2.402%2C1.361-4.15c2.075-1.744%2C5.733-0.914%2C5.733-0.914s-2.909-3.987-4.57-6.396%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3BC6.975%2C65.988%2C6.359%2C64.375%2C4.236%2C64.877z%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20d%3D%22M38.217%2C86.756c0%2C0-8.832%2C6.2-17.071%2C8.412l0.086%2C0.215c1.247%2C1.824%2C5.87%2C7.497-0.334%2C9.496%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-5.333%2C1.717-15.12-13.104-10.821-15.902c2.626-1.713%2C4.892-0.252%2C4.892-0.252s3.474-1.07%2C6.001-2.345%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc4.303-2.161%2C5.784-3.453%2C5.784-3.453s4.184-4.306%2C6.856-4.137C36.281%2C78.96%2C41.669%2C83.504%2C38.217%2C86.756z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M21.232%2C95.383c1.247%2C1.824%2C5.87%2C7.497-0.334%2C9.496%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-5.333%2C1.717-15.329-13.344-11.03-16.145c2.626-1.713%2C5.101-0.01%2C5.101-0.01s3.474-1.072%2C6.001-2.348%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc4.303-2.161%2C5.784-3.453%2C5.784-3.453%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M38.217%2C86.756c0%2C0-10.123%2C7.107-18.804%2C8.819%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M52.169%2C74.885c0%2C0%2C1.235%2C0.165%2C4.744%2C3.676%26%23xD%3B%26%23xA%3B%26%23x9%3Bc3.509%2C3.508%2C6.026%2C2.16%2C8.911%2C0.724c2.877-1.443%2C10.537-6.126%2C6.49-9.817c-4.049-3.688-6.207%2C1.146-9.715%2C2.405%26%23xD%3B%26%23xA%3B%26%23x9%3Bc-3.512%2C1.26-5.061-2.487-6.858-4.287c-0.589-0.593-1.188-1.099-1.729-1.505c0%2C0-0.971-0.76-1.906%2C2.79%26%23xD%3B%26%23xA%3B%26%23x9%3BC51.172%2C72.412%2C50.162%2C73.415%2C52.169%2C74.885z%22/%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_2_1_%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M46.753%2C82.012c1.188-0.912%2C2.397-2.402%2C3.951-4.713%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc1.296-1.927%2C2.7-5.578%2C2.7-5.578c0.875-2.521%2C1.934-6.576-1.902-7.296c-1.553-0.291-4.079-0.098-7.67-0.776%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-3.593-0.681-6.798-2.522-9.517%2C2.233c-2.718%2C4.757-9.59%2C8.271-1.056%2C16.563c0%2C0%2C4.901%2C3.842%2C10.764%2C9.639%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc4.831%2C4.775%2C12.045%2C10.602%2C12.045%2C10.602s18.972%2C2.188%2C19.535-0.693c1.922-9.79-14.777-6.911-14.777-6.911%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bs-4.605-3.933-6.725-5.794c-3.478-3.059-11.125-10.771-11.125-10.771%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M51.253%2C75.434c0%2C0%2C2.47-2.66-2.469-5.317c-4.939-2.657-7.213-0.017-8.739%2C1.521%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-2.644%2C2.655%2C3.443%2C6.611%2C3.443%2C6.611l3.176%2C3.204c0%2C0%2C1.738-1.647%2C2.499-2.979C50.036%2C77.26%2C51.253%2C75.434%2C51.253%2C75.434%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_8%22/%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M29.926%2C73.218c0.749-0.571%2C2.889-2.202%2C4.854-3.657%26%23xD%3B%26%23xA%3B%26%23x9%3Bc2.428-1.799%2C6.117-5.849%2C1.077-7.646c-5.04-1.801-7.507%2C1.604-11.519%2C4.946c-2.159%2C1.801-5.308%2C2.699-4.319%2C6.209%26%23xD%3B%26%23xA%3B%26%23x9%3Bc0.993%2C3.511%2C4.862%2C13.408%2C11.789%2C10.17c6.929-3.239-1.799-9.18-3.06-11.157%22/%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_2%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FAA51D%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M52.709%2C14.156c-1.54-0.143-4.75-0.316-6.518-0.231%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-4.728%2C0.225-9.224%2C1.928-9.224%2C1.928L23.949%2C7.357l2.235%2C18.906c0.646-0.782-10.555%2C12.804-3.479%2C24.224%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc7.08%2C11.426%2C22.233%2C16.518%2C40.988%2C12.792c18.755-3.729%2C23.229-14.531%2C21.986-20.246c-1.242-5.714-8.322-7.823-8.322-7.823%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bs-0.09-4.48-3.328-9.97c-1.926-3.268-8.348-8.041-8.348-8.041L62.822%2C5.647l-7.452%2C7.204L52.709%2C14.156z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M76.42%2C35.066l-2.482-2.064l-9.115%2C2.661c0%2C0%2C0%2C3.419-4.367%2C4.367c-4.37%2C0.951-11.211-2.277-11.211-2.277%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3BL41.46%2C41.17c0%2C0-8.437%2C0.928-8.739%2C6.081C32.048%2C58.704%2C46.1%2C63.479%2C51.425%2C63.783c2.905%2C0.167%2C8.235-0.338%2C12.277-1.141%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc17.752-3.234%2C22.551-13.919%2C21.31-19.635c-1.242-5.714-7.978-7.196-7.978-7.196L76.42%2C35.066z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M10.673%2C46.155c0%2C0%2C4.107%2C0.374%2C5.974%2C0.268%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc1.865-0.107%2C5.492-0.587%2C5.492-0.587%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M81.656%2C40.671c0%2C0%2C4.549-0.743%2C6.859-1.549%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc2.715-0.942%2C4.543-2.545%2C4.543-2.545%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M22.337%2C41.909c0%2C0-2.384-1.777-6.117-3.43%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-4.134-1.831-6.405-2.303-6.405-2.303%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M82.117%2C46.622c0%2C0%2C2.726%2C1.104%2C5.533%2C1.385%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc2.77%2C0.276%2C4.646%2C0.11%2C4.646%2C0.11%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-linecap%3D%22round%22%20stroke-miterlimit%3D%2210%22%20d%3D%22M52.35%2C14.212%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc2.84%2C0.7%2C3.887%2C1.469%2C3.887%2C1.469%22/%3E%0A%20%20%20%20%20%20%3Cline%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20x1%3D%2233.898%22%20y1%3D%2213.684%22%20x2%3D%2239.956%22%20y2%3D%2218.042%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_5%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23231F20%22%20d%3D%22M71.84%2C25.366c2.924%2C4.479%2C3.033%2C9.591%2C0.242%2C11.415%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-2.793%2C1.825-7.426-0.332-10.354-4.813c-2.933-4.48-3.037-9.589-0.244-11.415C64.275%2C18.73%2C68.913%2C20.884%2C71.84%2C25.366z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23231F20%22%20d%3D%22M71.089%2C32.522c0%2C1.08-0.802%2C1.956-1.8%2C1.956c-0.993%2C0-1.803-0.877-1.803-1.956%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc0-1.08%2C0.81-1.958%2C1.803-1.958C70.287%2C30.564%2C71.089%2C31.442%2C71.089%2C32.522%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_7%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23231F20%22%20d%3D%22M47.867%2C28.619c2.926%2C4.48%2C2.619%2C9.862-0.681%2C12.015%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc-3.302%2C2.159-8.351%2C0.272-11.276-4.208c-2.928-4.48-2.624-9.86%2C0.678-12.017C39.891%2C22.253%2C44.938%2C24.137%2C47.867%2C28.619z%22/%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22%23231F20%22%20d%3D%22M46.079%2C34.507c0%2C1.081-0.803%2C1.957-1.801%2C1.957c-0.992%2C0-1.803-0.878-1.803-1.957%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc0-1.08%2C0.811-1.957%2C1.803-1.957C45.274%2C32.55%2C46.079%2C33.427%2C46.079%2C34.507%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%235E4A42%22%20stroke%3D%22%23000000%22%20d%3D%22M59.766%2C37.926c1.854%2C0%2C4.555-0.284%2C4.697%2C0.569c0.143%2C0.855-1.709%2C4.203-2.988%2C4.345%26%23xD%3B%26%23xA%3B%26%23x9%3Bc-1.283%2C0.142-6.125-2.353-6.195-3.919C55.206%2C37.355%2C58.055%2C37.926%2C59.766%2C37.926z%22/%3E%0A%20%20%20%20%3Cg%20id%3D%22Layer_4%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%221.2%22%20d%3D%22M46.774%2C45.235c0%2C0%2C10.347%2C3.054%2C14.217%2C3.897%26%23xD%3B%26%23xA%3B%26%23x9%3B%26%23x9%3Bc3.868%2C0.842%2C10.851%2C1.684%2C10.851%2C1.684s-7.99%2C10.245-17.328%2C7.644C45.176%2C55.863%2C45.345%2C49.975%2C46.774%2C45.235z%22/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E"/>
                  </item>
               </list>
            </costumes>
            <sounds>
               <list>
                  <item>
                     <sound name="pop" sound="data:audio/wav,RIFF%28%02%00%00WAVEfmt%20%10%00%00%00%01%00%01%00%11%2B%00%00%22V%00%00%02%00%10%00data%04%02%00%00%D5%00%03%03%BD%07r%0D%EF%15S%1D%3C%23%9B%24%E2%20%AB%16s%06U%F1_%DA%60%C4%8D%B3i%A9%92%A8%E5%B1G%C5A%E1%F3%02%ED%26%D1GJa%7Do%23p%0Aa%CED%EA%1D%2A%F3%0F%C9j%A7%FD%91%25%8D%EE%989%B5%E8%DD%E2%0C%9D%3AD%60pv%B5y%A2h%D8Eg%17J%E4l%B5z%92%DE%81k%86q%9F%8E%C8%21%FC%E20%7D%5D%DFy%E4%7F7q%A9M%B6%1C%A9%E7O%B8%8C%96%03%89i%91O%AE%F5%D9%5C%0C%00%3CP_%EFo%17iVN%0A%24q%F2Y%C5g%A3%B6%93x%99%F8%B2h%DA%A3%09%8E6kW%29f%A2_%BCF%F5%1F%C8%F2%03%CA%F5%AD%CE%A2%1F%AB2%C4%F1%EA%C0%14%AB9%28Q%F1V4IN%2B%03%04%2C%DB%BE%BA%EC%A8%0E%A9%D1%BC%8C%DD%BC%06%3C.%80K%14Y%27R%5D9%AC%13%1C%EAq%C5%AD%AD%29%A7%BA%B3%1B%D0%B0%F6%A5%1Ez%3F%C8Q%CAQk%3F%7D%1F%E7%F9%D3%D6%81%BE%1F%B6U%BE%AC%D5%BC%F5%2A%18%823%F5A%84%40%2C/%0C%13W%F2%9F%D5%B3%C3%F5%BFt%CB%9C%E3z%02z%20%896%86%3F%D28%3A%24%C3%06%92%E7%1B%CE%86%BF%08%C0%15%CFQ%E9k%08%7E%25%20%3A%08A%B58%96%23S%06/%E8V%CF%2A%C2%EA%C2Z%D1%05%EAI%07%94%22%D75%D0%3C%EC5J%23Z%09G%EE%1B%D8w%CB%0D%CBf%D6o%EA%B1%02%92%193%2Ax0%AA%2B%3C%1D%F4%08d%F3%BF%E1%B8%D7%F6%D6%AC%DF%10%EF%CD%01%29%13%5C%1F%A8%23H%1F%AB%13%AF%03R%F3p%E6%BA%DF%DB%E03%E9%CC%F6%24%06%DB%13%F2%1CJ%1F%84%1A%C9%0F%7C%01%E4%F25%E7%0D%E1%86%E1z%E8g%F4%A1%02%2C%10_%1A%10%1F%8C%1D%5E%16%3D%0Bt%FE%E7%F2%CA%EA%96%E7%84%E9%E0%EF%F9%F8%D4%02%08%0BJ%10%92%11%D9%0E7%09%19%02y%FB%9D%F6%96%F4%DD%F5%D7%F9%1F%FF%8E%04%97%08%17%0A%8A%08U%04a%FE"/>
                  </item>
               </list>
            </sounds>
         </sprite>
      </sprites>
   </stage>
</project>

Last edited by Hardmath123 (2013-02-12 10:30:00)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6853 2013-02-12 10:53:05

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

joefarebrother wrote:

By the way, why won't this [...]
work?

Ah, thanks for the example call.  I read your block and had no idea what it was trying to do.  I'll look this over tonight.

EDIT:  I'm going to need some more documentation of what you're trying to do.  Aside from the confusingness of something called list-or-procedure, in your example I got stuck right here:

http://cs.berkeley.edu/~bh/huh.png

because you're calling a one-input function with no inputs.

Sorry...  Toss me a line.   smile

Well it's supposed to be an unevaluated input. Before I implemented it, the block was originally intended to make a cyclic list with the upvar to refer to a list. It had to be unevaluated because otherwise the list would be evaluated before the upvar is set to a unique value that could be identified and replaced with the list. Then i realized that if a structure involving a procedure was part of the list and refered to the upvar, it would get the unique identifier instead of a cyclic reference. So I decided to set the upvar to the list at the end of the searching and replacing. When I came to implement it, I realized that the block would also create anonymous recursive procedures because it would fail the first <is () a [list v]> test and the upvar gets set to the procedure so it should be recursive. So I called the parameter (list or procedure) to reflect that it should take a list or a procedure.
So the line you mentioned is like that because it needs to be an unevaluated input. When I tested the block by itself, it returned the procedure, as expected, but calling it resulted in an error, like this

http://i.imgur.com/VEAHrg0.jpg

That shows what the block looks like, the result of using it, and the result of calling the procedure it returned.

P.S: It DOES work for cyclic lists.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#6854 2013-02-12 11:25:45

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

blob8108 wrote:

And I was wondering just the other day why Snap!'s float calculations were off...  tongue

Ah, do you have a specific example?  Maybe we can fix it...

I've lost the project, unfortunately! I was trying to do Euler's Method for maths, so I was doing lots of very small float increments, which probably explains it. I'm not convinced it's fixable or worth fixing.  tongue


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#6855 2013-02-12 11:28:29

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Generated by snapin8r by Hardmath123.

I like the name!  big_smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#6856 2013-02-12 11:32:08

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Thanks!  big_smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6857 2013-02-12 13:11:24

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@Hardmath123 - Why are you using encoded URIs instead of base64? These are some tests on the scratch cat SVG in the project above:

Code:

> str.length // raw
  6594
> encodeURIComponent(str).length // encoded URI
  9576
> btoa(str).length // base64
  8792

Last edited by MathWizz (2013-02-12 13:11:39)


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#6858 2013-02-12 15:53:53

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@ Jens
I've re-written in Snap! the Scratch 2.0 Worm project, by replacing Color effects by several costumes. It works fine.
Two issues :
a - I can't save it (Exception 18)
b -after a while the worm stop moving for a while, like waiting, and then restarts.

Offline

 

#6859 2013-02-12 15:54:13

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Bad news: I'm having serious issues with perfectly normal custom blocks turning into "Obsolete!":  sad

scope="Scratch Cat"


nXIII

Offline

 

#6860 2013-02-12 20:18:59

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Ah, thanks a ton nXIII this was driving me crazy!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6861 2013-02-13 18:03:35

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens & bharvey
These 3 new Snap! CLONE instructions look very promising.
It still needs some ironing : export fails, sprites are no more draggable...

Offline

 

#6862 2013-02-13 20:12:00

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@bharvey Here's a nice article bashing CoffeeScript: http://ryanflorence.com/2011/case-against-coffeescript/. It did make me rethink some of the things I was confident of adding into my language.  smile  Also, read the comments,  they're better than the actual article.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6863 2013-02-13 22:15:29

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Also, read the comments,  they're better than the actual article.

Hmm, I guess the comments must be on some part of the page that doesn't make it through Privoxy or NoScript.  hmm

But, yeah, depending on whitespace is a fad.

(Btw, I think that (and five six seven) is more readable than either of the alternatives he discusses!  Prefix rules.)

@jfb:  I haven't forgotten your project, just really busy lately.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#6864 2013-02-13 23:02:28

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

xly wrote:

It still needs some ironing : export fails, sprites are no more draggable...

Hi, xly.  I can't reproduce either of these problems; could you provide more info?  Thanks.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#6865 2013-02-14 04:11:35

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

xly wrote:

It still needs some ironing : export fails, sprites are no more draggable...

Hi, xly.  I can't reproduce either of these problems; could you provide more info?  Thanks.

Two days ago (discovering Scratch 2.0 for the first time ...and new Snap! CLONE instructions) I've succeeded in converting several Scratch 2.0 examples using clones in Snap! I was using Chrome +Win Xp. No problem except for SAVE (Dom except 18)
Yesterday, still using Chrome, nothing worked any more. Chrome/Snap! seemed to be corrupted (freezings)
Today, same pb usingChrome. But I've started using Firefox instead, and then everything  works normally, even SAVE !
I am investigating further on.

Offline

 

#6866 2013-02-14 04:35:49

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hi Xavier,

DOM exception 18 probably means that you've used up all available storage space in Chrome. Choose "Open", then delete some projects (you can export them first so you still have them), then you can save again.

Due to popular request I've added a drop-down menu to the CLONE block which lets you select the sprite you want to clone, or 'myself' (e.g. for clones of clones). You probably need to update your projects and select "myself' in every clone block, otherwise the clone block won't do anything.

Oh, and don't forget to (sing after me): Clear your browser's cache.  smile


Jens Mönig

Offline

 

#6867 2013-02-14 04:39:40

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hi Hardmath123,

I've added the drop-down menu to the clone block. If you convert the "myself" option don't forget to put it into <option> tags. I've also added the OF block which works same as in Scratch.

Oh, and If you're converting Scratch projects you might want to set the "scheduled" attribute in the stage's code to "true" (default is "false" or missing, which means the project runs unscheduled), so the project's animations behave more "Scratch-ly" (at 30 fps).


Jens Mönig

Offline

 

#6868 2013-02-14 04:41:18

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hey, anybody know what happens with this thread and the whole oevre once they're switching to the new site for good? Will everything just be lost, or is there going to be some form of migration?


Jens Mönig

Offline

 

#6869 2013-02-14 05:52:53

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

It's going to be archived, and we start afresh on the 2.0 forums (which, by the way rock courtesy nXIII!). Perfect for a new Snap! topic *hint* *hint*.  wink


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6870 2013-02-14 05:56:10

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I'm getting DOM 18, too, just to export a project that was created with my tool. Does changing the "app" property of the project do anything? I set it to snapin8r+Scratch2.0

I'm not actually including <option> tags in any dropdowns, and it works great.  hmm

These days I'm getting LOADS of errors with inputs (undefined is not an object, etc.). I'll post a list of these. I'm guessing it could be an innocuous typo in my dictionary.

Color inputs finally work right!  big_smile  So do custom blocks. Also, list inputs are being fed variables instead of dropdowns, which was causing errors (about that: should global lists be on the stage, or on the project element?).


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6871 2013-02-14 06:09:02

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Awesome!

You're probably also getting DOM 18 errors when running Snap! locally, because of some schizophrenic cross-origin-canvas-tainting gimmick people put in browsers. You should use <option> tags for "special" strings that will get translated in other languages, like "first", "last", "all", "any", "myself" "mouse-pointer", "edge" etc. Scratch has those, too.


Jens Mönig

Offline

 

#6872 2013-02-14 06:10:56

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

global variables are something else in Snap. They're *really* global, and the stage also has its own local set of variables (which Scratch hasn't). Therefore all of Scratch's pseudo-global variables should be "real" globals in Snap.


Jens Mönig

Offline

 

#6873 2013-02-14 06:18:12

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Ah—that was causing a scope error. Good to know. Also, this <option> business was actually causing one of the errors I mentioned above!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6874 2013-02-14 06:22:22

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

undefined is not an object (evaluating input.setcontents).  hmm


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6875 2013-02-14 06:26:33

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Can you send me the project XML you're creating, then I'll have a look. Is there any way we could be in a more direct e-mail contact? We've got a developers' mailing list set up at Berkeley. Can you maybe ask your parents to send Brian an e-mail?


Jens Mönig

Offline

 

Board footer