English Dynamic Achievements and Statistics Script (2.0) icon

97 comments
28.11.15 03:43:30 pm
like 75 like it!
3.12 mb, 669 Downloads
SQ
Moderator
Offline Off
Greetings!

> UPDATE 2017/12/08
ADDED Steam login support
CHANGED Improved statistics load & save performance
CHANGED Using flag images from new Lua interface
CHANGED Optimized main data file size about 30%
CHANGED Player can have only up to 256 values!!!
CHANGED Old data files wont work with this version of the script

> UPDATE 2017/05/01
∗ Multi-resolution support for CS2D (1.0.0.3v support)
∗ Removed Magic Bullet achievement due to performance

I'm Simonas a.k.a SQ or Blazing. I was responsible for contributions like Zombie Plague, Super Hero, Gun Game and CS2D Lighting & Shadows Engine. After being absent for a while I'm glad to say that for the last time I'm sharing with you my last CS2D contribution - Dynamic Achievements and Statistics Script

- - ==== [ illegal Attention - Note illegal ] ==== - -
INFO This file description is not finished yet.

> If you have requests,suggestions, questions or bug reports - post them in this thread:
thread cs2d [RELEASED] Achievements and Statistics Script

- - ==== [ Installation ] ==== - -
Downloaded ZIP archive includes GFX, SFX, SYS folders that must be overwritten in CS2D. In other words, you can simply extract it in CS2D folder.
- - ==== [ Official Script Server ] ==== - -
> [TAB] The Achievements - 81.30.156.51:10020

- - ==== [ Script Features ] ==== - -
     • 73 achievements
     • 35 player statistics
     • Interface allows to add new achievements and statistics
     • Pie charts & graphs for server statistics
     • Ranks
     • Configuration
     • 7 different menus

- - ==== [ Rank Feature ] ==== - -
INFO This feature can be disabled in config.cfg
     • 25 ranks to achieve
     • Image for each rank
     • Progress bar

- - ==== [ Configuration Feature ] ==== - -
INFO This feature is not fully finished yet
     • open "sys/lua/core/config.cfg" to modify features

- - ==== [ Graph Statistics Feature ] ==== - -
INFO This feature can be disabled in config.cfg
     • Graph curves
     • Pie charts
     • Overall statistics menu

- - ==== [ Sample - How to Create Statistics for a Player ] ==== - -
> First Step
     • Open "sys/lua/core/list_statistics.cfg"
     • Add function
Code:
1
AddStats("Kills", "gfx/stats/stat/stat_kills.png",stat_kills_Variable,stat_kills_Variable,true)

> Second Step
     • Open "sys/lua/core/scripts/statistics_script_part3.cfg"
     • Add following code
Code:
1
2
3
4
5
6
7
8
9
10
11
--==== KILLS STATISTICS ====--
function stat_kills(killer,victim)
     if (player(killer,"team") ~= player(victim,"team")) then
          IncreaseUserValue(killer,"Kills",1)
     end
end
function stat_kills_Variable(id)
     return( GetUserValue(id,"Kills"))
end
AddValue("Kills")
AddFunction("kill",stat_kills)


- - ==== [ Sample - How to Create Achievement ] ==== - -
> First Step
     • Open "sys/lua/core/list_achievements.cfg"
     • Add function
Code:
1
AddAchievement("Body Bagger", GAMEMODE_ALL,"gfx/stats/a/body_bagger.jpg",{"Kill 25 enemies"},"BodyBagger",kill_BodyBaggerProcess)

> Second Step
     • Open "sys/lua/core/scripts/statistics_script_part3.cfg"
     • Add following code
Code:
1
2
3
4
5
6
7
8
9
10
-- ==== Body Bagger Achievement
function kill_BodyBagger(killer,victim)
     if GetUserValue(killer,"Kills") > 24 then
          OpenUnlockAchievement(killer,"BodyBagger")
     end
end
function kill_BodyBaggerProcess(id)
     return(GetUserValue(id,"Kills") / 25)
end
AddFunction("kill",kill_BodyBagger)


- - ==== [ Sample - How to Create Server Statistics ] ==== - -
> First Step
     • Open "sys/lua/core/list_graphs.cfg"
     • Add function
Code:
1
AddOverallStatistics("Overall Statistics",OvalDescription)

> Second Step
     • Open "sys/lua/core/scripts/graphs_scripts.cfg"
     • Add following code
