#[1.3.5] XProxy

1 messages · Page 1 of 1 (latest)

hazy whale
#

Sounds interesting, but what is the purpose of the plugin? Is the load distributed between the servers?

last lichen
#

if you have multiple servers in most cases its worth to have one server on list with idk 150 slots and just lobby which will allow you to idk control players playing on these servers very easily

#

server dies then you will be connected to lobby

#

admins can just force players to connec to some sub server

verbal hedge
#

Can you link the plugin?

#

i have an idea for the virtual lobby, i want to achive something and wanting to see how you made it

lime matrix
pseudo forge
#

I don't know is there an example video how it works and so on and shows what it looks like

verbal hedge
pseudo forge
pseudo forge
verbal hedge
pseudo forge
last lichen
pseudo forge
last lichen
last lichen
#

[1.0.4] XProxy

last lichen
#

[1.1.5] XProxy

verbal hedge
#

Because some reference for the mirror packet id are there but i don’t know if it is for the tunneling or for that

last lichen
#

Virtual server means solo instance no other playera

pseudo forge
last lichen
#

Xproxy server

verbal hedge
last lichen
#

[1.3.5] XProxy

#
  • Queue now makes sure player in queue joins server and amount of time for how long queue slot is valid can be changed in config ( default 15 seconds )
plush ether
#

Dynamically from one sl server

last lichen
#

but normally you need to recreate entire logic needed for 1v1 which is shooting etc calculaton of hits

plush ether
last lichen
#

its possible to make sl server which will show only 2 players while 1v1

plush ether
#

do you know what to patch

last lichen
#

best way will be patching what server spawns for client soo you can just don't spawn some players for x player

last lichen
#

you can try doing some stuff here but idk, never tried

#

NetworkServer

#

normally you want to check if thats player Prefab

#

and then get referencehub from that gameobject if thats valid check what player is that

plush ether
last lichen
#

yea

#

because player is never created

#

I will create maybe plugin for this stuff which you want like ability to see only specific players on list + ingame

plush ether
plush ether
#

@last lichenso like this```csharp
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using JadeLib.Features.Abstract;
using Mirror;

namespace JadeLib.Features.PlayerVisibility;

public class PlayerVisibility
{
private static Dictionary<NetworkIdentity, Func<NetworkConnection, bool>> predicates = [];

/// <summary>
/// Gets a <see cref="ReadOnlyDictionary{TKey,TValue}"/> of NetworkIdentities and their Predicates.
/// </summary>
public static ReadOnlyDictionary<NetworkIdentity, Func<NetworkConnection, bool>> Predicates => new(predicates);

/// <summary>
/// Initializes a new instance of the <see cref="PlayerVisibility"/> class.
/// </summary>
/// <param name="identity">The identity of the player you want to hide.</param>
/// <param name="predicate">The predicate for network connections returning true to hide the <paramref name="identity"/> from.</param>
public PlayerVisibility(NetworkIdentity identity, Func<NetworkConnection, bool> predicate)
{
    predicates.Add(identity, predicate);
    foreach (var networkConnectionToClient in NetworkServer.connectionsCopy
                 .Where(e => e.identity.observers.Values.Contains(identity.connectionToClient))
                 .Select(e => e.identity.connectionToServer))
    {
        NetworkServer.HideForConnection(identity, networkConnectionToClient);
    }
}

}```

using HarmonyLib;
using Mirror;

namespace JadeLib.Features.PlayerVisibility;

[HarmonyPatch(typeof(NetworkServer), nameof(NetworkServer.ShowForConnection))]
public static class HidePlayerPatch
{
    [HarmonyPrefix]
    private static bool Prefix(ref NetworkIdentity identity, ref NetworkConnection conn)
    {
        if (!PlayerVisibility.Predicates.TryGetValue(identity, out var value))
        {
            return true;
        }

        return !value(conn);
    }
}```
last lichen
#

maybe should work

grand galleon
#

does everything have to be on the same ip, or does it support servers on other hosts

grand galleon
#

(nvm it works pog)

pseudo forge
#

I think it's a shame that you can't set it up so that you can make automatic server join

last lichen
#

Wdym

#

Like what

pseudo forge
pseudo forge
plush ether
#

@last lichenthe name sometimes just switches back to example proxy server, is that an issue?

last lichen
#

hmm any more info when this happens?

#

on start or during some time

#

or did you enable maintenance mode

#

theres seperate name on end maintenanceServerName

#

@plush ether

plush ether