Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DLL CHANGES (MOD FRAMEWORK):
- SteamworksLobbyUserList, 'int num = validLobbyExists ? 4 : 0;' -> 'int num = validLobbyExists ? 32 : 0;'
- SteamworksLobbyManager, 'SteamworksLobbyManager.client.Lobby.Create(SteamworksLobbyManager.preferredLobbyType, 4);' -> 'SteamworksLobbyManager.client.Lobby.Create(SteamworksLobbyManager.preferredLobbyType, 32);'
- 'public readonly int totalMaxPlayers = 4;' -> 'public readonly int totalMaxPlayers = 32;'
- 'int num3 = TextSerialization.TryParseInvariant(SteamworksLobbyManager.client.Lobby.GetMemberData(num2, "player_count"), out num3) ? Math.Min(Math.Max(1, num3), 4) : 1;' -> 'int num3 = TextSerialization.TryParseInvariant(SteamworksLobbyManager.client.Lobby.GetMemberData(num2, "player_count"), out num3) ? Math.Min(Math.Max(1, num3), 32) : 1;'
- 'SteamworksLobbyManager.client.Lobby.CurrentLobbyData.SetData("total_max_players", TextSerialization.ToStringInvariant(4));' -> 'SteamworksLobbyManager.client.Lobby.CurrentLobbyData.SetData("total_max_players", TextSerialization.ToStringInvariant(32));'
- RoR2Application, 'public const int maxPlayers = 4;' -> 'public const int maxPlayers = 32;'
- 'public const int maxLocalPlayers = 4;' -> 'public const int maxLocalPlayers = 32;'
- 'public const int hardMaxPlayers = 16;' -> 'public const int hardMaxPlayers = 32;'
- in Awake() add 'BaseFramework.Begin();' before 'this.loaded = true;'
- (you might not need this one)
- Facepunch.Steamworks.Server, 'this.native.gameServer.SetMaxPlayerCount(4);' -> 'this.native.gameServer.SetMaxPlayerCount(32);'
- 'this._maxplayers = 4;' -> 'this._maxplayers = 32;'
- RoR2.SurvivorIndex
- 'Count,' -> 'Count, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16'
- RoR2.SurvivorCatalog
- after 'SurvivorCatalog.RegisterSurvivor( ... )', add 'BaseFramework.addSurvivors();'
- 'private static void RegisterSurvivor(SurvivorIndex survivorIndex, SurvivorDef survivorDef)' -> 'public static void RegisterSurvivor(SurvivorIndex survivorIndex, SurvivorDef survivorDef)'
- 'if (survivorIndex < SurvivorIndex.Commando || survivorIndex > SurvivorIndex._1)' -> 'if (survivorIndex < SurvivorIndex.Commando || survivorIndex > SurvivorIndex.Count)'
- (need to repeat the above twice, there's two instances)
- 'SurvivorCatalog.survivorMaxCount = 10;' -> 'SurvivorCatalog.survivorMaxCount = 23;'
- 'SurvivorCatalog.survivorDefs = new SurvivorDef[10];' -> 'SurvivorCatalog.survivorDefs = new SurvivorDef[23];'
- also add _1, _2 etc. to idealSurvivorOrder
- after 'while (enumerator.Current)', replace with
- '
- SurvivorDef survivor = enumerator.Current;
- ViewablesCatalog.Node survivorEntryNode = new ViewablesCatalog.Node(survivor.ToString(), false, node);
- survivorEntryNode.shouldShowUnviewed = ((UserProfile userProfile) => !userProfile.HasViewedViewable(survivorEntryNode.fullName) && userProfile.HasSurvivorUnlocked(survivor.survivorIndex) && !string.IsNullOrEmpty(survivor.unlockableName));
- '
- I think these are all of the changes. If it doesn't work, please tell me ASAP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement