[Bug] Bonus Names
stunslave opened this issue · 9 comments
The bug is rather explanatory, shows in the image that if there are more than 1 bonus on a map.
The first bonus on a map is announced as "New Bonus 0 World Record" In which it should be "New Bonus 1 World Record".
On another note can per bonus images added.. :) thanks
Currently all my bonus images are named surf_mapname_b1 | surf_mapname_b2 | surf_mapname_b3 etc
Thanks for reporting this.
I think bonuses are indexed starting at 0 so I'll add a simple +1 offset to fix that.
Regarding the bonus images, this line adds the bonus number to the url:
https://github.com/Sarrus1/SurfTimer-discord/blob/888b8f71a0d7a68ed61c705310a0abdee75824ff/scripting/SurfTimer-discord.sp#L423
Did you enable the cvar for it?
It should be sm_surftimer_discord_bonus_image 1
I'll make it default I think.
Bonus Names.
zonegroup
is this issue, older zones start from zonegroup
"0" , newer start from "1".
Bonus 2 is always zonegroup
"2". Bonus 3 is always zonegroup
"3". etc
So changing zonegroup
"0" to "1" in the DB fixes the issue on discord.
I see so by default there is no bonus 1 right it's always 0? Then it goes normally 2,3,4...
Not always 0.. Sometimes it's 1.. I don't know why.
Above fix didn't work :>
This should be fixed in 9be2709
YOU HAVE TO COMPILE IT YOURSELF, THE BINARIES ARE NOT UPDATED
I always compile I don't trust precompiled shit lol.
Nope that didnt fix it lol. Turned bonus 1 into Bonus 2.
Image/Record 1 = 1 Bonus on Map (Shows Bonus 2)
Image/Record 2 = 1 Bonus on Map (Shows Bonus 2)
Image/Record 3 = 3 Bonuses on Map (Bonus 1 completed - shows Bonus 2)
This last image is the Main Map Completion on surf_1day - Shows Bonus 1 Record...
Seems like the main map is taking the spot of bonus 1.. (maybe lol)
Need more people to test it.
I have reverted back to the old Surftimer / Discord announcements.
When it's working I'll add it again.