Code:
1
2
3
4
5
-- ==== Players Count Graph
function GraphPlayersCount()
     SetGraphGlobalVariable("Players Played",#player(0,"table") )
end
AddGlobalFunction("second",GraphPlayersCount)

- - ==== [ Player Achievements & Statistics Functions ] ==== - -
∗ AddAchievement(Name, GameMode, ImagePath, Description, Achievement Variable) >
∗ AddStats(Name, ImagePath, VariableFunction, CompareFunction, CompareBar) >

-- ==== [ Global Server Statistics Functions ] ==== - -

- - ==== [ Credits ] ==== - -
user Yates - hosting official server and rank icons file cs2d Yates - Rank icons (26)
user Starkkz - Used a little bit of saving & loading code file cs2d Stream functions library for Lua (14)
user Crazyx - Location Mode file cs2d Locmod 1.0 (0)
user Pagyra - Player statistics graphics
user EngiN33R - Suggestions & testing
user Styx - pie chart suggestion & testing
user Sparty - Testing & giving out ideas
user Borealis - Testing
user TopNotch - Testing
user KimKart - Testing
user Time - Testing
user VADemon - Testing
user _Yank -Testing
imageimageimageimageimage
edited 18×, last 08.12.17 02:24:19 am
ok This file has been reviewed and approved by DC (29.11.15 02:25:46 pm)

Comments

97 comments
Goto Page
To the start Previous 1 2 3 4 5 Next To the start

Log in!

You need to log in to be able to write comments!Log in
05.01.18 11:59:00 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
@user Tw_M: omfg no shit

After you install it how do you see the stats in game
05.01.18 09:23:13 pm
Up
Tw_M
User
Offline Off
@user CrazyPenguin: You have to install the script first.
05.01.18 09:18:57 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
How do you see the stats in game ?
08.12.17 06:29:21 am
like I like it!
Up
Denisgrad
User
Offline Off
NOOO I just optimized this script for my Call of Duty server and now I gotta do it all over again

Btw this is the greatest lua script ever written for CS2D.
04.08.17 01:30:04 pm
like I like it!
Up
Talented Doge
User
Offline Off
I think I missed to give a like for this masterpiece.
04.08.17 11:50:18 am
like I like it!
Up
vuenxx
User
Offline Off
Cool lua.
09.03.17 12:56:11 am
like I like it!
Up
thedarkgamerYT
User
Offline Off
add global elite pls
18.11.16 07:05:07 pm
like I like it!
Up
muxarus
User
Offline Off
oh my god! this is the best script even I seen! like. ooh that icons, that menus ooh my shirt, it's so awesome!
25.08.16 08:58:30 pm
like I like it!
Up
ithaline
User
Offline Off
Looks good, I saw on one server.
05.08.16 04:28:19 pm
like I like it!
Up
Anonymous_Rodion
User
Offline Off
Cool Lua Script
30.07.16 05:07:23 pm
like I like it!
Up
Hajt
User
Offline Off
You should add 2 new files with prefix stat_ and then change method of displaying fav. weapon and fav. pistol in statistics. Here is an example why.

http://i.hizliresim.com/jnkkPn.jpg
http://i.hizliresim.com/2ZXXmj.jpg
31.01.16 10:44:00 pm
like I like it!
Up
Jededias
User
Offline Off
The best
08.01.16 01:46:24 pm
Up
SQ
Moderator
Offline Off
Thanks. Unfortunately, I don't find any time to work on this.

The latest version is on [TAB] Version. It has challenges nearly finished, but not yet available.
06.01.16 04:50:29 pm
like I like it!
Up
Saave007
User
Offline Off
Achievements ? Already seems Steam, I like
26.12.15 06:14:24 pm
like I like it!
Up
tiky
User
Offline Off
Awesome
24.12.15 11:03:23 am
like I like it!
Up
FaZe_Fabian_MLG
BANNED
Offline Off
glory to arstotzka comrade, and nice work.
23.12.15 11:40:06 pm
like I like it!
Up
mrc
User
Offline Off
Waiting for the final version
20.12.15 05:03:04 pm
like I like it!
Up
Hador
User
Offline Off
Absolutely most awesome script ever.
20.12.15 07:56:09 am
Up
SQ
Moderator
Offline Off
That would mean I would need to do even more achievements.
Now it takes 72 achievements to unlock all 25 ranks. That takes about 16-20 hours. All I can do is to make most already existing achievements more difficult.
20.12.15 05:22:43 am
like I like it!
Up
LiaaM
User
Offline Off
This script looks pretty decent, I wish you add more ranks on the next updates.
To the start Previous 1 2 3 4 5 Next To the start