HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

WHY IS THIS MULTIBOARD BROKEN1?!?!?!?!?

06-11-2009, 07:01 AM#1
GosuSheep
Trigger:
testMultiboard
Events
Conditions
Collapse Actions
Set atempint = 15
Set atempint2 = 13
Leaderboard - Destroy (Last created leaderboard)
Countdown Timer - Hide createTimerWindow
Multiboard - Create a multiboard with atempint columns and atempint2 rows, titled Game Statistics
Set endMultiboard = (Last created multiboard)
Collapse For each (Integer A) from 1 to atempint, do (Actions)
Collapse Loop - Actions
Collapse For each (Integer B) from 1 to atempint2, do (Actions)
Collapse Loop - Actions
Multiboard - Set the display style for endMultiboard item in column (Integer A), row (Integer B) to Show text and Hide icons
Multiboard - Set the width for endMultiboard item in column (Integer A), row (Integer B) to 6.66% of the total screen width
Multiboard - Set the color for endMultiboard item in column (Integer A), row (Integer B) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Multiboard - Set the text for endMultiboard item in column 1, row 1 to Name
Multiboard - Set the text for endMultiboard item in column 2, row 1 to Sheep
Multiboard - Set the text for endMultiboard item in column 3, row 1 to Deaths
Multiboard - Set the text for endMultiboard item in column 3, row 1 to Deaths
Multiboard - Set the text for endMultiboard item in column 4, row 1 to Farms Built
Multiboard - Set the text for endMultiboard item in column 5, row 1 to Des'd (not -d)
Multiboard - Set the text for endMultiboard item in column 6, row 1 to Saves
Multiboard - Set the text for endMultiboard item in column 7, row 1 to Wards Killed
Multiboard - Set the text for endMultiboard item in column 8, row 1 to Percent Alive
Multiboard - Set the text for endMultiboard item in column 9, row 1 to Wolves
Multiboard - Set the text for endMultiboard item in column 10, row 1 to Kills
Multiboard - Set the text for endMultiboard item in column 11, row 1 to Farms Killed
Multiboard - Set the text for endMultiboard item in column 12, row 1 to Images
Multiboard - Set the text for endMultiboard item in column 13, row 1 to Wards
Multiboard - Set the text for endMultiboard item in column 14, row 1 to Items
Multiboard - Set the text for endMultiboard item in column 15, row 1 to Favorite Item
Multiboard - Show endMultiboard
Multiboard - Maximize endMultiboard

At the top there, if i set atempint2 = 8, ITS FINE. But if its more than 8, it screws up. It doesn't show text, it shows icons. WHAT IS GOING ON?!?!!??!?!
06-11-2009, 09:45 AM#2
Opossum
I'd say you're hitting the op limit in your double loop. Those multiboard functions are some big-ass BJ functions and you basically have 3 of them in each of your 195 iterations. Not sure how to fix that though... you might want to rewrite that into jass using native functions and greatly reducing function calls.

Oh and btw...
http://encyclopediadramatica.com/CAPSLOVE
06-11-2009, 11:42 AM#3
DioD
no event111
06-11-2009, 12:16 PM#4
Anachron
Opossum is right. You have a to high loop in there. Just make seperated but more loops.
06-11-2009, 03:50 PM#5
GosuSheep
I will try that.

Any way to -rep from diod?
06-11-2009, 04:52 PM#6
Anachron
No, I guess there is none.
06-12-2009, 04:32 PM#7
GosuSheep
The loops don't seem to be the issue. It seems to be the amount of rows. If I keep the loop but lower the amount of rows, it is fine.

Any other fixes?
06-12-2009, 04:39 PM#8
0zyx0
Place a wait inside the outer loop. It will probably fix it. There is no need to use a polled wait, just use a normal wait, with a very small value.
Trigger:
testMultiboard
Events
Conditions
Collapse Actions
Set atempint = 15
Set atempint2 = 13
Leaderboard - Destroy (Last created leaderboard)
Countdown Timer - Hide createTimerWindow
Multiboard - Create a multiboard with atempint columns and atempint2 rows, titled Game Statistics
Set endMultiboard = (Last created multiboard)
Collapse For each (Integer A) from 1 to atempint, do (Actions)
Collapse Loop - Actions
Wait (0.01 seconds)
Collapse For each (Integer B) from 1 to atempint2, do (Actions)
Collapse Loop - Actions
Multiboard - Set the display style for endMultiboard item in column (Integer A), row (Integer B) to Show text and Hide icons
Multiboard - Set the width for endMultiboard item in column (Integer A), row (Integer B) to 6.66% of the total screen width
Multiboard - Set the color for endMultiboard item in column (Integer A), row (Integer B) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Multiboard - Set the text for endMultiboard item in column 1, row 1 to Name
Multiboard - Set the text for endMultiboard item in column 2, row 1 to Sheep
Multiboard - Set the text for endMultiboard item in column 3, row 1 to Deaths
Multiboard - Set the text for endMultiboard item in column 3, row 1 to Deaths
Multiboard - Set the text for endMultiboard item in column 4, row 1 to Farms Built
Multiboard - Set the text for endMultiboard item in column 5, row 1 to Des'd (not -d)
Multiboard - Set the text for endMultiboard item in column 6, row 1 to Saves
Multiboard - Set the text for endMultiboard item in column 7, row 1 to Wards Killed
Multiboard - Set the text for endMultiboard item in column 8, row 1 to Percent Alive
Multiboard - Set the text for endMultiboard item in column 9, row 1 to Wolves
Multiboard - Set the text for endMultiboard item in column 10, row 1 to Kills
Multiboard - Set the text for endMultiboard item in column 11, row 1 to Farms Killed
Multiboard - Set the text for endMultiboard item in column 12, row 1 to Images
Multiboard - Set the text for endMultiboard item in column 13, row 1 to Wards
Multiboard - Set the text for endMultiboard item in column 14, row 1 to Items
Multiboard - Set the text for endMultiboard item in column 15, row 1 to Favorite Item
Multiboard - Show endMultiboard
Multiboard - Maximize endMultiboard