Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Maintenance & Feedback » JJ2+ Issue Tracker

Feature Request Bots and Players Count

Necrolyte

JCF Member

Joined: Jan 1970

Posts: 13

Necrolyte has disabled reputation

Feb 10, 2022, 07:08 AM
Necrolyte is offline
Reply With Quote
Lightbulb Bots and Players Count

Can we have a packet that is sent by bots to inform the server that the client is a bot and not a regular JJ2 client?

One use of this is to exclude bots from player count in server list to know actual players count in a server.

You see servers with player count of 4/32, 2/32, etc all the time while they are actually empty of players.
Necrolyte

JCF Member

Joined: Jan 1970

Posts: 13

Necrolyte has disabled reputation

Feb 10, 2022, 07:24 AM
Necrolyte is offline
Reply With Quote
image

https://i.imgur.com/01rs1gN.png
Stijn Stijn's Avatar

Administrator

Joined: Mar 2001

Posts: 6,965

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Feb 10, 2022, 03:01 PM
Stijn is offline
Reply With Quote
This is a good idea, though it will not be trivial to implement (but also not impossible)
ShakerNL ShakerNL's Avatar

JCF Member

Joined: May 2009

Posts: 115

ShakerNL is an asset to this forumShakerNL is an asset to this forum

Feb 17, 2022, 03:43 AM
ShakerNL is offline
Reply With Quote
There is an option in the sgip config to hide certain player names from the list. I was experimenting with it a week ago, but decided to revert it back.
__________________
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,046

Violet CLM has disabled reputation

Mar 2, 2023, 01:56 PM
Violet CLM is offline
Reply With Quote
Filtering by player name is probably a safe alternative. If servers ignored players whose names start with "Bot," and ignored spectators, those two changes should give us accurate player counts.
__________________
Necrolyte

JCF Member

Joined: Jan 1970

Posts: 13

Necrolyte has disabled reputation

Mar 5, 2023, 12:44 AM
Necrolyte is offline
Reply With Quote
Quote:
Originally Posted by Violet CLM View Post
Filtering by player name is probably a safe alternative. If servers ignored players whose names start with "Bot," and ignored spectators, those two changes should give us accurate player counts.
This would do the job too if server owners collaborated, even though what I suggested is more convenient and more accurate IMO as it would only require us bot creators (Cranky and me) to modify our bots and remove setup complications for server owners.

About ignoring spectators, I'm personally not for that. If there's some ODT tornament with 20 participants, server will show 2/14 insead of 20/32 on the menu?

Actually your idea to ignore spectators gave me an idea, why don't we have 2 swappable player counts on the menu? For example let's say we have a server with 20 players, and only 2 players are playing, while the other 18 are spectating the match, we can have the server list menu showing [20/32] ny default, and if you hold down tab key, the player count of that server will show as [2/14], and if you release the tab key, it will go back to [20/32]. Maybe we can accomplish this by adding both player counts somewhere to the query response packet (0x06), like putting it before the data Stijn added on v5.5.

These are just my personal opinons, the name alternative would do the job even though there are better approaches.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:16 PM.