#18 Designer scoreline count errors

closed-fixed
Simcon
designer (7)
5
2010-01-06
2010-01-06
Simcon
No

Try this :-

* Delete ~/.gnurobbo/levels/myslevels.dat or temporarily back it up so we can get the same results.
* Play the 001-Mylevels level and use the designer.
* The level already includes one screw, so simply add 1 key and 1 ammo clip (bullets), double-click Save and close the designer.
* Open the level again with the designer.
* The scoreline says 1 screw, 1 key, 9 bullets (1 ammo clip) which is correct. Now double-click Eraser to clear the level. The scoreline still says the same things so it hasn't been updated yet (it should have been refreshed).
* Now using the mouse scroll down one or more rows. The scoreline has now been refreshed but there are still 9 bullets.
* Now select the Bullets object - the text says "(0x9 on map) although the scoreline says 9 bullets.
* Place 1 Bullets object on the map. The text now says "(1x9 on map)" and the scoreline now says 18 bullets.

The same things happen when creating a new level too.

Discussion

  • Simcon

    Simcon - 2010-01-06

    There's a related bug so I'll post it here :-

    * Open the 001-Designer level.
    * Select the Screw object but don't edit the map. It says "(17 on map)" just like the scoreline.
    * Now select the Resize icon so that the map has been resized to 16x31.
    * Select the Screw object again. The text area says "(10 on map)".

    In this example, scrolling down to force the scoreline to refresh makes no difference, so I imagine that the problem could be originating from k_count_obj().

     
  • Simcon

    Simcon - 2010-01-06

    I've fixed the initial bugs. robbo.bullets=0 and scoreline.redraw=0xff were missing from erase level and new level.

    Now it's obvious what the problem is with the scoreline and the text area screw counts going out of sync: robbo.screws/keys/bullets need to be adjusted when toggling between map sizes.

    I'm going to fix this now.

     
  • Simcon

    Simcon - 2010-01-06
    • assigned_to: nobody --> simcon
     
  • Simcon

    Simcon - 2010-01-06

    Fixed. robbo.screws/keys/bullets weren't being reread when changing the map size.

     
  • Simcon

    Simcon - 2010-01-06
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks