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

Live View - Non-team games show 'Unknown Team' #44

Open
DNA-styx opened this issue Dec 20, 2024 · 11 comments
Open

Live View - Non-team games show 'Unknown Team' #44

DNA-styx opened this issue Dec 20, 2024 · 11 comments

Comments

@DNA-styx
Copy link
Owner

#41

@DNA-styx DNA-styx self-assigned this Dec 20, 2024
@DNA-styx DNA-styx changed the title Live View - None team games show 'Unknown Team' Live View - Non-team games show 'Unknown Team' Dec 20, 2024
@stive101
Copy link

stive101 commented Dec 21, 2024

Hello everyone,

The "Unknown" team appears when a player joins a team in-game that is not defined in the HLstatsX:CE game-specific settings.

To resolve this, join the "Unknown" team ingame and check the server log to see the team name. ( Playername joins "teamname"

Then, add this team name in the settings for specified game under "Teams" in the HLstatsX admin panel.

For example, teams like "Spectators" are often not defined in the settings.

EDIT:

as u can see in this screenshot for team fortress 2, there is no spectators defined, when a player now joins spectators, you would see that in the hlstatsx player overview as unknown team.

Screenshot 2024-12-21 143728

#41

@DNA-styx
Copy link
Owner Author

Interesting.

Do you know would the same apply to games without teams like HL DeathMatch? If it's set does everyone get put in the same team, eg., called DeathMatch

To fix this type of one: https://hlstatsx.basemod.net/hlstats.php?game=hl2mp&mode=servers&server_id=22

@stive101
Copy link

stive101 commented Dec 21, 2024

yes sure ,

should be,

the most used teamname for dm is "Unassigned"
but u just need to check, wich teamname u get ingame.

in the mod im testing that. the teamname for deathmacht is "Unassigned"

what means u need to set the Teamcode to Unassigned and give the value Teamname Deathmatch,
it got recognized as i want it in the deatmatch gamemode like this :

Screenshot 2024-12-21

and yes, the yellow color for the team Deathmacht was set by me, becouse the gray one im using for spectators, wich got recognized as #spectators in my game.

But that can be different for other games, so be sure, alwas check wich teamcode stands for your teams ingame

@DNA-styx
Copy link
Owner Author

DNA-styx commented Dec 21, 2024

AHH. Perfect. Sorry, yes, you said that in our first post.

@stylez1989 can you give that a try when you get back?

@stylez1989
Copy link

@DNA-styx

I'm back, Let me take a look at a few of your tags and get back to you.

@stylez1989
Copy link

AHH. Perfect. Sorry, yes, you said that in our first post.

@stylez1989 can you give that a try when you get back?

So i have set the team code to "Unassigned" and Teamname "Deathmatch" and applied the settings and restarted the Daemon, the only thing i saw different was showing the view as all in a grey color but still shows "unknown team"

@stylez1989
Copy link

@DNA-styx @stive101

I actually figured out the issue, for Half-Life Deathmatch, We don't have teams, They go as "models" What i noticed was the "Unknown team" would have 2,3 people with the same model under that list then someone with a different "model" will be by them self with "Unknown team" as another category.

I tested this by using a model "Santa" and had my self and 2 of my bots with the same model which then detected it and changed it to "Santa" for those players with that model name.

The problem is, people come in with custom models which I won't know the model number but show up as a generic model if us players didn't have that model.

Is there a way just to eliminate the "Team" code completely since it will not work this way? I believe that is what GameMe did for the Half-life servers and just added a section to remove the "teams" code.

image

@DNA-styx
Copy link
Owner Author

Interesting. I'd be surprised if someone's not come across this before. Have you checked the AlliedMod's HLStatsX forum?

Looks like 'Unknown Team' is set here

This loop seems to render the team table row, perhaps removing the loop will force all the players into one block.

But neither the above feels like a elegant fix.

@stylez1989
Copy link

Interesting. I'd be surprised if someone's not come across this before. Have you checked the AlliedMod's HLStatsX forum?

Looks like 'Unknown Team' is set here

This loop seems to render the team table row, perhaps removing the loop will force all the players into one block.

But neither the above feels like a elegant fix.

I made some changes, I was able to comment out some of the things, just couldn't figure out which one removes the blank space as Team total
image

@DNA-styx
Copy link
Owner Author

Perhaps reach out to these folks, their hl1dm stats seem to have just one team https://hlstatsx.hldm.org/hlstats.php?game=valve

@DNA-styx
Copy link
Owner Author

But to remove the entire bottom team line in one go.

Change this line to if (!$team_display_name)

It will then look like this

image

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

3 participants