From 961a80d94ca9eb67a5ff2f4901a9482d540754d5 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 17 Jun 2023 10:36:44 -0400 Subject: [PATCH 01/25] Fix infinite loading screen --- .../mod/scripts/vscripts/ui/_menus.nut | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index c83381fdb..b4c50029f 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -178,6 +178,20 @@ void function UICodeCallback_ToggleInGameMenu() } } +void function CancelLevelLoadingInfinite() +{ + //Singleplayer "Continue" counts as finished loading and shouldn't be affected + print("CancelLevelLoadingInfinite has Initialized") + wait 30 + if (uiGlobal.isLoading == true) + { + printt("CancelLevelLoadingInfinite disconnected because loading took too long") + UICodeCallback_LevelLoadingFinished( true ) + Disconnect() + } + return +} + // Return true to show load screen, false to not show load screen. // levelname can be "" because the level to load isn't always known when the load screen starts bool function UICodeCallback_LevelLoadingStarted( string levelname ) @@ -204,7 +218,7 @@ bool function UICodeCallback_LevelLoadingStarted( string levelname ) if ( !Console_IsSignedIn() ) return false #endif - + thread CancelLevelLoadingInfinite() return true } From a91a22ce1e4e924f4d88840678906000f6023d2f Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 17 Jun 2023 11:20:56 -0400 Subject: [PATCH 02/25] Update Northstar.Client/mod/scripts/vscripts/ui/_menus.nut Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 1 - 1 file changed, 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index b4c50029f..dca212bab 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -189,7 +189,6 @@ void function CancelLevelLoadingInfinite() UICodeCallback_LevelLoadingFinished( true ) Disconnect() } - return } // Return true to show load screen, false to not show load screen. From a94610d38b71b2fad666c518575006866aac72b9 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 17 Jun 2023 11:22:16 -0400 Subject: [PATCH 03/25] Update _menus.nut --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index dca212bab..7de2e13b1 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -178,14 +178,14 @@ void function UICodeCallback_ToggleInGameMenu() } } -void function CancelLevelLoadingInfinite() +void function CancelLevelLoading() { //Singleplayer "Continue" counts as finished loading and shouldn't be affected - print("CancelLevelLoadingInfinite has Initialized") + print("CancelLevelLoading has Initialized") wait 30 if (uiGlobal.isLoading == true) { - printt("CancelLevelLoadingInfinite disconnected because loading took too long") + printt("CancelLevelLoading disconnected because loading took too long") UICodeCallback_LevelLoadingFinished( true ) Disconnect() } @@ -217,7 +217,7 @@ bool function UICodeCallback_LevelLoadingStarted( string levelname ) if ( !Console_IsSignedIn() ) return false #endif - thread CancelLevelLoadingInfinite() + thread CancelLevelLoading() return true } From da65be23024055e4aed7bde971c803a15960af91 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 17 Jun 2023 11:38:17 -0400 Subject: [PATCH 04/25] Update _menus.nut --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 1 + 1 file changed, 1 insertion(+) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 7de2e13b1..1893a0b1d 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -188,6 +188,7 @@ void function CancelLevelLoading() printt("CancelLevelLoading disconnected because loading took too long") UICodeCallback_LevelLoadingFinished( true ) Disconnect() + OpenErrorDialog( "Loading timed out (Over 30 seconds)" ) } } From 3246c7d213b358da30f269e3150ed4f211b7d806 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 17 Jun 2023 12:07:45 -0400 Subject: [PATCH 05/25] Update _menus.nut --- .../mod/scripts/vscripts/ui/_menus.nut | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 1893a0b1d..d908b098a 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -178,17 +178,26 @@ void function UICodeCallback_ToggleInGameMenu() } } -void function CancelLevelLoading() +void function TimeoutHandler() { //Singleplayer "Continue" counts as finished loading and shouldn't be affected - print("CancelLevelLoading has Initialized") - wait 30 - if (uiGlobal.isLoading == true) + printt( "TimeoutHandler has Initialized" ) + const int timeoutThreshold = 30 // how long this function will wait before disconnecting + for ( int i = 0; i < timeoutThreshold; i++ ) //Ensure that they aren't disconnected if they leave and rejoin multiple servers { - printt("CancelLevelLoading disconnected because loading took too long") - UICodeCallback_LevelLoadingFinished( true ) - Disconnect() - OpenErrorDialog( "Loading timed out (Over 30 seconds)" ) + wait 1 + if ( uiGlobal.isLoading == false ) + { + printt( "TimeoutHandler cancelled because it detected a successful load" ) + return //Cancel function if the client is no longer loading (If there is a better way to stop a threaded function please let me know) + } + } + if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading + { + printt( "TimeoutHandler disconnected because loading took too long" ) + UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen + Disconnect() // Loads menu + OpenErrorDialog( format( "Loading timed out (Over %i seconds)", timeoutThreshold ) ) //Opens error dialog to notify user } } @@ -218,7 +227,7 @@ bool function UICodeCallback_LevelLoadingStarted( string levelname ) if ( !Console_IsSignedIn() ) return false #endif - thread CancelLevelLoading() + thread TimeoutHandler() return true } From 9817a5505b940fa8cfa110138392222a9e8350fc Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Fri, 7 Jul 2023 18:17:03 -0400 Subject: [PATCH 06/25] Add files via upload --- Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut | 1 + 1 file changed, 1 insertion(+) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut b/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut index 19c6b6df1..6ea252467 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut @@ -69,6 +69,7 @@ function CodeCallback_RegisterClass_CPlayer() Assert( !this.GetParent(), this + " should not have a parent yet! - Parent: " + this.GetParent() ) Assert( this.s.respawnCount <= 1 || IsMultiplayer(), "Tried to respawn in single player, see callstack" ) + Assert( this.IsEntAlive(), this + "Tried to respawn when it is already alive") // Crash failsafe when loading via dropship, North this.Code_RespawnPlayer( ent ) } From d766fc3a710ab443e0237b502e6a064ae7c3f72c Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Thu, 27 Jul 2023 18:50:06 -0400 Subject: [PATCH 07/25] remove other pr stuffs --- Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut | 1 - 1 file changed, 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut b/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut index 6ea252467..19c6b6df1 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut @@ -69,7 +69,6 @@ function CodeCallback_RegisterClass_CPlayer() Assert( !this.GetParent(), this + " should not have a parent yet! - Parent: " + this.GetParent() ) Assert( this.s.respawnCount <= 1 || IsMultiplayer(), "Tried to respawn in single player, see callstack" ) - Assert( this.IsEntAlive(), this + "Tried to respawn when it is already alive") // Crash failsafe when loading via dropship, North this.Code_RespawnPlayer( ent ) } From eb5fd2c7cedfa3f98999c8a18f9ff4ffccd16d5a Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:13:25 -0400 Subject: [PATCH 08/25] Update _menus.nut --- .../mod/scripts/vscripts/ui/_menus.nut | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index d908b098a..c83381fdb 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -178,29 +178,6 @@ void function UICodeCallback_ToggleInGameMenu() } } -void function TimeoutHandler() -{ - //Singleplayer "Continue" counts as finished loading and shouldn't be affected - printt( "TimeoutHandler has Initialized" ) - const int timeoutThreshold = 30 // how long this function will wait before disconnecting - for ( int i = 0; i < timeoutThreshold; i++ ) //Ensure that they aren't disconnected if they leave and rejoin multiple servers - { - wait 1 - if ( uiGlobal.isLoading == false ) - { - printt( "TimeoutHandler cancelled because it detected a successful load" ) - return //Cancel function if the client is no longer loading (If there is a better way to stop a threaded function please let me know) - } - } - if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading - { - printt( "TimeoutHandler disconnected because loading took too long" ) - UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen - Disconnect() // Loads menu - OpenErrorDialog( format( "Loading timed out (Over %i seconds)", timeoutThreshold ) ) //Opens error dialog to notify user - } -} - // Return true to show load screen, false to not show load screen. // levelname can be "" because the level to load isn't always known when the load screen starts bool function UICodeCallback_LevelLoadingStarted( string levelname ) @@ -227,7 +204,7 @@ bool function UICodeCallback_LevelLoadingStarted( string levelname ) if ( !Console_IsSignedIn() ) return false #endif - thread TimeoutHandler() + return true } From d4fa01cfdd3b135276718f6c4b7ecd8c5c470a9e Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Fri, 18 Aug 2023 17:30:08 -0400 Subject: [PATCH 09/25] Re-add loading screen fix --- .../mod/scripts/vscripts/ui/_menus.nut | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index c83381fdb..241f7227f 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -178,6 +178,24 @@ void function UICodeCallback_ToggleInGameMenu() } } + +void function TimeoutHandler() +{ + //Singleplayer "Continue" counts as finished loading and shouldn't be affected + printt( "TimeoutHandler has Initialized" ) + const int timeoutThreshold = 30 // how long this function will wait before disconnecting + EndSignal( uiGlobal.signalDummy, "LevelShutdown" ) // Cancels thread if map is unloaded + + wait timeoutThreshold + if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading + { + printt( "TimeoutHandler disconnected because loading took too long" ) + UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen + Disconnect() // Loads menu + OpenErrorDialog( format( "Loading timed out (Over %i seconds)", timeoutThreshold ) ) //Opens error dialog to notify user + } +} + // Return true to show load screen, false to not show load screen. // levelname can be "" because the level to load isn't always known when the load screen starts bool function UICodeCallback_LevelLoadingStarted( string levelname ) @@ -204,7 +222,7 @@ bool function UICodeCallback_LevelLoadingStarted( string levelname ) if ( !Console_IsSignedIn() ) return false #endif - + thread TimeoutHandler() return true } From fd6345802f5887c88ba0490754137d4ee874c0d5 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:00:53 -0400 Subject: [PATCH 10/25] New localization --- .../northstar_client_localisation_english.txt | Bin 14296 -> 28720 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt index 5dabd539875451ae0304903cdd0f2cd6238cd5b4..e937f056df3fd5b7912b09f7bc804a4d67d6b989 100644 GIT binary patch literal 28720 zcmd^|X>VLdc82fQ$*<@LFzf*$dF;#*%$Iwc?m54vq(37*XUP~Y}6Vxj9B`n%U{ zb@%jbuiNhq_1wK~u75Z5*)%}e`!dUO!P?VY=fdE*=DF0J^Cbl>gFo;uX12O6`XQT@?}qUx2NI2L^~L4wZu*~bOXJN7!vEJxoVbQoAQ$c&OTx46gYLf9 zckc2u(z@*aUQk0CEe_^UJtLZwvSai{;nuErRdX2*SZ)srHSlsuqUaa6zAU=(R5*em zv{|OFDoTg)uCYgd&=@odY_^0QfA{r$q0hTTy4y>gJJPj21>40la=89Rd$iWls8}S8h*e8HH z^WZOLOP)fzzlXfhfDh%q=R^nI6>WW|XBd6a-I4Ac6i65PHtW7FSJ9QH`ev%|InT-% z{FHqY5aChFuM=H;tLrC%QrnBaSts$GU>*EHj!49o&nGzhUe}Hb#X-fTp5We{%Cw4%|=mFBMWgl9Cmqfm2dg7`6JrOiZu=bDX@uv8S_a}C2 z6d$-P>gMuEhuy!He^+zY9^DvCTV1VJQ&`~j#(W-r*f<1-(RDmZ@WuWDZ)Q6-Hq)LA z3BlVj|Ao!PJQ0(=)%Y{X6*=0X(q=<@`!*NRHf^qzOy&`F9IE-gP-Hz6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Z0HT z#lJoQgtCoO1jap{mPlmw;0V~|pip~gkV12->B?K0)D#_NA;I*G zwO$%EZf?lbfnum|I*XnzAYBMF zsydgTvjDk`E>1X5Y<*=(!^-?C`pG|IC~_}(9Tac>?)f{ssCa2I1XC_cFaM;o!hZU&`w)yvyMj>p^PWN3dN|LcBC zu_}GriJ5Kd{!LgLbU4ITA~4a4!e7+izUw*P^}qeEe-TId%tCZ3B_3z7ACGX8Ogv>T3H&~!kEGw3a*ANN?#T`1Krz$;5$cA^N4x0XHOh11L(o4Yn z8na9jtugXZhw8RdV;Q4DMra|0A@%*uWBo{j^%@zvFY!48 z&A;sd<}Rg`ypQaCG@v6oalMCV#JSxyArM)`5L69LY|ykOgCE$~etmcbV|*2Z+QF2? zlRJE~ly6ntzTcPcb>Jr;u~Ww=REd*`zrYzr4jS Date: Fri, 25 Aug 2023 18:01:30 -0400 Subject: [PATCH 11/25] Use convar --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 241f7227f..72f083786 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -183,16 +183,15 @@ void function TimeoutHandler() { //Singleplayer "Continue" counts as finished loading and shouldn't be affected printt( "TimeoutHandler has Initialized" ) - const int timeoutThreshold = 30 // how long this function will wait before disconnecting EndSignal( uiGlobal.signalDummy, "LevelShutdown" ) // Cancels thread if map is unloaded - wait timeoutThreshold + wait GetConVarFloat( "ns_max_load_time" ) if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading { printt( "TimeoutHandler disconnected because loading took too long" ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen Disconnect() // Loads menu - OpenErrorDialog( format( "Loading timed out (Over %i seconds)", timeoutThreshold ) ) //Opens error dialog to notify user + OpenErrorDialog( format( "Loading timed out (Over %i seconds)", GetConVarInt( "ns_max_load_time" ) ) ) //Opens error dialog to notify user } } From 8b7863bee31a31e64497bfcc108530c79a6c702d Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:02:00 -0400 Subject: [PATCH 12/25] New ConVar --- Northstar.Client/mod.json | 274 +++++++++++++++++++------------------- 1 file changed, 140 insertions(+), 134 deletions(-) diff --git a/Northstar.Client/mod.json b/Northstar.Client/mod.json index 8040c14c4..346d87e36 100644 --- a/Northstar.Client/mod.json +++ b/Northstar.Client/mod.json @@ -1,136 +1,142 @@ { - "Name": "Northstar.Client", - "Description": "Various ui and client changes to fix bugs and add better support for mods", - "Version": "1.16.0", - "LoadPriority": 0, - "InitScript": "cl_northstar_client_init.nut", - "ConVars": [ - { - "Name": "filter_hide_empty", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_full", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_protected", - "DefaultValue": "0" - }, - { - "Name": "filter_map", - "DefaultValue": "0" - }, - { - "Name": "filter_gamemode", - "DefaultValue": "0" - }, - { - "Name": "filter_mods", - "DefaultValue": "0" - }, - { - "Name": "filter_map_hide_locked", - "DefaultValue": "0" - }, - { - "Name": "modlist_show_convars", - "DefaultValue": "0", - "Flags": 16777216 - }, - { - "Name": "modlist_reverse", - "DefaultValue": "0", - "Flags": 16777216 - } - ], - "Scripts": [ - { - "Path": "_custom_codecallbacks_client.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "client/cl_chat.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "ui/menu_ns_modmenu.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarModMenu", - "After": "AddNorthstarModMenu_MainMenuFooter" - } - }, - { - "Path": "ui/menu_ns_setversionlabel.nut", - "RunOn": "UI", - "UICallback": { - "After": "NS_SetVersionLabel" - } - }, - { - "Path": "presence/ui_presence.nut", - "RunOn": "UI", - "UICallback": { - "After": "NSUpdateGameStateUIStart" - } - }, - { - "Path": "presence/cl_presence.nut", - "RunOn": "CLIENT", - "ClientCallback": { - "After": "NSUpdateGameStateClientStart" - } - }, - { - "Path": "ui/menu_ns_serverbrowser.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarServerBrowserMenu" - } - }, - { - "Path": "ui/menu_ns_connect_password.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarConnectWithPasswordMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings_categories.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsMenu" - } - }, - { - "Path": "ui/controller_prompts.nut", - "RunOn": "UI" - }, - { - "Path": "ui/ns_slider.nut", - "RunOn": "UI" - }, - { - "Path": "ui/menu_mod_settings.nut", - "RunOn": "UI", - "UICallback":{ - "Before": "AddModSettingsMenu" - } - }, - { - "Path": "ui/ui_mouse_capture.nut", - "RunOn": "UI" - } - ], - "Localisation": [ - "resource/northstar_client_localisation_%language%.txt" - ] + "Name": "Northstar.Client", + "Description": "Various ui and client changes to fix bugs and add better support for mods", + "Version": "1.18.1", + "LoadPriority": 0, + "InitScript": "cl_northstar_client_init.nut", + "ConVars": [ + { + "Name": "ns_max_load_time", + "DefaultValue": "30", + "HelpString": "Amount of time (in seconds) until a loading screen returns to menu", + "Flags": "ARCHIVE_PLAYERPROFILE" + }, + { + "Name": "filter_hide_empty", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_full", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_protected", + "DefaultValue": "0" + }, + { + "Name": "filter_map", + "DefaultValue": "0" + }, + { + "Name": "filter_gamemode", + "DefaultValue": "0" + }, + { + "Name": "filter_mods", + "DefaultValue": "0" + }, + { + "Name": "filter_map_hide_locked", + "DefaultValue": "0" + }, + { + "Name": "modlist_show_convars", + "DefaultValue": "0", + "Flags": 16777216 + }, + { + "Name": "modlist_reverse", + "DefaultValue": "0", + "Flags": 16777216 + } + ], + "Scripts": [ + { + "Path": "_custom_codecallbacks_client.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "client/cl_chat.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "ui/menu_ns_modmenu.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarModMenu", + "After": "AddNorthstarModMenu_MainMenuFooter" + } + }, + { + "Path": "ui/menu_ns_setversionlabel.nut", + "RunOn": "UI", + "UICallback": { + "After": "NS_SetVersionLabel" + } + }, + { + "Path": "presence/ui_presence.nut", + "RunOn": "UI", + "UICallback": { + "After": "NSUpdateGameStateUIStart" + } + }, + { + "Path": "presence/cl_presence.nut", + "RunOn": "CLIENT", + "ClientCallback": { + "After": "NSUpdateGameStateClientStart" + } + }, + { + "Path": "ui/menu_ns_serverbrowser.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarServerBrowserMenu" + } + }, + { + "Path": "ui/menu_ns_connect_password.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarConnectWithPasswordMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings_categories.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsMenu" + } + }, + { + "Path": "ui/controller_prompts.nut", + "RunOn": "UI" + }, + { + "Path": "ui/ns_slider.nut", + "RunOn": "UI" + }, + { + "Path": "ui/menu_mod_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddModSettingsMenu" + } + }, + { + "Path": "ui/ui_mouse_capture.nut", + "RunOn": "UI" + } + ], + "Localisation": [ + "resource/northstar_client_localisation_%language%.txt" + ] } From 873d372d75a480d9434a07a5e13856264ca871c9 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:02:42 -0400 Subject: [PATCH 13/25] Create Northstar.Client section --- .../mod/scripts/vscripts/ui/menu_mod_settings.nut | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut index a45082c71..ffd0cc573 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut @@ -82,6 +82,9 @@ struct { void function AddModSettingsMenu() { AddMenu( "ModSettings", $"resource/ui/menus/mod_settings.menu", InitModMenu ) + AddModTitle( "^656dce00Northstar.Client" ) + AddModCategory( "#MISC" ) + ModSettings_AddSetting( "ns_max_load_time", "#MAX_LOAD", "int" ) } void function InitModMenu() @@ -343,6 +346,7 @@ void function UpdateListSliderHeight() void function UpdateList() { + Hud_SetFocused( Hud_GetChild( file.menu, "BtnModsSearch" ) ) file.updatingList = true @@ -949,6 +953,7 @@ void function SendTextPanelChanges( var textPanel ) ThrowInvalidValue( "This setting is an integer, and only accepts whole numbers." ) Hud_SetText( textPanel, GetConVarString( c.conVar ) ) } + break case "bool": if ( newSetting != "0" && newSetting != "1" ) { From 75379a3d9973cc5b04ca58f65f03216961215199 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 12:44:07 -0400 Subject: [PATCH 14/25] Fix indent --- Northstar.Client/mod.json | 276 +++++++++++++++++++------------------- 1 file changed, 138 insertions(+), 138 deletions(-) diff --git a/Northstar.Client/mod.json b/Northstar.Client/mod.json index 346d87e36..165d0c0ef 100644 --- a/Northstar.Client/mod.json +++ b/Northstar.Client/mod.json @@ -1,142 +1,142 @@ { - "Name": "Northstar.Client", - "Description": "Various ui and client changes to fix bugs and add better support for mods", - "Version": "1.18.1", - "LoadPriority": 0, - "InitScript": "cl_northstar_client_init.nut", - "ConVars": [ - { - "Name": "ns_max_load_time", - "DefaultValue": "30", - "HelpString": "Amount of time (in seconds) until a loading screen returns to menu", - "Flags": "ARCHIVE_PLAYERPROFILE" - }, - { - "Name": "filter_hide_empty", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_full", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_protected", - "DefaultValue": "0" - }, - { - "Name": "filter_map", - "DefaultValue": "0" - }, - { - "Name": "filter_gamemode", - "DefaultValue": "0" - }, - { - "Name": "filter_mods", - "DefaultValue": "0" - }, - { - "Name": "filter_map_hide_locked", - "DefaultValue": "0" - }, - { - "Name": "modlist_show_convars", - "DefaultValue": "0", - "Flags": 16777216 - }, - { - "Name": "modlist_reverse", - "DefaultValue": "0", - "Flags": 16777216 - } - ], - "Scripts": [ - { - "Path": "_custom_codecallbacks_client.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "client/cl_chat.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "ui/menu_ns_modmenu.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarModMenu", - "After": "AddNorthstarModMenu_MainMenuFooter" + "Name": "Northstar.Client", + "Description": "Various ui and client changes to fix bugs and add better support for mods", + "Version": "1.18.1", + "LoadPriority": 0, + "InitScript": "cl_northstar_client_init.nut", + "ConVars": [ + { + "Name": "ns_max_load_time", + "DefaultValue": "30", + "HelpString": "Amount of time (in seconds) until a loading screen returns to menu", + "Flags": "ARCHIVE_PLAYERPROFILE" + }, + { + "Name": "filter_hide_empty", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_full", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_protected", + "DefaultValue": "0" + }, + { + "Name": "filter_map", + "DefaultValue": "0" + }, + { + "Name": "filter_gamemode", + "DefaultValue": "0" + }, + { + "Name": "filter_mods", + "DefaultValue": "0" + }, + { + "Name": "filter_map_hide_locked", + "DefaultValue": "0" + }, + { + "Name": "modlist_show_convars", + "DefaultValue": "0", + "Flags": 16777216 + }, + { + "Name": "modlist_reverse", + "DefaultValue": "0", + "Flags": 16777216 } - }, - { - "Path": "ui/menu_ns_setversionlabel.nut", - "RunOn": "UI", - "UICallback": { - "After": "NS_SetVersionLabel" + ], + "Scripts": [ + { + "Path": "_custom_codecallbacks_client.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "client/cl_chat.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "ui/menu_ns_modmenu.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarModMenu", + "After": "AddNorthstarModMenu_MainMenuFooter" + } + }, + { + "Path": "ui/menu_ns_setversionlabel.nut", + "RunOn": "UI", + "UICallback": { + "After": "NS_SetVersionLabel" + } + }, + { + "Path": "presence/ui_presence.nut", + "RunOn": "UI", + "UICallback": { + "After": "NSUpdateGameStateUIStart" + } + }, + { + "Path": "presence/cl_presence.nut", + "RunOn": "CLIENT", + "ClientCallback": { + "After": "NSUpdateGameStateClientStart" + } + }, + { + "Path": "ui/menu_ns_serverbrowser.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarServerBrowserMenu" + } + }, + { + "Path": "ui/menu_ns_connect_password.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarConnectWithPasswordMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings_categories.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsMenu" + } + }, + { + "Path": "ui/controller_prompts.nut", + "RunOn": "UI" + }, + { + "Path": "ui/ns_slider.nut", + "RunOn": "UI" + }, + { + "Path": "ui/menu_mod_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddModSettingsMenu" + } + }, + { + "Path": "ui/ui_mouse_capture.nut", + "RunOn": "UI" } - }, - { - "Path": "presence/ui_presence.nut", - "RunOn": "UI", - "UICallback": { - "After": "NSUpdateGameStateUIStart" - } - }, - { - "Path": "presence/cl_presence.nut", - "RunOn": "CLIENT", - "ClientCallback": { - "After": "NSUpdateGameStateClientStart" - } - }, - { - "Path": "ui/menu_ns_serverbrowser.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarServerBrowserMenu" - } - }, - { - "Path": "ui/menu_ns_connect_password.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarConnectWithPasswordMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings_categories.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsMenu" - } - }, - { - "Path": "ui/controller_prompts.nut", - "RunOn": "UI" - }, - { - "Path": "ui/ns_slider.nut", - "RunOn": "UI" - }, - { - "Path": "ui/menu_mod_settings.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddModSettingsMenu" - } - }, - { - "Path": "ui/ui_mouse_capture.nut", - "RunOn": "UI" - } - ], - "Localisation": [ - "resource/northstar_client_localisation_%language%.txt" - ] + ], + "Localisation": [ + "resource/northstar_client_localisation_%language%.txt" + ] } From 299685ee51599cc93f8c47d79b8c9244f712b66f Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 12:49:56 -0400 Subject: [PATCH 15/25] Fix indent (again) --- Northstar.Client/mod.json | 280 +++++++++++++++++++------------------- 1 file changed, 140 insertions(+), 140 deletions(-) diff --git a/Northstar.Client/mod.json b/Northstar.Client/mod.json index 165d0c0ef..48981c40f 100644 --- a/Northstar.Client/mod.json +++ b/Northstar.Client/mod.json @@ -1,142 +1,142 @@ { - "Name": "Northstar.Client", - "Description": "Various ui and client changes to fix bugs and add better support for mods", - "Version": "1.18.1", - "LoadPriority": 0, - "InitScript": "cl_northstar_client_init.nut", - "ConVars": [ - { - "Name": "ns_max_load_time", - "DefaultValue": "30", - "HelpString": "Amount of time (in seconds) until a loading screen returns to menu", - "Flags": "ARCHIVE_PLAYERPROFILE" - }, - { - "Name": "filter_hide_empty", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_full", - "DefaultValue": "0" - }, - { - "Name": "filter_hide_protected", - "DefaultValue": "0" - }, - { - "Name": "filter_map", - "DefaultValue": "0" - }, - { - "Name": "filter_gamemode", - "DefaultValue": "0" - }, - { - "Name": "filter_mods", - "DefaultValue": "0" - }, - { - "Name": "filter_map_hide_locked", - "DefaultValue": "0" - }, - { - "Name": "modlist_show_convars", - "DefaultValue": "0", - "Flags": 16777216 - }, - { - "Name": "modlist_reverse", - "DefaultValue": "0", - "Flags": 16777216 - } - ], - "Scripts": [ - { - "Path": "_custom_codecallbacks_client.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "client/cl_chat.gnut", - "RunOn": "CLIENT" - }, - { - "Path": "ui/menu_ns_modmenu.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarModMenu", - "After": "AddNorthstarModMenu_MainMenuFooter" - } - }, - { - "Path": "ui/menu_ns_setversionlabel.nut", - "RunOn": "UI", - "UICallback": { - "After": "NS_SetVersionLabel" - } - }, - { - "Path": "presence/ui_presence.nut", - "RunOn": "UI", - "UICallback": { - "After": "NSUpdateGameStateUIStart" - } - }, - { - "Path": "presence/cl_presence.nut", - "RunOn": "CLIENT", - "ClientCallback": { - "After": "NSUpdateGameStateClientStart" - } - }, - { - "Path": "ui/menu_ns_serverbrowser.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarServerBrowserMenu" - } - }, - { - "Path": "ui/menu_ns_connect_password.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarConnectWithPasswordMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings_categories.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" - } - }, - { - "Path": "ui/menu_ns_custom_match_settings.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddNorthstarCustomMatchSettingsMenu" - } - }, - { - "Path": "ui/controller_prompts.nut", - "RunOn": "UI" - }, - { - "Path": "ui/ns_slider.nut", - "RunOn": "UI" - }, - { - "Path": "ui/menu_mod_settings.nut", - "RunOn": "UI", - "UICallback": { - "Before": "AddModSettingsMenu" - } - }, - { - "Path": "ui/ui_mouse_capture.nut", - "RunOn": "UI" - } - ], - "Localisation": [ - "resource/northstar_client_localisation_%language%.txt" - ] + "Name": "Northstar.Client", + "Description": "Various ui and client changes to fix bugs and add better support for mods", + "Version": "1.18.1", + "LoadPriority": 0, + "InitScript": "cl_northstar_client_init.nut", + "ConVars": [ + { + "Name": "ns_max_load_time", + "DefaultValue": "30", + "HelpString": "Amount of time (in seconds) until a loading screen returns to menu", + "Flags": "ARCHIVE_PLAYERPROFILE" + }, + { + "Name": "filter_hide_empty", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_full", + "DefaultValue": "0" + }, + { + "Name": "filter_hide_protected", + "DefaultValue": "0" + }, + { + "Name": "filter_map", + "DefaultValue": "0" + }, + { + "Name": "filter_gamemode", + "DefaultValue": "0" + }, + { + "Name": "filter_mods", + "DefaultValue": "0" + }, + { + "Name": "filter_map_hide_locked", + "DefaultValue": "0" + }, + { + "Name": "modlist_show_convars", + "DefaultValue": "0", + "Flags": 16777216 + }, + { + "Name": "modlist_reverse", + "DefaultValue": "0", + "Flags": 16777216 + } + ], + "Scripts": [ + { + "Path": "_custom_codecallbacks_client.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "client/cl_chat.gnut", + "RunOn": "CLIENT" + }, + { + "Path": "ui/menu_ns_modmenu.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarModMenu", + "After": "AddNorthstarModMenu_MainMenuFooter" + } + }, + { + "Path": "ui/menu_ns_setversionlabel.nut", + "RunOn": "UI", + "UICallback": { + "After": "NS_SetVersionLabel" + } + }, + { + "Path": "presence/ui_presence.nut", + "RunOn": "UI", + "UICallback": { + "After": "NSUpdateGameStateUIStart" + } + }, + { + "Path": "presence/cl_presence.nut", + "RunOn": "CLIENT", + "ClientCallback": { + "After": "NSUpdateGameStateClientStart" + } + }, + { + "Path": "ui/menu_ns_serverbrowser.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarServerBrowserMenu" + } + }, + { + "Path": "ui/menu_ns_connect_password.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarConnectWithPasswordMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings_categories.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsCategoryMenu" + } + }, + { + "Path": "ui/menu_ns_custom_match_settings.nut", + "RunOn": "UI", + "UICallback": { + "Before": "AddNorthstarCustomMatchSettingsMenu" + } + }, + { + "Path": "ui/controller_prompts.nut", + "RunOn": "UI" + }, + { + "Path": "ui/ns_slider.nut", + "RunOn": "UI" + }, + { + "Path": "ui/menu_mod_settings.nut", + "RunOn": "UI", + "UICallback":{ + "Before": "AddModSettingsMenu" + } + }, + { + "Path": "ui/ui_mouse_capture.nut", + "RunOn": "UI" + } + ], + "Localisation": [ + "resource/northstar_client_localisation_%language%.txt" + ] } From 58024fe06c4fac75882aab58a61197cdfbcbb9f6 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 13:00:36 -0400 Subject: [PATCH 16/25] localized and changed to float from int --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 8 ++++---- .../mod/scripts/vscripts/ui/menu_mod_settings.nut | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 72f083786..e8dbdf562 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -182,16 +182,16 @@ void function UICodeCallback_ToggleInGameMenu() void function TimeoutHandler() { //Singleplayer "Continue" counts as finished loading and shouldn't be affected - printt( "TimeoutHandler has Initialized" ) EndSignal( uiGlobal.signalDummy, "LevelShutdown" ) // Cancels thread if map is unloaded - wait GetConVarFloat( "ns_max_load_time" ) + float maxLoadTime = GetConVarFloat( "ns_max_load_time" ) + wait maxLoadTime if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading { - printt( "TimeoutHandler disconnected because loading took too long" ) + printt( format( "TimeoutHandler disconnected because loading took too long (%i seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen Disconnect() // Loads menu - OpenErrorDialog( format( "Loading timed out (Over %i seconds)", GetConVarInt( "ns_max_load_time" ) ) ) //Opens error dialog to notify user + OpenErrorDialog( format( Localize("#MAX_LOAD_ERROR"), maxLoadTime ) ) //Opens error dialog to notify user } } diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut index ffd0cc573..96b05cdfd 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut @@ -83,8 +83,8 @@ void function AddModSettingsMenu() { AddMenu( "ModSettings", $"resource/ui/menus/mod_settings.menu", InitModMenu ) AddModTitle( "^656dce00Northstar.Client" ) - AddModCategory( "#MISC" ) - ModSettings_AddSetting( "ns_max_load_time", "#MAX_LOAD", "int" ) + AddModCategory( "#STATS_MISC" ) + ModSettings_AddSetting( "ns_max_load_time", "#MAX_LOAD", "float" ) } void function InitModMenu() @@ -449,7 +449,7 @@ void function UpdateList() } file.updatingList = false - if ( file.conVarList.len() <= 0 ) + if ( file.conVarList.len() <= 6 ) { Hud_SetVisible( Hud_GetChild( file.menu, "NoResultLabel" ), true ) Hud_SetText( Hud_GetChild( file.menu, "NoResultLabel" ), "#NO_MODS" ) From bbc9992dedefeee1291da914b669271fc5c581bc Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 13:01:10 -0400 Subject: [PATCH 17/25] update localization --- .../northstar_client_localisation_english.txt | Bin 28720 -> 28982 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt index e937f056df3fd5b7912b09f7bc804a4d67d6b989..788e127b32ac0c5935bf3a3ac9176e1eaaf3178a 100644 GIT binary patch delta 263 zcmXX>F$%&!5S(uqR{Z7sQn7*X*&XV&Nd|WHlk(4xE!r lD2d(ptTo_kz7qDVtzGPIYtczQ8Y;J7$>joc`H?Gc8$VUFHDdq( delta 62 zcmdn?h;hRM#tj_#lST4Z$a^vbGdMFSF>s Date: Sat, 26 Aug 2023 13:02:42 -0400 Subject: [PATCH 18/25] fix whitespace change Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut | 1 - 1 file changed, 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut index 96b05cdfd..dd8085b25 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut @@ -346,7 +346,6 @@ void function UpdateListSliderHeight() void function UpdateList() { - Hud_SetFocused( Hud_GetChild( file.menu, "BtnModsSearch" ) ) file.updatingList = true From e082165deb71dc401c845badc1c8783271ebf6b2 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 13:03:23 -0400 Subject: [PATCH 19/25] Add whitespace between required stuff and northstar section Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut | 1 + 1 file changed, 1 insertion(+) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut index dd8085b25..a97d728a2 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut @@ -82,6 +82,7 @@ struct { void function AddModSettingsMenu() { AddMenu( "ModSettings", $"resource/ui/menus/mod_settings.menu", InitModMenu ) + AddModTitle( "^656dce00Northstar.Client" ) AddModCategory( "#STATS_MISC" ) ModSettings_AddSetting( "ns_max_load_time", "#MAX_LOAD", "float" ) From 9cdda7b0eadf3fb373dc88620838cca594457981 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:52:43 -0400 Subject: [PATCH 20/25] Update Northstar.Client/mod/scripts/vscripts/ui/_menus.nut Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index e8dbdf562..c73858bff 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -191,7 +191,7 @@ void function TimeoutHandler() printt( format( "TimeoutHandler disconnected because loading took too long (%i seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen Disconnect() // Loads menu - OpenErrorDialog( format( Localize("#MAX_LOAD_ERROR"), maxLoadTime ) ) //Opens error dialog to notify user + OpenErrorDialog( format( Localize( "#MAX_LOAD_ERROR" ), maxLoadTime ) ) //Opens error dialog to notify user } } From 4a7dd0e581ed5d28a4023616da713d4b9d1e8857 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:53:11 -0400 Subject: [PATCH 21/25] reformatting or something because nerd Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod.json b/Northstar.Client/mod.json index 48981c40f..a2a1fa146 100644 --- a/Northstar.Client/mod.json +++ b/Northstar.Client/mod.json @@ -1,7 +1,7 @@ { "Name": "Northstar.Client", "Description": "Various ui and client changes to fix bugs and add better support for mods", - "Version": "1.18.1", + "Version": "1.16.0", "LoadPriority": 0, "InitScript": "cl_northstar_client_init.nut", "ConVars": [ From 33a278182a8a49e687cc0e16dad4dfee3d05f21d Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:53:40 -0400 Subject: [PATCH 22/25] Update Northstar.Client/mod/scripts/vscripts/ui/_menus.nut Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index c73858bff..59723bbb2 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -188,7 +188,7 @@ void function TimeoutHandler() wait maxLoadTime if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading { - printt( format( "TimeoutHandler disconnected because loading took too long (%i seconds)", maxLoadTime ) ) + printt( format( "TimeoutHandler disconnected because loading took too long (%f seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen Disconnect() // Loads menu OpenErrorDialog( format( Localize( "#MAX_LOAD_ERROR" ), maxLoadTime ) ) //Opens error dialog to notify user From 6618aac010a4aeb30cbc6e91fe2634c6056dd87e Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:55:34 -0400 Subject: [PATCH 23/25] optimization Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 59723bbb2..7950546b7 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -186,7 +186,7 @@ void function TimeoutHandler() float maxLoadTime = GetConVarFloat( "ns_max_load_time" ) wait maxLoadTime - if ( uiGlobal.isLoading == true ) //Disconnects client after 30 seconds of loading + if ( uiGlobal.isLoading ) //Disconnects client after 30 seconds of loading { printt( format( "TimeoutHandler disconnected because loading took too long (%f seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen From 29365dfcb3afdfcbd9b307dce724340e3407b686 Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:57:39 -0400 Subject: [PATCH 24/25] Update _menus.nut text --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 7950546b7..5cbbe708c 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -186,7 +186,7 @@ void function TimeoutHandler() float maxLoadTime = GetConVarFloat( "ns_max_load_time" ) wait maxLoadTime - if ( uiGlobal.isLoading ) //Disconnects client after 30 seconds of loading + if ( uiGlobal.isLoading ) //Disconnects client specified amount of time ( Default 30 seconds ) { printt( format( "TimeoutHandler disconnected because loading took too long (%f seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen From e3985158a396d9649cd4a7f38fb4716bc243774d Mon Sep 17 00:00:00 2001 From: EnderBoy9217 <122132914+EnderBoy9217@users.noreply.github.com> Date: Sun, 27 Aug 2023 12:18:11 -0400 Subject: [PATCH 25/25] Fix not connected error --- Northstar.Client/mod/scripts/vscripts/ui/_menus.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut index 5cbbe708c..dfe0ce4ea 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/_menus.nut @@ -186,7 +186,7 @@ void function TimeoutHandler() float maxLoadTime = GetConVarFloat( "ns_max_load_time" ) wait maxLoadTime - if ( uiGlobal.isLoading ) //Disconnects client specified amount of time ( Default 30 seconds ) + if ( uiGlobal.isLoading && IsConnected() ) //Disconnects client specified amount of time ( Default 30 seconds ) { printt( format( "TimeoutHandler disconnected because loading took too long (%f seconds)", maxLoadTime ) ) UICodeCallback_LevelLoadingFinished( true ) //Removes loading screen