aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts
AgeCommit message (Collapse)Author
2024-08-29Hide remote mods in mods display (#799)Rémy Raes
As they are supposed to be disabled unless joining a server that requires that mod.
2024-07-31Revert "Add a generic "JoinServer" function" (#828)v1.27.1-rc1v1.27.1GeckoEidechse
Revert "Add a generic "JoinServer" function (#693)" as it causes issues with MAD due to duplicated server join logic as discussed on Discord This reverts commit e4b3cc7d3ee17488053cae24c8a8c981dbe95eab.
2024-07-31Remove redundant parameter in DownloadMod (#827)wolf109909
This parameter is a leftover of a previous refactor, and isn't used anywhere in the function.
2024-07-30Add a generic "JoinServer" function (#693)Klemmbaustein
Adds a function that allows the client to join a server from a `ServerInfo` struct. This also changes the server browser to use this function.
2024-07-30Only fetch MAD manifesto on server join (#821)Rémy Raes
Previously, the verified mods manifesto was fetched on game start without checking if the verified mod feature is enabled Squirrel-side; with this, the manifesto is only fetched when the user wants to download a mod (meaning they enabled the feature beforehand).
2024-01-09Fix mod reloading for MAD (#780)Maya
Use the proper function instead of NSReloadMods on join
2023-12-20Add missing server browser localisation for `WRONG_MOD_VERSION` (#710)v1.21.2-rc3v1.21.2Jack
2023-12-14Mod download UI integration (#761)v1.21.0-rc2v1.21.0Rémy Raes
UI integration for the mod downloading feature. Feature activation locked behind a convar.
2023-11-06Plugins v3 (#652)v1.20.0-rc3v1.20.0cat_or_not
Script component of plugins v3. See launcher PR for more info. https://github.com/R2Northstar/NorthstarLauncher/pull/472
2023-11-05Remove "Launch Multiplayer" button (#719)Jack
As currently Northstar does not support launching into vanilla.
2023-10-12Fix INVALID_REF errors caused by mods (#657)v1.19.8-rc1v1.19.8v1.19.7-rc1v1.19.7Jack
`INVALID_REF` errors were being caused by trying to get the item image for weapon skins. If a mod (e.g. moreskins) added new skins, the client equipped one, and then the mod is disabled, the client now has bad persistence. This is mostly handled fine by the game, except for weapon skins. This PR prevents the crash, and resets the bad persistence to default.
2023-10-12Add menu_pilot_loadouts_shared.nut from englishclient_frontendRespawn
2023-10-12Add menu_edit_pilot_loadouts.nut from englishclient_frontendRespawn
2023-10-10Remove unnecessary convars (#530)v1.19.6-rc2v1.19.6BobTheBob
Removes some convars we don't need at all
2023-10-07Display origin auth failure in a dialog (#648)v1.19.5-rc1v1.19.5Jack
Currently, we don't do anything with origin auth failure, meaning the next request just fails, and we get not particularly relevant error messages (player not found, invalid masterserver token)
2023-10-04Remove annoying recurring print from `chatroom.nut` (#676)v1.19.4-rc1JMM889901
Commented out instead of fully removing
2023-10-04Add chatroom.nut from englishclient_frontendRespawn
2023-10-04Fix integer functionality for modsettings (#718)EnderBoy9217
Add missing break statement
2023-09-02Changed TriggerConnectToServerCallbacks to take in an optional server for ↵Klemmbaustein
which the callback was triggered (#688) What's the point of this
2023-09-02Progression system (#655)Jack
This also can't hurt right? --------- Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com>
2023-06-27disable RequiredOnClient mods properly (#658)Jack
* disable RequiredOnClient mods properly * better disabling logic
2023-05-24Add Mod Settings (#518)EladNLG
* Add Mod Settings * Make rounding optional * Add recursive search * too much shit Add custom buttons, expand menu further, sanitize display names, cleanup, add more descriptive errors and throw them early, rework slightly func params * Remove Test Stuff * Clean-Up * Revert mod version change * Replace GetIndex with PureModulo better, more understandable version of the function. * Fix Slider bug * Fix Localization * Add eject quotes (#527) * Upload cl_titan_cockpit.nut * Add eject string in script * Moved to client * index issue + removed else so always returns * Apply suggestions from code review Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Rest of the suggestions because github makes me want to cry * Commit suggestions from review GitHub really hates batching suggestions Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Update localization * Update Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut From ASpoonPlaysGames Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Update Northstar.Client/mod.json From ASpoonPlaysames Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Update Northstar.Client/mod/scripts/vscripts/ui/menu_mod_settings.nut From ASpoonPlaysGames Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Delete cl_titan_cockpit.nut * Apply suggestions from Spoon's code review Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Formatting for ModSettings + Remove Base Northstar Settings (#1) * fix formatting * add newline * formatting part 1 * formatting part 2 * formatting again Co-authored-by: EladNLG <e1lad8955@gmail.com> * reset vmt (#2) * reset vmt * formatting * more formatting * Fixes, color modification * Fix Image behind button & make image clickable using a hack because imagepanels don't get click events and i hate them * Formatting Fixes The First * Apply suggestions from Spoon's review Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Formatting Fixes The Second * Fix reset popup appearing when not clicking on button * Fix only being able to type 1 char at a time * Fix more bugs - never being able to get out of modsettings dialogs - setting duplication glitch * Fix alignment * add no results/mods (need localization) * he forgor :( make addmodsettingsbutton global Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * Clean up (thanks @uniboi) Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * forgot to add this too Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * Mod settings submenus (#4) * allow for submenu closing * hide reset vgui on buttons * My code got GECKO'd gecko suggestions Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * uniboi fixing his own mistakes moment + more prints removed (thanks @uniboi) Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * aaaaaaaa Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> * rename ms_slider * add a newline * add temporary aliases * fix aliases and localization * update button width for categories * fix resets accessing out of bounds index * allow unicode search * use correct index variable * update function names --------- Co-authored-by: JMM889901 <41163714+JMM889901@users.noreply.github.com> Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Co-authored-by: uniboi <64006268+uniboi@users.noreply.github.com> Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Co-authored-by: uniboi <plurals@autism.exposed> Co-authored-by: uniboi <kami.0.katze@gmail.com>
2023-05-04Fix serverbrowser filtering by gamemode (#639)v1.14.1-rc1v1.14.1Jack
2023-05-01Add Bounty Hunt (#634)v1.14.0-rc1v1.14.0F1F7Y
* Unlock bountyhunt in mode select menu * Initial push * Go through bank functions * Bug spotting * dissolve droppods faster * better camp hack solution * Revert wave start to 1st wave * Small formatting cleanup * Limit score to max playlist allows * Try to make ai camps work * Potentially fix winner not being set * metal pipe falling sound effect * Acteally document change * Better fix for match not properly ending * Add MVP dialogue (#631) * MVP dialogue and small audio fix * maybe better AI movement * revert accidental change * Remove comment about a already fixed issue * Revert froce assault point waitsignal * Don't reward player for ejecting * Don't reward for killing player npc titan * Don't allow titans to run banking thread * Bored npcs cleanup logic * Remove lefover whitespace changes * Metal pipe falling sound 2x * One day my brain will start properly functioning * Include reapers in bored check * Add bored check to other droppod func * Revert testing change * Fix typo * Remove debug prints * Debug log stuck AI for future navmesh debugging Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Fix formatting * [BH] Lock scores after game end (#635) * stop awarding score after game is ended --------- Co-authored-by: DBmaoha <56738369+DBmaoha@users.noreply.github.com> Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com>
2023-04-27Use structs in the server browser (#623)uniboi
* move to native structs * add connect callbacks * update native functions register * trigger callbacks on double click * use suggestions
2023-04-21Improve server connection error messages (#598)pg9182
* Also show masterserver error for server connections It's already used for self auth and is available for both, but we currently only show it for the former. * Don't localize server connection errors It never fully worked, and it's more useful to have non-localized detailed error messages. * Don't prepend NS_SERVERBROWSER_CONNECTIONFAILED to server conn err msg The message always contains something like it, and it's always right after a connectiom anyways. * NSGetAuthFailReason always returns a string, so don't make it untyped
2023-04-11New presence code for plugins v2 (#532)Emma Miler
* test * Update cl_presence.nut * Update Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut * Apply suggestions from code review * New scripts * fix playlist and add native funcs to build * remove snake cases from GameStateStruct * I forgor --------- Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2023-04-05Add menu_ingame.nut from englishclient_frontendRespawn
2023-03-08Add _menus.nut from englishclient_frontendRespawn
2023-02-25Fix chat messages when dead (#574)NoCatt
* Fix chat messages when dead * Spoons fix was better Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com>
2023-01-08Fix server chat messages being send twice when watching a replay (#555)NoCatt
* fixes chat messages being send twice * OCD is a real issue
2022-12-04Display server region in serverbrowser (#479)GeckoEidechse
* Replace latency column with region in serverbrowser * Add English and German localisation * Mark remaining localisations as TODOs * Enable filtering by region using search field * Update tchinese translation for display server region in serverbrowser (#484) * Add French translation * Add Japanese translation * Add Portuguese translation * Add Russian translation * Add Spanish translation * Add Italian translation * Add Mexican Spanish translation
2022-12-01Remove unnecessary root table setting and make functions global (#534)Jack
* fix for CHudChat_ProcessMessageStartThread not working in native * remove unneeded NSSetupChathooksClient callback * fix for CServerGameDLL_ProcessMessageStartThread not working in native * remove unneeded NSSetupChathooksServer callback * remove root table setting for ServerToClientStringCommands_Init * remove unneeded ServerToClientStringCommands_Init callback * remove global function
2022-11-16Use new system for adding keybinds to `kb_act.lst` (#529)BobTheBob
2022-11-14Add missing `unreachable` to stop compile error (#528)Jack
2022-11-12Add eject quotes (#527)JMM889901
* Upload cl_titan_cockpit.nut * Add eject string in script * Moved to client * index issue + removed else so always returns * Apply suggestions from code review Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> * Rest of the suggestions because github makes me want to cry * Commit suggestions from review GitHub really hates batching suggestions Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com>
2022-11-12Add cl_titan_cockpit.nut from englishclient_mp_commonRespawn
2022-11-12Add support for hiding the [SERVER] tag in server messages (#506)Erlite
2022-11-10Improve mouse capture handling in menus (#520)Jack
* rework mouse capture handling * small improvement to comment * move to new script file * refactor to use only the capturePanel * refactor part 2 * github please commit everything * remove non-implemented global function * cleanup * rename variable * formatting and a comment * run callbacks for menus * update comment accordingly * small formatting change * slight refactor to avoid duplicate code * improve comment * pass correct parameters * newline at end of file :)
2022-10-31restore hud_takesshots functionality to automatically take screenshots of ↵BobTheBob
scoreboard (#522) * restore hud_takesshots functionality to take screenshots of scoreboard automatically * fixup some formatting
2022-10-22Halfway decent fix to allow changing of minimap size and zoom midgame (#265)JMM889901
* Add files via upload * Added Getter functions * typo lol * Update cl_minimap.gnut * Mode select updated RegisterPlaylistBannerImage and GetPlaylistBannerImage had initially been in another file but that file is not present in r2northstar/client, not much point adding the entirety of menu_playlist here since for a few lines, this also wont modify mixtape but i don't think mixtape menu is used anywhere in northstar * Added rui since basic image cant handle callsigns added ``` NextModeImageCallsign //For calling card icons { ControlName RuiPanel // xpos -12 ypos -12 wide 480 tall 240 visible 1 scaleImage 1 zpos 2 pin_to_sibling NextModeImageFrame pin_corner_to_sibling BOTTOM pin_to_sibling_corner BOTTOM rui "ui/callsign_icon_button.rpak" //For callsign mode images } ``` * Revert "Added rui since basic image cant handle callsigns" This reverts commit b2623ec41ca944fc0ac3386ae0346464da07a8b3. * Revert "Mode select updated" This reverts commit 2c6f430775c84ef252402b6b447b01fd394459a9.
2022-10-08Modlist Hotfixes (#510)v1.9.8-rc3v1.9.8-rc2v1.9.8-rc1uniboi
* fix mod list overflow * better offset validation
2022-09-21Change modlist interface (#401)uniboi
* Change modlist interface * add the settings file * new current mod enabled indicator * Only show requiredOnClient warning when required * filter by required on client status * fix ONLY_REQUIRED instead of ONLY_NOT_REQUIRED * update list slider position when reopening * colorblind colors * convar for reversed list and allow unicode search * better colors for the blind * Update filtered modlist after changing mod status * fix some things * mod enabled color blind icon * move enabled icon
2022-07-26Serverside RUI, but it doesn't stink ( hopefully ) (#435)F1F7Y
* Serverside polls * reset table so mods can wait for response * large message * popup message * announcement * info * status * fix uniboi crash * no need to return id * among * typo * Formatting * bruh * takyon doesn't know how to finish a review * Formatting * Do you not know how to finish a review or what * You should look at gamemode_aitdm for some funky formatting :) * Formatting * Formatting * Finally a good suggestion * fix client misinterpreting assets
2022-06-16Include server description in search (#388)v1.8.1-rc5v1.8.1-rc4v1.8.1-rc3F1F7Y
2022-06-16Localize masterserver errors (#333)Emma Miler
* Dependent commit * Add english localization * Update northstar_client_localisation_mspanish.txt * Add more localizations * Update northstar_client_localisation_spanish.txt * Adhere to code style
2022-06-13Unlock SP when Coop is selected (#383)F1F7Y
2022-06-01Display Northstar version on title screen (#346)v1.8.0-rc2BotchedRPR
* Create main.menu for showing NS version on title screen * Display Northstar version on main menu. Pulling data from Northstar.Custom, now the version of Northstar is displayed on the main menu, above the Respawn logo. * Get version data from Northstar.Client instead of Northstar.Custom * formatted main.menu
2022-04-29Add default sort method for server browser (#303)Emma Miler
* Add default sort method * Do gecko's change * Fixed it * Set default sort mode when opening browser * Update Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> * remove trailing space <3 gecko Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
2022-04-29Add Attrition (#321)F1F7Y
* Skyshow * Attrition score stuff * DropShip and DropPod spawn funcs * Attrition intro * Reaper spawn func * Attrition assault point logic * Cleanup * Match logic + basic spawn algo * Fix crash * Improve ai ? * Add AI weapon setter funcs * Bounty hunt score basics * code cleanup * add cleanup for bored ai * fix issue with failedChecks not being reset properly in cleanup * more cleanup * stop ai spawns on epilogue * don't run aitdm spawning code if we don't have ains/nms * Fix missing nodes crash * initial bounty hunt stuff * oops forgot to push this * me when i'm a competent developer * formatting and such * cap score + proper mp_rise spawns fix * Better squad handler * comment reaper out; needs to be checked out * Fix crash site crash * reapers * minor visual change is what Id call this * bh basic damage scoring * going to push this so there's a base to work with, still doesn't work * fix funny suicide bug :) * I hate crash site + score funnies * comlpex skill issue * final score fix, lets hope so * Hacked spectre fix * 1p npc executions fix * stalkers * Archer Grunts :) * minor fixing * Skyshow * Attrition score stuff * DropShip and DropPod spawn funcs * Attrition intro * Reaper spawn func * Attrition assault point logic * Cleanup * Match logic + basic spawn algo * Fix crash * Improve ai ? * Add AI weapon setter funcs * Bounty hunt score basics * code cleanup * add cleanup for bored ai * fix issue with failedChecks not being reset properly in cleanup * more cleanup * stop ai spawns on epilogue * don't run aitdm spawning code if we don't have ains/nms * Fix missing nodes crash * initial bounty hunt stuff * oops forgot to push this * me when i'm a competent developer * formatting and such * cap score + proper mp_rise spawns fix * Better squad handler * comment reaper out; needs to be checked out * Fix crash site crash * reapers * minor visual change is what Id call this * bh basic damage scoring * going to push this so there's a base to work with, still doesn't work * fix funny suicide bug :) * I hate crash site + score funnies * comlpex skill issue * final score fix, lets hope so * Hacked spectre fix * 1p npc executions fix * stalkers * Archer Grunts :) * minor fixing * Unlock attrition in mode select menu * move archer grunts settings Co-authored-by: BobTheBob <32057864+BobTheBob9@users.noreply.github.com>