Feature #155
ladder integration
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | user interface | |||
| Target version: | 2.0 improved functionality | |||
| Resolution: | wontfix | Platform: | All |
Description
I wrote an API now that should give you everything you need to integrate my new ladder system into SpringLobby:
https://meltrax.homeip.net/projects/other/spring/ladder/lobby/
History
Updated by MelTraX over 4 years ago
The URL still works but the real ladder now uses the old domain and therefore the API is at:
Updated by admin almost 4 years ago
This is an initial patch. I plan to finish it, but I am going to vacation, so it is good to be publicly available, so that I get some feedback. If one of the dev could skim it and tell me if there are better ways to do what I do please tell me. I choosed libcurl as I didn't find any reference that wx supports https and the ladder uses https.
Most of the points that are questionable have a TODO in comment.
The patch contains initial support for ladder systems. First what works:- Getting ladder list from server and the max player 'rule'.
- Setting in the host dialog the correct battle description, max number of players and password.
- Sending the results back (if the password wouldn't be hashed - this is set in ladder.cpp line 200)
- -lcurl is not added by default to the link command. I hacked the makefile and added LIBCURL=-lcurl after the autogen etc.
- The password is hashed, so a different password should be set in the settings. For test I used my password hardcoded in ladder.cpp
- All the rules of the ladder have to be imposed (min players, max players, mod, map, resources, etc)
- Error reporting
- Load information about players
Please tell me if you prefer other formatting, conventions etc. I tried to follow what I have seen but it is not that regular :). I will be able to reply for sure after 20 july (possible also in the meantime).
Updated by BrainDamage almost 4 years ago
i wrote a short page about preferred coding style for the project, i did some fixes to your code, simplified it a lot in the parsing part and changed many parts to use wxArrayString and wxString so it becomes unicode aware and it's 3 times more readble and easier to expand.
you can check it in the ladder branch of my repository
Updated by BrainDamage almost 4 years ago
forgot the link to the page: http://trac.springlobby.info/wiki/CodingStyle
Updated by admin almost 4 years ago
As promised, the work continued: the 0001-Made-the-connect-dialog-aware-of-branches.patch patch make the connect dialog aware of ladder. It does not yet verify the password or ladder host.
Also a new tab "register ladder" should be done.
PS: Maybe you can put this bug next to "ladder API" in page http://trac.springlobby.info/wiki/Hack
Updated by admin almost 4 years ago
Please delay the integration of the patch, I will make a public git repo tonight...
Updated by admin almost 4 years ago
Repo for my work:
git clone git://66.36.240.138/springlobby.git
Updated by admin over 3 years ago
The remote branch on which the work should be is : ladder_support.
If you do not see any difference please tell me...
Updated by koshi about 3 years ago
- Tracker changed from Bug to Feature
Updated by koshi almost 3 years ago
- Assignee deleted (
-)
Updated by koshi almost 2 years ago
- Status changed from New to Closed
- Resolution set to wontfix
- Reporter set to .
this has become obsolete with our own ladder system