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))

Submitted by:  Iwan Gabovitch <qubodup>
Submitted on:  Mon 03 Dec 2012 04:44:59 PM UTC  
 
Severity: 4 - ImportantItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: François Beerten <feb>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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

(file #28330)

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 09 Feb 2014 05:13:35 PM UTCfebStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 09 Feb 2014 05:02:08 PM UTCfebStatusFixed=>Confirmed
    Sun 16 Jun 2013 11:58:02 PM UTCduckAttached File-=>Added boswars_objectives_bug.png, #28330
    Mon 03 Dec 2012 09:06:29 PM UTCfebStatusConfirmed=>Fixed
      Assigned toNone=>feb
    Mon 03 Dec 2012 08:31:36 PM UTCfebSeverity3 - Normal=>4 - Important
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup