Yeah, so my Leaderboard background is missing and it's just a grey/blue area that looks pretty ugly.
Otherwise it's working fine so far.
That seemed to be a problem 4 years ago so I'm kinda depressed that I couldn't find a solution in the whole internet... .
Edit: Also another issue - the update works pretty well, just the first unit I kill seems to break it. E.g. a Lyote is worth 40XP 60Gold, but when I kill the first one the Leaderboard shows 1540 and 2560 - after that it works fine.
I don't know why it starts with 1500 and 2500? It doesn't make sense, I can't seem to replicate where those values come from.
Edit2: I fixed the above issue by setting the variables manually to 0 after the leaderboard is created, it's still strange that they somehow aren't 0. There is still the issue with the blue grey box...
This color on the background means that the image/texture is missing. sometimes this happens for no damn good reason. try reloading the game a few time see if its intermittent. I only get this with custom images, never herd of anyone else getting them. it usually was random and somewhat rare for me and a restart would fix it. yours seems to not be a custom image which suggests that the image for that dialog is missing or broken. I would ask Dr.SuperEvil in data about it or hit up artiest tavern.
I also have a different issue - I'm trying to update certain values, which works fine, but I want to make sure those are only updated if the unit actually feeds something.
AKA if the unit actually gives bounty. So if you kill a building of your own you obviously don't get a bounty for that. And I want to make sure that only if enemies destroy your stuff the leaderboard gets updated.
Making a condition is no problem, but when I destroy units with a trigger it gives me the "parameter out of bounds" error, which is obvious because there is no "killing unit" or "killing player" I could refer to.
Can I ignore those errors or would it be better to write a better condition?
Edit: I fixed the Leaderboard. I copied the Aiur Chef inventory, but also it's leaderboard style which of course wasn't available in my files.
dont use leaderboards, seriously just don't use them. same with timer windows. create your own, put them in a library and reuse them for later projects and you will save alot of time, nervs etc. they are only fine in really simple projects, really simple, everything else use dialogs, it's really worth it.
If the only way of getting resources is through bounties, then you can use player property changes, and indicate minerals. However, if you can also harvest minerals, or pick them up on the map, then this would activate from those as well.
Edit: Perhaps making conditions that check that it wasn't the person's own building, or their ally would be simple enough to overcome this problem. Then again, I've never used classic leaderboards, so I'm not entirely sure how they work.
You could set the custom value of the unit to something, say 72, whenever you kill it with a trigger.
Then, in your conditions for the Unit Dies trigger, make the first condition be Custom Value of Triggering Unit != 72. Then any units you kill with triggers will short circuit out of your Unit Dies trigger immediately and you won't get the errors.
I hate error messages like that though, many such error messages that I know don't matter have caused me to make changes in my maps to fix the error message in a way that ends up causing some obscure annoying actual problems down the road...
Yeah, so my Leaderboard background is missing and it's just a grey/blue area that looks pretty ugly.
Otherwise it's working fine so far.
That seemed to be a problem 4 years ago so I'm kinda depressed that I couldn't find a solution in the whole internet... .
Edit: Also another issue - the update works pretty well, just the first unit I kill seems to break it. E.g. a Lyote is worth 40XP 60Gold, but when I kill the first one the Leaderboard shows 1540 and 2560 - after that it works fine.
I don't know why it starts with 1500 and 2500? It doesn't make sense, I can't seem to replicate where those values come from.
Edit2: I fixed the above issue by setting the variables manually to 0 after the leaderboard is created, it's still strange that they somehow aren't 0. There is still the issue with the blue grey box...
This color on the background means that the image/texture is missing. sometimes this happens for no damn good reason. try reloading the game a few time see if its intermittent. I only get this with custom images, never herd of anyone else getting them. it usually was random and somewhat rare for me and a restart would fix it. yours seems to not be a custom image which suggests that the image for that dialog is missing or broken. I would ask Dr.SuperEvil in data about it or hit up artiest tavern.
I also have a different issue - I'm trying to update certain values, which works fine, but I want to make sure those are only updated if the unit actually feeds something.
AKA if the unit actually gives bounty. So if you kill a building of your own you obviously don't get a bounty for that. And I want to make sure that only if enemies destroy your stuff the leaderboard gets updated.
Making a condition is no problem, but when I destroy units with a trigger it gives me the "parameter out of bounds" error, which is obvious because there is no "killing unit" or "killing player" I could refer to.
Can I ignore those errors or would it be better to write a better condition?
Edit: I fixed the Leaderboard. I copied the Aiur Chef inventory, but also it's leaderboard style which of course wasn't available in my files.
@Scythe1250: Go
dont use leaderboards, seriously just don't use them. same with timer windows. create your own, put them in a library and reuse them for later projects and you will save alot of time, nervs etc. they are only fine in really simple projects, really simple, everything else use dialogs, it's really worth it.
If I had the time. It's doing what I want it to do right now, so it's not an issue.
@Scythe1250: Go
If the only way of getting resources is through bounties, then you can use player property changes, and indicate minerals. However, if you can also harvest minerals, or pick them up on the map, then this would activate from those as well.
Edit: Perhaps making conditions that check that it wasn't the person's own building, or their ally would be simple enough to overcome this problem. Then again, I've never used classic leaderboards, so I'm not entirely sure how they work.
The problem doesnt have to do with Leaderboards.
The Condition is that Owner of Killing Unit has to be an enemy of Owner of Triggering Unit.
If I kill a unit with a trigger the Killing Unit doesn't exist, which makes the trigger give me an error.
It shouldn't cause any problems, but the error messages are annoying.
@Scythe1250: Go
You could set the custom value of the unit to something, say 72, whenever you kill it with a trigger.
Then, in your conditions for the Unit Dies trigger, make the first condition be Custom Value of Triggering Unit != 72. Then any units you kill with triggers will short circuit out of your Unit Dies trigger immediately and you won't get the errors.
I hate error messages like that though, many such error messages that I know don't matter have caused me to make changes in my maps to fix the error message in a way that ends up causing some obscure annoying actual problems down the road...
(I lol'd at Feederboard)