[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



URL:
  <http://savannah.nongnu.org/bugs/?37854>

                 Summary: Objectives screen broken: missing text and freeze
(bad argument #1 to 'ipairs' (table expected, got string))
                 Project: Bos Wars
            Submitted by: qubodup
            Submitted on: Mon 03 Dec 2012 04:44:59 PM GMT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37854>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/