API for match history

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

Post Reply
dwarftough
Posts: 484
Joined: August 4th, 2019, 5:27 pm

API for match history

Post by dwarftough »

Is there any documentation for the "Match History" button in 1.17 lobby? If not, which source code files to look to get a grasp of it? Also I've seen there was some advanced replay viewing system in development, what state is it in?
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: API for match history

Post by Pentarctagon »

The function for the query is here, starting from the request here.

I'm not sure what you mean by advanced replay viewing system though.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
dwarftough
Posts: 484
Joined: August 4th, 2019, 5:27 pm

Re: API for match history

Post by dwarftough »

Pentarctagon wrote: February 25th, 2024, 8:25 pm I'm not sure what you mean by advanced replay viewing system though.
Some guy was willing to write it, in Python, he had a nickname starting with "m" letter I think. I think there were even github issues on this
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: API for match history

Post by Pentarctagon »

Do you mean https://github.com/wesnoth/wesnoth/issues/7935 ? Otherwise I can't find anything particularly related by searching those terms on https://github.com/wesnoth/wesnoth/issues
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
dwarftough
Posts: 484
Joined: August 4th, 2019, 5:27 pm

Re: API for match history

Post by dwarftough »

Pentarctagon wrote: February 25th, 2024, 8:31 pm Do you mean https://github.com/wesnoth/wesnoth/issues/7935 ? Otherwise I can't find anything particularly related by searching those terms on https://github.com/wesnoth/wesnoth/issues
Yes, this one. I see it's up at https://replays.wesnoth.org/dashboard/ and has its own github repo in the wesnoth organization
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: API for match history

Post by Pentarctagon »

I'll update https://wiki.wesnoth.org/MultiplayerserverWML with the current API. Also, other data can potentially be added, both to the request and to the response. The main thing being the query can't take too long (more than a couple seconds) to complete.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply