- Joined
- Mar 5, 2017
- Messages
- 4,166
I want to make a mod that will edit a lua script in the game's files that limits how many players can join a multiplayer game:
- local MAX_EVER_PLAYERS : number = 12;
-Fetch g_currentMaxPlayers because it might be stale due to loading a save.
g_currentMaxPlayers = math.min(MapConfiguration.GetMaxMajorPlayers(), 12);
It's in base/assets/ui/frontend/multiplayer/stagingroom.lua - I want to change those two 12's to a higher number (say 30).
I have no clue how to make 'update' actions in lua, and I don't even know what I'd set for an action in the SDK...Any help?
- local MAX_EVER_PLAYERS : number = 12;
-Fetch g_currentMaxPlayers because it might be stale due to loading a save.
g_currentMaxPlayers = math.min(MapConfiguration.GetMaxMajorPlayers(), 12);
It's in base/assets/ui/frontend/multiplayer/stagingroom.lua - I want to change those two 12's to a higher number (say 30).
I have no clue how to make 'update' actions in lua, and I don't even know what I'd set for an action in the SDK...Any help?