bugBos Wars - Bugs: bug #37854, Objectives screen broken: missing...

 
 

bug #37854: Objectives screen broken: missing text and freeze (bad argument #1 to 'ipairs' (table expected, got string))

Submitter:  Iwan Gabovitch <qubodup>
Submitted:  Mon 03 Dec 2012 04:44:59 PM UTC
   
 
Severity:  4 - Important Item Group:  * Bug
Status:  Fixed Privacy:  Public
Assigned to:  feb Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Feb 2014 05:13:35 PM UTC, comment #4: 

Fixed in development version (subverion revision 10230). Thank you for the bug report.

François Beerten <feb>
Group administrator
Sun 16 Jun 2013 11:58:02 PM UTC, comment #3: 

Please reopen this bug, i was able to reproduce using 2.7 and the tutorial campaign.

Trace:
...sr/share/games/boswars/scripts/menus/ingame/game.lua:559: bad argument #1 to 'ipairs' (table expected, got string)
stack traceback:
[C]: in function 'ipairs'
...sr/share/games/boswars/scripts/menus/ingame/game.lua:559: in function 'RunObjectivesMenu'
...sr/share/games/boswars/scripts/menus/ingame/game.lua:68: in function <...sr/share/games/boswars/scripts/menus/ingame/game.lua:68>
[C]: in function 'StartMap'
/usr/share/games/boswars/scripts/guichan.lua:452: in function 'RunMap'
/usr/share/games/boswars/scripts/menus/campaigns.lua:110: in function '?'
/usr/share/games/boswars/scripts/menus/campaigns.lua:123: in function 'RunCampaign'
/usr/share/games/boswars/scripts/menus/campaigns.lua:150: in function </usr/share/games/boswars/scripts/menus/campaigns.lua:147>
[C]: in function 'run'
/usr/share/games/boswars/scripts/menus/campaigns.lua:158: in function </usr/share/games/boswars/scripts/menus/campaigns.lua:137>
[C]: in function 'run'
/usr/share/games/boswars/scripts/guichan.lua:864: in function 'RunMainMenu'
/usr/share/games/boswars/scripts/guichan.lua:877: in main chunk



Marc Dequènes (Duck) <duck>
Mon 03 Dec 2012 09:06:29 PM UTC, comment #2: 

Fixed in r10194. Thank you for your help.

François Beerten <feb>
Group administrator
Mon 03 Dec 2012 07:55:03 PM UTC, comment #1: 

I realized that at least part of this bug is incomplete. I can play any level when starting it as the first game in my Bos Wars playsession.

However, if I start "conquest" and quit it using F10/E/Q/Q and then start "swindler, the game will freeze.

campaigns/conquest/campaign.lua:53: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
  [C]: in function 'ipairs'
  campaigns/conquest/campaign.lua:53: in function 'ConquestBriefingMenu'
  campaigns/conquest/campaign.lua:102: in function '?'
  scripts/menus/campaigns.lua:123: in function 'RunCampaign'
  scripts/menus/campaigns.lua:150: in function <scripts/menus/campaigns.lua:147>
  [C]: in function 'run'
  scripts/menus/campaigns.lua:158: in function <scripts/menus/campaigns.lua:137>
  [C]: in function 'run'
  scripts/guichan.lua:864: in function 'RunMainMenu'
  scripts/guichan.lua:877: in main chunk

My theory is that the "objectives" variable type gets set by the first mission that is started and does not get reset later and that these two missions have different types for the objectives (string and list).

Iwan Gabovitch <qubodup>
Mon 03 Dec 2012 04:44:59 PM UTC, original submission:  

Viewing the "Objectives" in r10193 freezes the game in campaign/turorial map and the command line shows the error message below. In campaign/conquest map, the objectives screen has missing text, after you discovered the base. It reads "Establish Outpost 31\rBuild a gun turret\rBuild a training" (but there is no error/warning message in the command line). I suspect both has something to do with using whitespace inside of strings. Perhaps Lua changed some behavior about concatenating strings and lists lately?

The error message for case 1:

scripts/menus/ingame/game.lua:559: bad argument #1 to 'ipairs' (table expected, got string)
stack traceback:
[C]: in function 'ipairs'
scripts/menus/ingame/game.lua:559: in function 'RunObjectivesMenu'
scripts/menus/ingame/game.lua:68: in function <scripts/menus/ingame/game.lua:68>
[C]: in function 'StartMap'
scripts/guichan.lua:452: in function 'RunMap'
scripts/menus/campaigns.lua:110: in function '?'
scripts/menus/campaigns.lua:123: in function 'RunCampaign'
scripts/menus/campaigns.lua:150: in function <scripts/menus/campaigns.lua:147>
[C]: in function 'run'
scripts/menus/campaigns.lua:158: in function <scripts/menus/campaigns.lua:137>
[C]: in function 'run'
scripts/guichan.lua:864: in function 'RunMainMenu'
scripts/guichan.lua:877: in main chunk

Iwan Gabovitch <qubodup>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #28330:  boswars_objectives_bug.png added by duck (649KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by duck (Updated the item)
  • -email is unavailable- added by feb (Updated the item)
  • -email is unavailable- added by qubodup (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 feb StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-02-09 feb StatusFixed Confirmed
    2013-06-16 duck Attached File- Added boswars_objectives_bug.png, #28330
    2012-12-03 feb StatusConfirmed Fixed
        Assigned toNone feb
    2012-12-03 feb Severity3 - Normal 4 - Important
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code