Skip to content

Commit 0893338

Browse files
authored
Version 2.4.1
1 parent 0f676b8 commit 0893338

8 files changed

Lines changed: 54 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Patch for Northstar.Client to enable client-side mods on official servers.
2020
Titanfall2
2121
R2Titanfall
2222
packages
23-
NanohmProtogen-VanillaPlus-2.4.0
23+
NanohmProtogen-VanillaPlus-2.4.1
2424
```
2525

2626
Note that the folder in `packages` is NOT a `.zip` file

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.4.1
2+
- Add warning to migrate to `-vanilla` if the user is still on `-norestrictservercommands`
3+
14
2.4
25
- Update VanillaPlus to use `-vanilla` as `-norestrictservercommands` is deprecated
36
- Remove DT fov mod warning

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "VanillaPlus",
3-
"version_number": "2.4.0",
3+
"version_number": "2.4.1",
44
"website_url": "https://github.com/Zayveeo5e/NP.VanillaPlus",
55
"description": "THIS MOD HAS SPECIAL INSTALL INSTRUCTIONS IN THE DESCRIPTION, PLEASE READ THEM. Modified Northstar.Client to load Client-Side mods on Vanilla servers",
66
"dependencies": []

mods/NP.VanillaPlus/mod.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"Name" : "VanillaPlus",
33
"Description": "A stripped down and modified Northstar.Client mod that allows for client-side mod loading on official Respawn servers\n\nMade by Nanohm, remastered by Cyn",
44
"LoadPriority": -1,
5-
"Version": "2.4",
5+
"Version": "2.4.1",
66

77
"Dependencies": {
8+
"HAS_CLIENT": "Northstar.Client",
89
"HAS_MORESKINS": "MoreSkins-",
910
"HAS_FRAMEWORK": "Peepee.TitanFramework"
1011
},
@@ -24,6 +25,10 @@
2425
"DefaultValue": "0",
2526
"Flags": 16777216
2627
},
28+
{
29+
"Name": "norestrictservercommands_remind",
30+
"DefaultValue": "1"
31+
},
2732
{
2833
"Name": "core_remind",
2934
"DefaultValue": "1"

mods/NP.VanillaPlus/mod/scripts/vscripts/ui/check_mods.nut

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,26 @@ void function CheckForMods()
1414
{
1515
WaitFrame()
1616

17-
if (!VANILLA) {
18-
// Prints an error if the user isn't in vanilla compatibilty mode
19-
// Mostly to be used with Spectre log reading later (hence the 0)
20-
printt("VanillaPlus Error 0: Not in vanilla compatibility mode")
21-
if (GetConVarInt("core_remind") == 1) CoreMods()
17+
if (!VANILLA)
18+
{
19+
if (!HAS_CLIENT)
20+
{
21+
// if the user isn't in vanilla compat, has vanillaplus, and doesn't have client, they're basically 99% guaranteed to be using -norestrictservercommands still
22+
// this checks we don't have client because having only client on 2.0+ causes a compile error
23+
printt("VanillaPlus Error 1: Using -norestrictservercommands instead of -vanilla")
24+
if (GetConVarInt("norestrictservercommands_remind") == 1) UpdateToUsingVanillaLaunchOption()
25+
}
26+
else
27+
{
28+
// Prints an error if the user isn't in vanilla compatibilty mode
29+
// Mostly to be used with Spectre log reading later (hence the 0)
30+
printt("VanillaPlus Error 0: Not in vanilla compatibility mode")
31+
if (GetConVarInt("core_remind") == 1) CoreMods()
32+
}
2233
}
2334

24-
else if (HAS_MORESKINS || HAS_FRAMEWORK) {
35+
else if (HAS_MORESKINS || HAS_FRAMEWORK)
36+
{
2537
OtherMods()
2638
}
2739
}
@@ -64,4 +76,20 @@ void function CoreMods()
6476
})
6577
AddDialogButton(coreModWarnDiag, "Continue to Northstar servers", void function(){ClientCommand("uiscript_reset"); ClientCommand("core_remind 0")})
6678
OpenDialog(coreModWarnDiag)
79+
}
80+
81+
void function UpdateToUsingVanillaLaunchOption()
82+
{
83+
DialogData coreModWarnDiag
84+
coreModWarnDiag.header = "Not using vanilla compatibiltiy mode!"
85+
86+
coreModWarnDiag.message = "You aren't using Northstar's vanilla compatibility mode!\n\nIt seems that you're still using the launch option '-norestrictservercommands'.\n\nRecently, a better version of vanilla using the launch option '-vanilla' has come out.\n\nPlease update to that.\n\nYou can read the instructions for how to properly do it again, or you can continue to using VanillaPlus as is, altough it isn't recommended."
87+
88+
coreModWarnDiag.image = $"ui/menu/common/dialog_error"
89+
AddDialogButton(coreModWarnDiag, "Go to instructions", void function(){
90+
LaunchExternalWebBrowser("https://northstar.thunderstore.io/package/NanohmProtogen/VanillaPlus/", WEBBROWSER_FLAG_FORCEEXTERNAL); ClientCommand("uiscript_reset"); ClientCommand("core_remind 0")
91+
92+
})
93+
AddDialogButton(coreModWarnDiag, "Continue to not recommended VanillaPlus", void function(){ClientCommand("uiscript_reset"); ClientCommand("norestrictservercommands_remind 0")})
94+
OpenDialog(coreModWarnDiag)
6795
}

mods/NP.VanillaPlus/mod/scripts/vscripts/ui/menu_ingame.nut

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ void function InitInGameMPMenu()
112112
Hud_AddEventHandler( soundButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "VideoMenu" ) ) )
113113
#endif
114114

115+
#if VANILLA
115116
// MOD SETTINGS
116117
var modSettingsButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "Mod Settings" )
117118
Hud_AddEventHandler( modSettingsButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "ModSettings" ) ) )
119+
#endif
118120

119121
// Nobody reads the FAQ so we replace it with ModSettings because of the limited combobutton space available
120122
//file.faqButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "#KNB_MENU_HEADER" )
@@ -261,9 +263,11 @@ void function InitInGameSPMenu()
261263
Hud_AddEventHandler( videoButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "VideoMenu" ) ) )
262264
#endif
263265

266+
#if VANILLA
264267
// MOD SETTINGS
265268
var modSettingsButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "Mod Settings" )
266269
Hud_AddEventHandler( modSettingsButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "ModSettings" ) ) )
270+
#endif
267271

268272
array<var> orderedButtons
269273

mods/NP.VanillaPlus/mod/scripts/vscripts/ui/menu_lobby.nut

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,12 @@ void function SetupComboButtonTest( var menu )
322322
var soundButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "#VIDEO" )
323323
Hud_AddEventHandler( soundButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "VideoMenu" ) ) )
324324
#endif
325+
326+
#if VANILLA
325327
// MOD SETTINGS
326328
var modSettingsButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "#MOD_SETTINGS" )
327329
Hud_AddEventHandler( modSettingsButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "ModSettings" ) ) )
330+
#endif
328331

329332
comboStruct.navUpButtonDisabled = true
330333
comboStruct.navDownButton = file.genUpButton

mods/NP.VanillaPlus/mod/scripts/vscripts/ui/panel_mainmenu.nut

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ void function InitMainMenuPanel()
102102
Hud_AddEventHandler( videoButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "VideoMenu" ) ) )
103103
#endif
104104

105+
#if VANILLA
105106
// MOD SETTINGS
106107
var modSettingsButton = AddComboButton( comboStruct, headerIndex, buttonIndex++, "#MOD_SETTINGS" )
107108
Hud_AddEventHandler( modSettingsButton, UIE_CLICK, AdvanceMenuEventHandler( GetMenu( "ModSettings" ) ) )
109+
#endif
108110

109111
var spotlightLargeButton = Hud_GetChild( file.spotlightPanel, "SpotlightLarge" )
110112
spotlightLargeButton.SetNavLeft( file.spButtons[0] )

0 commit comments

Comments
 (0)