fanhua_haitang Posted December 11, 2022 Share Posted December 11, 2022 (edited) ServerListingScreen.lua function JoinServer if server_listing.client_mods_disabled and not IsMigrating() and (server_listing.dedicated or not server_listing.owner) and AreAnyClientModsEnabled() then local client_mod_msg = PopupDialogScreen(STRINGS.UI.SERVERLISTINGSCREEN.CLIENT_MODS_DISABLED_TITLE, STRINGS.UI.SERVERLISTINGSCREEN.CLIENT_MODS_DISABLED_BODY, {{ text=STRINGS.UI.SERVERLISTINGSCREEN.CONTINUE, cb = function() TheFrontEnd:PopScreen() after_client_mod_message() end }}) TheFrontEnd:PushScreen( client_mod_msg ) else after_client_mod_message() end Edited December 11, 2022 by fanhua_haitang Link to comment https://forums.kleientertainment.com/forums/topic/145164-how-can-i-create-a-server-that-serverlistingscreen-will-show-it-client-mods-disabled/ Share on other sites More sharing options...
fanhua_haitang Posted December 11, 2022 Author Share Posted December 11, 2022 Networking.lua function DownloadMods if server_listing.client_mods_disabled then --temp disable all the client enabled mods for _,mod_name in pairs(KnownModIndex:GetClientModNames()) do print("Temp disabling client mod", mod_name) KnownModIndex:TempDisable(mod_name) end end Link to comment https://forums.kleientertainment.com/forums/topic/145164-how-can-i-create-a-server-that-serverlistingscreen-will-show-it-client-mods-disabled/#findComment-1614642 Share on other sites More sharing options...
fanhua_haitang Posted December 11, 2022 Author Share Posted December 11, 2022 I do a mod Steam 创意工坊::重载世界,游戏内主菜单[客户端] (steamcommunity.com) And now I want to add a ability to make player create a actual client_mods_disabled server. Link to comment https://forums.kleientertainment.com/forums/topic/145164-how-can-i-create-a-server-that-serverlistingscreen-will-show-it-client-mods-disabled/#findComment-1614643 Share on other sites More sharing options...
fanhua_haitang Posted December 11, 2022 Author Share Posted December 11, 2022 (edited) whether can I use a arg in it to enable server's client_mods_disabled or ? TheSystemService:StartDedicatedServers(self.save_slot, is_multi_level, cluster_info, encode_user_path, use_legacy_session_path, save_to_cloud, use_zip_format) Edited December 11, 2022 by fanhua_haitang Link to comment https://forums.kleientertainment.com/forums/topic/145164-how-can-i-create-a-server-that-serverlistingscreen-will-show-it-client-mods-disabled/#findComment-1614644 Share on other sites More sharing options...
fanhua_haitang Posted December 11, 2022 Author Share Posted December 11, 2022 ok I Know. Link to comment https://forums.kleientertainment.com/forums/topic/145164-how-can-i-create-a-server-that-serverlistingscreen-will-show-it-client-mods-disabled/#findComment-1614649 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now