View Issue Details

IDProjectCategoryLast Update
0018584Starward RogueBug - OtherJan 29, 2016 10:14 pm
Reporterptarth Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version1.008 
Summary0018584: XML Loop Reader duplicates first line in special bullet patterns
DescriptionI've been noticing oddities in the loop function used in making special bullet patterns. Most likely it seems that the the first line is most likely occurring twice.
Code that demonstrates:

Code: [Select]
    <var name="SnakeLoopShot">
  <bullet angle="0" speed="100" shot_type="SpikeGreen" relative="false" interval_mult="1">
    <loop iterations="-1">
     <change self_scale="1"/>
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
    </loop>
  </bullet>
  </var>
  
      <var name="SnakeNoBuffLoopShot">
  <bullet angle="0" speed="100" shot_type="SpikeRed" relative="false" interval_mult="1">
    <loop iterations="-1">
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
    </loop>
  </bullet>
  </var>
  
  
      <var name="SnakeNoLoopShot">
  <bullet angle="0" speed="100" shot_type="SpikeYellow" relative="false" interval_mult="1">
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
     <change angle="45" speed="100" relative="false" time=".5"/>
     <change angle="-45" speed="100" relative="false" time=".5"/>
  </bullet>
  </var>
 

These are 3 patterns that should produce identical behaviors for the first 8 turns. After that the Yellow no loop shot should depart on its way. Attached is a screenshot demonstrating what does occur. On the first loop, the Red shot exits, then every loop cycle after that you can see it increase in distance. Note that the Green shot stays in proper position.

A quick and ugly solution is to add a change size line as the first line in your loop.
TagsNo tags attached.

Activities

ptarth

Jan 28, 2016 3:47 pm

developer  

keith.lamothe

Jan 29, 2016 10:13 pm

administrator  

keith.lamothe

Jan 29, 2016 10:14 pm

administrator   ~0044924

Yea, it's the loop bug, can be handled like so:

  <var name="TestGreen">
    <bullet angle="0" speed="100" shot_type="SpikeGreen" relative="false" interval_mult="1">
      <loop iterations="-1" take_pants_off_head="true">
        <change self_scale="1"/>
        <change angle="45" speed="100" relative="false" time=".5"/>
        <change angle="-45" speed="100" relative="false" time=".5"/>
      </loop>
    </bullet>
  </var>

  <var name="TestRed">
    <bullet angle="0" speed="100" shot_type="SpikeRed" relative="false" interval_mult="1">
      <loop iterations="-1" take_pants_off_head="true">
        <change angle="-45" speed="100" relative="false" time=".5"/>
        <change angle="45" speed="100" relative="false" time=".5"/>
      </loop>
    </bullet>
  </var>

  (and then in the pattern file)
  <bullet_pattern name="SnakeShot2">
    $TestGreen
    $TestRed
  </bullet_pattern>
  
Produces exactly identical streams, except for the angle inversion I deliberately added for visual purposes. See attached screenshot.

Issue History

Date Modified Username Field Change
Jan 28, 2016 3:47 pm ptarth New Issue
Jan 28, 2016 3:47 pm ptarth File Added: Screenshot_2016_01_28_7_36_42.png
Jan 29, 2016 10:13 pm keith.lamothe File Added: Screenshot_2016_01_29_17_10_06.png
Jan 29, 2016 10:14 pm keith.lamothe Note Added: 0044924
Jan 29, 2016 10:14 pm keith.lamothe Status new => resolved
Jan 29, 2016 10:14 pm keith.lamothe Resolution open => fixed
Jan 29, 2016 10:14 pm keith.lamothe Assigned To => keith.lamothe