Custom OpenStats

Suggestions will be moved here once processed.

Moderator: Oversight Staff

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Custom OpenStats

Postby cyberpunk » Tue Jun 05, 2012 8:39 pm

Hi, I'd like to know if the Enterprise has the interest to create stats/rank wins and loses for custom maps.

Castle Fight and Civilization Wars is using the w3mmd system, it would be awesome.
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Tue Jun 05, 2012 9:43 pm

Yes, I coded an ELO calculation for tree tag and battle ships but never got around to using it (didn't seem to be in high demand; and we only have like 10 games played for those).
But civilization wars and especially castle fight are more popular, so I think this would work better. I'll look into how their W3MMD system works and adapting my ELO calculator to work with them too. Did you develop one of the maps by any chance?

Thanks for the suggestion!

Edit: also, if you ever looked at our tree tag, vampirism speed (which actually doesn't work so well), and battleships, we actually have W3MMD implemented on the map side for them. You can also type !ts, !bs, and !vs to check your stats I think; but because the ELO thing isn't working this is probably slow and of course doesn't have ELO score.
Edit2: oh, although I might add a score for it, I'm not sure if we'll have a game ranking site like the OpenStats page we have for these custom games; that takes more time and we don't have enough administrators right now.
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Tue Jun 05, 2012 10:33 pm

uakf.b wrote:But civilization wars and especially castle fight are more popular, so I think this would work better. I'll look into how their W3MMD system works and adapting my ELO calculator to work with them too. Did you develop one of the maps by any chance?
Yes, I'm helping the mapmakers from castlefight and about civilization, XGDeath3 told me he didn't change the code implemented by TerraBull.

All you have to do is create the old tables (w3mmdplayers and w3mmdvars) plus edit the mapconfig

map_type = w3mmd
map_matchmakingcategory =
map_statsw3mmdcategory = cf

CREATE TABLE w3mmdplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
category VARCHAR(25) NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
name VARCHAR(15) NOT NULL,
flag VARCHAR(32) NOT NULL,
leaver INT NOT NULL,
practicing INT NOT NULL
);

CREATE TABLE w3mmdvars (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
varname VARCHAR(25) NOT NULL,
value_int INT DEFAULT NULL,
value_real REAL DEFAULT NULL,
value_string VARCHAR(100) DEFAULT NULL
);


uakf.b wrote:Edit: also, if you ever looked at our tree tag, vampirism speed
Not yet, I'll try it soon, didn't know about these commands !ts, !bs, and !vs :3
uakf.b wrote:Edit2: oh, although I might add a score for it, I'm not sure if we'll have a game ranking site like the OpenStats page we have for these custom games; that takes more time and we don't have enough administrators right now.
Yes, it will take some time however think about the final result.
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Tue Jun 05, 2012 10:54 pm

Yes, I know about the tables and map configuration file settings (although I'm probably not going to enable match making), but what are the varnames and value types that the two maps will generate?
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Tue Jun 05, 2012 11:15 pm

I'm not sure bout civi, but cf will send varnames like winner and loser to w3mmdplayer.
And it will send RoundsWon / RoundsLost to w3mmdvar
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Wed Jun 06, 2012 6:51 am

Forgot to say, you can include Legion TD Mega.
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Thu Jun 07, 2012 4:24 am

Legion TD Mega uses W3MMD but doesn't seem to record anything in the database.
Edit: for civilization wars, castle fight, tree tag, battleships, and elite snipers (ES is not currently autohosted), stats are currently being calculated.
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Thu Jun 07, 2012 1:07 pm

uakf.b wrote:Legion TD Mega uses W3MMD but doesn't seem to record anything in the database.
That's terrible! o.O The map description says about w3mmd
Image
I made a test, unfortunately got the same result, I'll contact them
[Thu Jun 07 09:51:31 2012] [GAME: LEGION TD MEGA #1] saving player/stats data to database
[Thu Jun 07 09:51:31 2012] [STATSW3MMD: LEGION TD MEGA #1] received 6/6 value/check messages
[Thu Jun 07 09:51:31 2012] [STATSW3MMD: LEGION TD MEGA #1] recorded flags [] for player [trycatch] with PID [0]
[Thu Jun 07 09:51:31 2012] [STATSW3MMD: LEGION TD MEGA #1] recorded flags [] for player [de.nay] with PID [4]
uakf.b wrote:Edit: for civilization wars, castle fight, tree tag, battleships, and elite snipers (ES is not currently autohosted), stats are currently being calculated.
really cool, needs a command to check the stats
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Thu Jun 07, 2012 3:20 pm

Well of course, I've added the commands to the source but haven't updated yet; there's some other updates that I need to confirm work properly first.
dWFrZi5i -- 'cause I'm cool like Agreements

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Sat Jun 09, 2012 11:12 pm

All right, calculation is up to date with the current game and continuing for new games. I've added the commands, and there'll be a post in the News and Updates section soon.
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Sat Jun 09, 2012 11:28 pm

Very nice, I'm trying to use the !load, to play 2v2, 1v1 games, it is possible?
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Sat Jun 09, 2012 11:35 pm

Personally hosted games will not count towards statistics (the same goes for DotA); so if you want to use our bots to host a practice game, then you don't have to worry about your stats.
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Sun Jun 10, 2012 12:10 am

As far as I know, players would use the command !pub, so it won't load mapcfg "the w3mmd"
To me and to my friends, we'd like to use the !load, because our favorite games are 2v2 or 1v1. :3
Thanks anyways
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Custom OpenStats

Postby uakf.b » Sun Jun 10, 2012 1:00 am

You can always use !map or !load to select a map; stats are not enabled in privately hosted games to prevent manipulation, but you can still host the game itself, which is perfect for playing with friends.
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
cyberpunk
Protector of Nature
Posts: 4866
Joined: Tue Jun 05, 2012 5:59 am
Location: Em suas asas borboleta amarela.

Re: Custom OpenStats

Postby cyberpunk » Sun Jun 10, 2012 5:47 am

uakf.b wrote:to prevent manipulation
I'm offended! :lol:
Good job, is very useful. If may I suggest, please include these commands to bnet.cpp.
Edit: Nah, it's perfect.
Image
[spoiler=Links to find ur ban]Link to banlist
Link to ENT Link[/spoiler]
I don't answer private messages that should be public questions. Use the forum


Return to “Suggestion Archive”

Who is online

Users browsing this forum: No registered users and 161 guests