Project-Diablo-2 / BH

A modified version of slashdiablo's BH for Project Diablo 2
GNU Affero General Public License v3.0
24 stars 20 forks source link

Add the "gs:" option to filter strings in the lobby #29

Closed GenjisRevenge closed 3 months ago

GenjisRevenge commented 10 months ago

This feature allows the player to select game servers in the lobby with filter strings like gs:1,2 baal.

I haven't tested this change because the README.md of this repo advises against it:

Any debug or changed version will only work in Single Player. Do not enter multiplayer with a modified BH

The bulk of the logic (the ParsedFilterString class) was implemented in a small standalone project where I tested it manually so that shouldn't be extremely buggy. You have to make sure that the untested changes (in the GameFilter class) work as intended when the game goes online and enters the lobby.

croboy commented 10 months ago

Wow this is awesome

Canite commented 8 months ago

I'll look into this soon and check it out, haven't had time to go through it.

fergushev commented 4 months ago

Hey @GenjisRevenge, I don't know if you've been keeping up with the dev streams but we've added difficulty filter buttons to the join game screen. As part of this, the underlying behavior of the "GS" text in the game list has also changed. What this means for this PR:

If you have any questions please let me know. Happy to help!

GenjisRevenge commented 4 months ago

Hi @fergushev

I updated the branch: removed the difficulty filter and getting the game server number from the new location. However, I didn't try to log in with these modifications to the live server. You have to test run it before deployment.

fergushev commented 3 months ago

@GenjisRevenge Looks good to me. Thanks for the update!