Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battebit Remastered Support #530

Open
JesseUCAVed opened this issue Feb 1, 2024 · 20 comments
Open

Battebit Remastered Support #530

JesseUCAVed opened this issue Feb 1, 2024 · 20 comments

Comments

@JesseUCAVed
Copy link

It would be great if the game Battlebit Remastered was added to the supported games list.
I currently have to use the BattleMetrics API for pulling info, which isn't ideal when this fantastic library/plugin exists. :)

@podrivo
Copy link
Contributor

podrivo commented Feb 2, 2024

Hey @JesseUCAVed!

Do you have an IP:PORT so we can test?
I wasn't able to find server IPs on BattleMetrics.

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 2, 2024 via email

@podrivo
Copy link
Contributor

podrivo commented Feb 2, 2024

Thank you!

I've tried running the attempt protocol tool in these IPs and PORTs, but it failed on all protocols.
We might need more info about how to query BatteBit Remastered servers.

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 3, 2024 via email

@podrivo
Copy link
Contributor

podrivo commented Feb 5, 2024

Tested with the IP 104.128.50.35 on ports 29295 and 29993, but no luck... :(

Found this other server list, but no IPs again. https://bbspy.net/
Server info might be via RCON.

@podrivo
Copy link
Contributor

podrivo commented Feb 5, 2024

Found a public API that queries all servers: https://publicapi.battlebit.cloud/Servers/GetServerList
Again, no IPs on this list.

@JesseUCAVed Can you find your server in the link above?

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 5, 2024 via email

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 5, 2024 via email

@podrivo
Copy link
Contributor

podrivo commented Feb 5, 2024

Yeah, server info might be coming from the public API.
I haven't checked everything, but I bet it's the same info in BattleMetrics, this server list and the public API.

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 5, 2024 via email

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 5, 2024 via email

@podrivo
Copy link
Contributor

podrivo commented Feb 5, 2024

Nice! So we have a public API that queries all servers: https://publicapi.battlebit.cloud/Servers/GetServerList
But no IP or PORT to have a direct connection to a specific server.

I'm not sure how to implement this, but maybe instead of an IP:PORT we could pass a NAME that will filter the object got from the public API?

Something like:

const url = 'https://publicapi.battlebit.cloud/Servers/GetServerList'
const searchName = 'Frontline'

fetch(url)
  .then(response => response.json())
  .then(data => {
    const filteredResults = data.filter(item => item.Name.includes(searchName))
    console.log(filteredResults)
  })
  .catch(error => console.error('Error fetching data:', error))
[
    {
        "Name": "#10 [E4GL] | Frontline | discord.gg/E4GL",
        "Map": "Wakistan",
        "MapSize": "Ultra",
        "Gamemode": "FRONTLINE",
        "Region": "Europe_Central",
        "Players": 0,
        "QueuePlayers": 0,
        "MaxPlayers": 254,
        "Hz": 120,
        "DayNight": "Day",
        "IsOfficial": false,
        "HasPassword": false,
        "AntiCheat": "EAC",
        "Build": "Production 2.2.5 Hotfix"
    },
    {
        "Name": " [01][Clã BR] SemChorar.com [Frontline 24/7]",
        "Map": "SandySunset",
        "MapSize": "Ultra",
        "Gamemode": "FRONTLINE",
        "Region": "Brazil_Central",
        "Players": 120,
        "QueuePlayers": 2,
        "MaxPlayers": 254,
        "Hz": 144,
        "DayNight": "Day",
        "IsOfficial": false,
        "HasPassword": false,
        "AntiCheat": "EAC",
        "Build": "Production 2.2.5 Hotfix"
    }
]

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 5, 2024 via email

@livingflore
Copy link

livingflore commented Feb 11, 2024

Nice! So we have a public API that queries all servers: https://publicapi.battlebit.cloud/Servers/GetServerList But no IP or PORT to have a direct connection to a specific server.

I'm not sure how to implement this, but maybe instead of an IP:PORT we could pass a NAME that will filter the object got from the public API?

Something like:
...

hi, BBR staff here
we do not have any query for servers except this public method unfortunately
i will consult with Oki (lead dev) if we could add some kind of public server identifier to make it easier, but can't provide exact ETA of it (likely after upcoming update)

@JesseUCAVed
Copy link
Author

JesseUCAVed commented Feb 11, 2024 via email

@podrivo
Copy link
Contributor

podrivo commented Feb 13, 2024

Hey @livingflore. Thanks for joining the conversation! (:

Best bet is to just add an ip and port identifier to the public json. :)

Yes, this might do the trick! 👍

@CosminPerRam
Copy link
Member

@livingflore
Thank you for considering this, very happy to see a game dev being involved around here (:

Please consider adding query capabilities to your dedicated servers, although services (like the one you provide) are great, they dont guarantee that it will stay up forever, whereas dedicated servers will (as in the sens that you query them directly).

As I see that BBR is made in Unity, please consider integrating Valve's A2S Protocol, as its very widely used and we already provide support for it, although its quite old, it does its job greatly.
I know that Unity tries to encourage SQP, we dont have it implemented yet but we are looking into it.

@xCausxn
Copy link
Contributor

xCausxn commented Jul 8, 2024

They could also look to add a one way hash of the ip:port, should keep it somewhat secure while also allowing easy querying.

@CosminPerRam
Copy link
Member

Hey @livingflore, any updates?

@livingflore
Copy link

Hey @livingflore, any updates?

unfortunately not, Oki is too busy with the update, but i'm def keeping this in my list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants