View topic - Health bars and Buildbars, 'For' limit must be a number



All times are UTC + 1 hour


Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 08 Jan 2012, 01:39 

Joined: 15 Sep 2008, 23:12
Hey guys,

I have had a recurring problem since the new spring build 2 builds ago (somewhere in 8.4, after september, I can't remember)

My two beloved widgets, the healthbar and buildbar widgets aren't working anymore. As soon as I activate them, I get an error message saying that the

#line# : 'for' limit must be a number

in the console

I have seen people post screens with a buildbar working.


gui_buildbar
The console points to line 641 as the problem.

unit_healthbar
Line 203.


what's going on with this and how is it solved?


Top
 Offline Profile  
 
PostPosted: 08 Jan 2012, 02:03 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
use #blah instead of blah.n


Top
 Offline Profile  
 
PostPosted: 08 Jan 2012, 02:41 

Joined: 15 Sep 2008, 23:12
zwzsg wrote:
use #blah instead of blah.n

I don't understand?

At line 639 of buildbar, replace local totalUnits = teamUnits.n

with local totalUnits = #teamUnits ?


Top
 Offline Profile  
 
PostPosted: 08 Jan 2012, 02:59 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
yep


Top
 Offline Profile  
 
PostPosted: 08 Jan 2012, 03:08 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
if you just want to play:
all the more-or-less maintained games should have working widgets etc.
There should be no reason to have eg a local healthbar widgets, the game likely has it already.

if you want to dev Lua:
viewtopic.php?f=14&t=26302


Top
 Offline Profile  
 
PostPosted: 08 Jan 2012, 03:46 

Joined: 15 Sep 2008, 23:12
Thanks for that guys. My stuff is working again!

@Knorke, unfortunately buildbar wasn't updated or something when i dl'd a new copy of it from Jobjol. The upside of this is that I know how to deal with with this problem as it comes from now on.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.