So - My big project have hit a major roadblock. Before, i scaled my units through upgrades. As the unit gained an attribute, that attribute gave the player the next upgrade. Strenght 3, gave strenght upgrade 3, and so on.
Now i just realised that the game lagged like 'hell broke lose' and noticed it was because i tried to upgrade the modify unit effects.
Is there any knowledge of this? Is create healer effect better to scale? Is it because of scaling fractions?
Thanks again to all who have helped me along the way to where i am now.
When i take up the item however, it lags. It seemed to be because of the heal bonus upgrade.(i excluded them one by one to see which one was causing the lag).
- The hero levels up and gains attribute points (works fine!)
- The hero picks up items that gives stat boosts. Strenght, speed and spell. Strenght and Speed works fine.
- When the hero picks items that boosts the attribute, the attribute changes.
- Que the triggers, that will make sure the right tooltip is showing, and will upgrade the heroes accordingly.
- When a hero picks up a spell attribuet item, the game starts lagging. This does not happend when the heroes level up, or when i tried to upgrade once in the beginning of the map. Neither does it lag when i pick up strenght and speed items.
- When removing all data in the heal modifier upgrade, the game did not lag anymore.
can you start the game with the debug window? then make the game lag and have a look into debug window. any triggers running often? i still don't think that the upgrade is the reason (you could create a test map with only the lagging part and upload here).
So it seemed i had some dorment triggers that were spamming, because i hadn't specified them enough. Mainly a few updating the tooltip when i didnt need it, because i had not specified what behaviour it was supposed to react to.
After cleaning them up i still seem to stand in front of a problem.
Attribute change seems to activate all the time, for some reason. I have tried to specify them as much as i can.
Unfortunately, i need to update the tooltip and upgrades when the attribute changes.
So. I found the problem. Or what solved the situation at least.
A behaviour was modified through the heal amount upgrade, a shield behaviour that was supposed to shield more. Which i guess seemed to affect the other attributes somehow.
Now it doesnt spam the upgrade trigger, and everything works without problem.
Thanks again FunkyUserName for your tips and help!
So - My big project have hit a major roadblock. Before, i scaled my units through upgrades. As the unit gained an attribute, that attribute gave the player the next upgrade. Strenght 3, gave strenght upgrade 3, and so on.
Now i just realised that the game lagged like 'hell broke lose' and noticed it was because i tried to upgrade the modify unit effects. Is there any knowledge of this? Is create healer effect better to scale? Is it because of scaling fractions?
Thanks again to all who have helped me along the way to where i am now.
i doubt that. can you test to upgrade right from start and see if it still lags?
@FunkyUserName: Go
Didnt seem to lag when i just upgraded.
When i take up the item however, it lags. It seemed to be because of the heal bonus upgrade.(i excluded them one by one to see which one was causing the lag).
i dont even know where this item comes into play now. please describe step by step what you are using/doing and what is involved.
@FunkyUserName: Go
- The hero levels up and gains attribute points (works fine!)
- The hero picks up items that gives stat boosts. Strenght, speed and spell. Strenght and Speed works fine.
- When the hero picks items that boosts the attribute, the attribute changes.
- Que the triggers, that will make sure the right tooltip is showing, and will upgrade the heroes accordingly.
- When a hero picks up a spell attribuet item, the game starts lagging. This does not happend when the heroes level up, or when i tried to upgrade once in the beginning of the map. Neither does it lag when i pick up strenght and speed items.
- When removing all data in the heal modifier upgrade, the game did not lag anymore.
much better :D.
can you start the game with the debug window? then make the game lag and have a look into debug window. any triggers running often? i still don't think that the upgrade is the reason (you could create a test map with only the lagging part and upload here).
@FunkyUserName: Go
So it seemed i had some dorment triggers that were spamming, because i hadn't specified them enough. Mainly a few updating the tooltip when i didnt need it, because i had not specified what behaviour it was supposed to react to.
After cleaning them up i still seem to stand in front of a problem.
Attribute change seems to activate all the time, for some reason. I have tried to specify them as much as i can.
Unfortunately, i need to update the tooltip and upgrades when the attribute changes.
Ideas? Many thanks in advance!
@Sendlirn: Go
So. I found the problem. Or what solved the situation at least.
A behaviour was modified through the heal amount upgrade, a shield behaviour that was supposed to shield more. Which i guess seemed to affect the other attributes somehow.
Now it doesnt spam the upgrade trigger, and everything works without problem.
Thanks again FunkyUserName for your tips and help!