NorthstarMods icon indicating copy to clipboard operation
NorthstarMods copied to clipboard

Server name in Scoreboard Panel

Open H0L0theBard opened this issue 3 years ago • 10 comments

Adds the server name to the scoreboard replacing the gamemode description image

Additionally, this works fine with larger server names image

H0L0theBard avatar May 01 '22 12:05 H0L0theBard

Just leaving this as a draft if anyone has any suggestions to improve it

H0L0theBard avatar May 01 '22 12:05 H0L0theBard

Closes https://github.com/R2Northstar/Northstar/issues/271

GeckoEidechse avatar May 01 '22 13:05 GeckoEidechse

fa127aea89b048825bfd55b78b80fd7a9243f1ae is just the vanilla dump Squirrel scripts, right? ^^

GeckoEidechse avatar May 01 '22 13:05 GeckoEidechse

Yeah but with RuiSetString( Hud_GetRui( file.header.gametypeDesc ), "desc", GetConVarString( "ns_server_name" )) instead of the regular way to set gamemode description

H0L0theBard avatar May 01 '22 13:05 H0L0theBard

this seems more useful as a mod though unless you can somehow keep the gamemode description along with the server name.

Maybe make it alternate between the gamemode description, the server name/description somehow?

x3Karma avatar May 03 '22 12:05 x3Karma

I'll test out some stuff to see if I can keep the description and have the server name.

H0L0theBard avatar May 03 '22 12:05 H0L0theBard

Isn't ns_server_name used for server names ? Meaning with this if I join a server ns_server_name gets updated so it shows the correct server name. After that though if I start a listen server the name will be wrong.

Also if you plan on expanding the amount of information shown using the MATCH GOALS panel could be one way to display the info nicely. image

F1F7Y avatar May 03 '22 13:05 F1F7Y

you could probably just make ns_server_name FCVAR_REPLICATED so it gets updated on server join, though I'm not sure hiding the gamemode description on scoreboard is something we should do

BobTheBob9 avatar May 03 '22 13:05 BobTheBob9

Yeah that's fair Could potentially put this information in the MATCH GOALS panel like Fifty suggested

H0L0theBard avatar May 03 '22 13:05 H0L0theBard

@F1F7Y regarding ns_server_name, it will change back to the value set in the server autoexec when you leave the match. If you proceed to host a listen server after that, it will be correctly set to what is in the autoexec.

H0L0theBard avatar May 03 '22 14:05 H0L0theBard

@GeckoEidechse was this blocked?.

BigSpice avatar Oct 18 '22 21:10 BigSpice

I intend to do a rework of this and move the info away from the scoreboard panel so that it preserves the ability to see gamemode description.

H0L0theBard avatar Oct 18 '22 21:10 H0L0theBard

would it be okay to do just doing something like @Capt_Diqhedd 's implementation? https://discord.com/channels/920776187884732556/922663696273125387/1032054583691837450 I could edit it since i have a bit of free time.

https://user-images.githubusercontent.com/23240514/196578493-92a1ce28-cd6e-4be9-949a-7fd037ac39ea.mp4

BigSpice avatar Oct 19 '22 01:10 BigSpice

@GeckoEidechse was this blocked?.

https://github.com/R2Northstar/NorthstarMods/pull/335#issuecomment-1116078600

GeckoEidechse avatar Oct 19 '22 12:10 GeckoEidechse

me when 7 months old pr and still drafted

uniboi avatar Nov 10 '22 14:11 uniboi

(closed in favour of #536)

GeckoEidechse avatar Dec 05 '22 12:12 GeckoEidechse