| 03-01-2006, 01:21 AM | #2 |
Make it upgrade every 1 sec maybe, and put those Trigger: ![]() Multiboard - Set the text for status_board[(Integer A)] item in column 1, row 1 to Name
![]() Multiboard - Set the text for status_board[(Integer A)] item in column 2, row 1 to Health
![]() Multiboard - Set the text for status_board[(Integer A)] item in column 3, row 1 to Mana
![]() -------- ----- --------
![]() Multiboard - Set the text for status_board[(Integer A)] item in column 1, row 2 to PlayerName[(Integer A)] |
| 03-01-2006, 01:21 AM | #3 |
I think you need to destroy it at the end |
| 03-01-2006, 01:24 AM | #4 |
it updates a tiny bit slow as it is, and 1 sec update would throw off the sync of hp and mana of the unit to the board. |
| 03-01-2006, 01:33 AM | #5 |
Most of GUI multiboard actions leak memory like heal. And it is the kind of memory leak you can't fix. The solution is to use the JASS natives directly when modiffying multiboards Have a nice day . You can make it update every 5 seconds instead of 0.1 seconds that would leak 1/50 times the memory it leaks currently and no difference. I actually think even a 30 seconds update cycle will be good enough Edit: A clever solution would be to actually just update the multiboard when you are sure it requires to be updated. |
| 03-01-2006, 01:35 AM | #6 |
the health and mana is part of the board and need to always update. reason is that healers need a way to see who is needs healing and stuff. plus there is no way to know when hp or mana changes, no event for it. |
| 03-01-2006, 01:46 AM | #7 | |
Quote:
detect on damage and spell use? |
| 03-01-2006, 01:48 AM | #8 |
there is no way to detect when a unit's health or mana changes |
| 03-01-2006, 01:53 AM | #9 |
Oh well the Optimizer's "Optimize BJ functions" method should fix the leaks. And of course there are ways to detect when a unit's health or mana changes. There is even a unit state event |
| 03-01-2006, 01:59 AM | #10 |
ahh found one for takes damage but that doesn't take for account of regen. there is no event for when hp and mana goes up or down. |
| 03-01-2006, 02:44 AM | #11 |
I'm pretty sure that Kattana made a function for this, but unless I am mistaken it was said to leak trigger actions, but of course that can be fixed with some little use of tables or whatever. It can be found Here. A mana one would be simple to make, just sub in the UNIT_STATE_MANA constants where they need to go and you're laughing. Edit: Oh but the thing is that since unit's regen and all that this may effectively cause MORE lag since this would theoretically run every second, and possibly many times a second if you have lots of heroes. |
| 03-01-2006, 04:24 PM | #12 |
What are you trying to do? Make it to show allied hero's health and mana? If so, just turn on advanced shared control. Doesn't give control, but shows the hero icons at the side. May need to cut the number of reserved hero icons, and if you have > about 6/7 heroes it won't really work. But otherwise it is good. |
| 03-01-2006, 04:37 PM | #13 |
I'm trying to give an on-screen display of the players character and any he is grouped with. for example My hero hp mana Party member hp mana Party member hp mana Party member hp mana and i can't give control as that will allow players to control each other. like movement and stuff. |
| 03-01-2006, 05:10 PM | #14 |
anytime you are updating a multiboard every .1 sec or so with a whole boat load of things, it may get laggy(there is just to much going on between it and all the other triggers running), either update it less frequently, like 1 second, which can still be helpful(just not as up to date) but still, every 1 second will give a pretty godo idea of allies hp and mana, or scrap the idea along with the major memory leaks this has, it may just be a bad idea all together |
| 03-01-2006, 05:57 PM | #15 |
What if i have a trigger update a variable then on the board it just grabs that variable on run? |
