Skip to content

Commit

Permalink
added proxy browser config option and fixed empty team names in list …
Browse files Browse the repository at this point in the history
…command
  • Loading branch information
bierdosenhalter committed Nov 7, 2024
1 parent 6b6815e commit 9179a11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Client/Commands/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public override string Run(IClient handler, string command, Dictionary<string, o
stringManager.GetString((uint)nameId, out var name, networkManager);
name = EntityHelper.RemoveTitleAndShardFromName(name);

if (name.Trim().Length == 0)
continue;

var posId = databaseManager.GetProp($"SERVER:GROUP:{gm}:POS");

var y = (int)(posId & uint.MaxValue) / 1000f;
Expand Down
8 changes: 8 additions & 0 deletions Client/Config/ClientConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ private static void LoadSingleSetting(string argName, string argValue)
UseProxy = bool.Parse(argValue);
break;

case "browserproxyurl":
BrowserProxyUrl = argValue;
break;

case "browserproxyenabled":
BrowserProxyEnabled = bool.Parse(argValue);
break;

//case "logfile":
// LogFile = argValue;
// break;
Expand Down
4 changes: 3 additions & 1 deletion Client/Resources/client.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ LogToFile = false;
UseDatabase = false;
DecodeVisualProperties = false;
UseInventory = false;
TranslateChat = true;
TranslateChat = true;
BrowserProxyUrl = "http://localhost:8000/";
BrowserProxyEnabled = false;
3 changes: 2 additions & 1 deletion Client/RyzomClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,8 @@ public IEnumerable<string> AutoComplete(string behindCursor)
if (entity == null || (entity.GetEntityType() != EntityType.Player && entity.GetEntityType() != EntityType.User) || !entity.GetDisplayName().ToLower().StartsWith(args.Last().ToLower()))
continue;

ret.Add(entity.GetDisplayName());
if (entity.GetDisplayName().Trim().Length > 0)
ret.Add(entity.GetDisplayName());
}

// player names in team
Expand Down

0 comments on commit 9179a11

Please sign in to comment.