Advertisement
Guest User

Untitled

a guest
Apr 1st, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. DLL CHANGES (MOD FRAMEWORK):
  2. SteamworksLobbyUserList, 'int num = validLobbyExists ? 4 : 0;' -> 'int num = validLobbyExists ? 32 : 0;'
  3.  
  4. SteamworksLobbyManager, 'SteamworksLobbyManager.client.Lobby.Create(SteamworksLobbyManager.preferredLobbyType, 4);' -> 'SteamworksLobbyManager.client.Lobby.Create(SteamworksLobbyManager.preferredLobbyType, 32);'
  5. 'public readonly int totalMaxPlayers = 4;' -> 'public readonly int totalMaxPlayers = 32;'
  6. '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;'
  7. 'SteamworksLobbyManager.client.Lobby.CurrentLobbyData.SetData("total_max_players", TextSerialization.ToStringInvariant(4));' -> 'SteamworksLobbyManager.client.Lobby.CurrentLobbyData.SetData("total_max_players", TextSerialization.ToStringInvariant(32));'
  8.  
  9. RoR2Application, 'public const int maxPlayers = 4;' -> 'public const int maxPlayers = 32;'
  10. 'public const int maxLocalPlayers = 4;' -> 'public const int maxLocalPlayers = 32;'
  11. 'public const int hardMaxPlayers = 16;' -> 'public const int hardMaxPlayers = 32;'
  12. in Awake() add 'BaseFramework.Begin();' before 'this.loaded = true;'
  13.  
  14. (you might not need this one)
  15. Facepunch.Steamworks.Server, 'this.native.gameServer.SetMaxPlayerCount(4);' -> 'this.native.gameServer.SetMaxPlayerCount(32);'
  16. 'this._maxplayers = 4;' -> 'this._maxplayers = 32;'
  17.  
  18. RoR2.SurvivorIndex
  19. 'Count,' -> 'Count, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16'
  20.  
  21. RoR2.SurvivorCatalog
  22. after 'SurvivorCatalog.RegisterSurvivor( ... )', add 'BaseFramework.addSurvivors();'
  23. 'private static void RegisterSurvivor(SurvivorIndex survivorIndex, SurvivorDef survivorDef)' -> 'public static void RegisterSurvivor(SurvivorIndex survivorIndex, SurvivorDef survivorDef)'
  24. 'if (survivorIndex < SurvivorIndex.Commando || survivorIndex > SurvivorIndex._1)' -> 'if (survivorIndex < SurvivorIndex.Commando || survivorIndex > SurvivorIndex.Count)'
  25. (need to repeat the above twice, there's two instances)
  26. 'SurvivorCatalog.survivorMaxCount = 10;' -> 'SurvivorCatalog.survivorMaxCount = 23;'
  27. 'SurvivorCatalog.survivorDefs = new SurvivorDef[10];' -> 'SurvivorCatalog.survivorDefs = new SurvivorDef[23];'
  28. also add _1, _2 etc. to idealSurvivorOrder
  29. after 'while (enumerator.Current)', replace with
  30. '
  31. SurvivorDef survivor = enumerator.Current;
  32. ViewablesCatalog.Node survivorEntryNode = new ViewablesCatalog.Node(survivor.ToString(), false, node);
  33. survivorEntryNode.shouldShowUnviewed = ((UserProfile userProfile) => !userProfile.HasViewedViewable(survivorEntryNode.fullName) && userProfile.HasSurvivorUnlocked(survivor.survivorIndex) && !string.IsNullOrEmpty(survivor.unlockableName));
  34. '
  35.  
  36. 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