English [RELEASED] Achievements and Statistics Script

262 replies
Goto Page
To the start Previous 1 2 3 4 ... 13 14 Next To the start
Poll Poll
Do you like the idea of the script?
Only registered users are allowed to vote
No, it is nothing new
4.17% (3)
Yes
95.83% (69)
72 votes cast
26.10.15 03:32:10 am
Up
mrc
User
Offline Off
Can't wait for it, keep it up!
Brazilian Community - www.CS2DBR.tk
26.10.15 07:15:15 am
Up
SQ
Moderator
Offline Off
Well, statistics part is pretty much done. In the end there will be 24 stats set as default.

IMG:http://s30.postimg.org/vko7k7mep/zxc.png
edited 2×, last 26.10.15 08:33:59 am
26.10.15 12:17:52 pm
Up
Talented Doge
User
Offline Off
I'm sure this will be great, after the long-waited key press hook is out.
Talented Doge
26.10.15 12:25:33 pm
Up
Infinite Rain
Reviewer
Offline Off
@user Talented Doge:
Is that kind of thing confirmed to be released?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
26.10.15 12:31:28 pm
Up
Rainoth
Moderator
Offline Off
@user Infinite Rain: No, it's confirmed to never happen. Not for complete keyboard at least.
26.10.15 01:20:12 pm
Up
DaisukeOno
User
Offline Off
Long time ago, i have same idea like this, everybody know i am newbie scripter, so i can't make this. Keep this job, good.
I have a potato internet
26.10.15 10:19:28 pm
Up
SQ
Moderator
Offline Off
I hope that's the last update on Statistics part.

∗ Some new statistics and graphics
IMG:http://s17.postimg.org/9kriln967/www.png

IMG:http://s23.postimg.org/u3sfe68zv/zzzz.png
26.10.15 11:21:55 pm
Up
BcY
User
Offline Off
You have a great idea and as i see; well made interface.
Keep it going,so impatient to see it released.
Kgb2d Community - Since 2012
27.10.15 03:02:48 pm
Up
TheBosS_
User
Offline Off
There's a small bug in the statistics thingy. (in all of the Top Players menus)



As you can see that I am Player with the USGN 35744 (rank 4). Rank 3 has the exact statistics and the USGN as mine but a different name. This name is in every Top Players menu.
27.10.15 03:16:23 pm
Up
SQ
Moderator
Offline Off
I saw this one, bizarre case. Probably already fixed. Not sure yet, haven't put it into the testing.
28.10.15 06:39:14 am
Up
VaiN
User
Offline Off
Hello, Simonas, really like the GUI design. I'd be very interested to learn more about how you created that.

My Rewards scripts hosted last year has pretty much all of this including achievements, but no fancy GUI to show it off. Any chance Rewards may have been an influence in creating this?

I greatly prefer my OOP implementation over hooks though, as it's all integrated. Couple examples:
Code:
1
2
users[id]:stats():add_kill()
users[id]:ach().flag_cap:increment()

OOP makes this type of system much easier to manage. But I can understand using hooks for adding onto an existing system more easily.

Regarding adding hook functions, I find it more convenient to allow in-line functions. For example I use a custom system for CS2D hooks that allows me to do the following:
Code:
1
2
3
hook.add("second",priority,function()
     -- do something
end)

Everything else is handled automatically by the hook system. Just food for thought.

As a side note, Rewards will be returning most likely early next year once I finish up the Shop script. I would love to add an interface like this, it would be epic.

Keep up the good work, looks great.
28.10.15 08:56:27 am
Up
SQ
Moderator
Offline Off
VaiN has written:
Any chance Rewards may have been an influence in creating this?


I do not play CS2D that much, I looked though File Archive and haven't seen anything similar to that. Though I had idea for ages. This script will include Achievements, leaderboard and graph statistics as well. Those are more advanced features that I left for next week.

VaiN has written:
I greatly prefer my OOP implementation over hooks though, as it's all integrated. Couple examples:
Code:
Code:
1
2
users[id]:stats():add_kill()
users[id]:ach().flag_cap:increment()


Regarding adding hook functions, I find it more convenient to allow in-line functions. For example I use a custom system for CS2D hooks that allows me to do the following:

Code:
1
2
3
hook.add("second",priority,function()
     -- do something
end)

I have mentioned this kind of methods already in the thread before. My system already featuring this and even a little bit more.

So far I had enough of these functions to implement about 30 stats:
Code:
1
2
3
4
5
6
7
8
9
AddFunction(hook,func) - basically same as addHook func(id)
AddGlobalFunction(hook,func) - func()
AddRemove(hook,func)
AddValue("value")
IncreaseValue(id,"value")
GetValue(id,"value")
AddStats("Sniper Kills", path_of_Image, 
function_that_returns_value_in_menu,
function_that_is_used_to_compare_values_in_top_lists)


Sniper kills statistics implementation for example:
More >


This is the list of all statistics available so far.
More >


I could also upload script that handles UI pretty well. Just I would need a list of features. And yet I don't know if people would use that.

and some improvements.
IMG:http://s7.postimg.org/gppdjnxvf/puns.png
edited 6×, last 28.10.15 10:36:57 am
28.10.15 10:45:55 am
Up
tontonEd
User
Offline Off
^ Im exited , code look clean, GUI is perfect.
28.10.15 11:08:47 am
Up
Sparty
Reviewer
Offline Off
Should make the color numbers as yellow as default because it will be easier seeing it
user DC has written:
@user omg: Actually a pretty good idea...
28.10.15 11:27:00 am
Up
SQ
Moderator
Offline Off
@user Sparty: I'll keep the style of menus in this way. So far it blends in CS2D style well enough
I'm photographer and I really hate yellow color to be honest.
28.10.15 11:45:58 am
Up
Infinite Rain
Reviewer
Offline Off
This project looks very clean and properly coded (I assumed so by looking through the examples you have posted.) I wish you best of luck in that. It's very nice seeing someone creating good projects for this game. I really wish it had more players though.

Just a personal question. Weren't you really busy? How do you find time for that?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
28.10.15 11:50:02 am
Up
SQ
Moderator
Offline Off
To be honest I have never been so busy in my life at the moment. But that's the reason I'm doing this. Otherwise I would go crazy, this is more like chill project for me. I really do this project fast and have all the code in mind already.
28.10.15 12:03:41 pm
Up
Infinite Rain
Reviewer
Offline Off
It's nice to hear. I do hope you're having fun.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
28.10.15 08:34:47 pm
Up
Fraizeraust
Moderator
Offline Off
Right now, I have found another bug.

This bug occurred when the round has been finished. I didn't check though if if happens all the time as I see this bug occurred for the first time.
28.10.15 08:39:20 pm
Up
SQ
Moderator
Offline Off
Probably the last UI update:

IMG:http://s15.postimg.org/a8js3ti8r/update.png
edited 4×, last 31.10.15 12:20:01 am
To the start Previous 1 2 3 4 ... 13 14 Next To the start