Skip to content

Commit

Permalink
Merge branch 'main' into teabag
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse authored Aug 14, 2024
2 parents 0083f1d + 7aa3958 commit 5cc785d
Show file tree
Hide file tree
Showing 110 changed files with 19,576 additions and 626 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/Northstar.Client/mod/resource/northstar_client_localisation_*.txt text diff working-tree-encoding=UTF-16LE-BOM
/Northstar.Client/mod/resource/northstar_client_localisation_*.txt text diff working-tree-encoding=UTF-16LE-BOM

# Highlight `.gnut` like `.nut` files
*.gnut linguist-language=Squirrel
42 changes: 31 additions & 11 deletions .github/nativefuncs.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,7 @@
"helpText":"Returns whether or not a given path leads to a folder.",
"returnTypeString":"bool",
"argTypes":"string path"
},
{
"name":"NSPushGameStateData",
"helpText":"",
"returnTypeString":"void",
"argTypes":"struct gamestate"
}
}
],
"UI":[
{
Expand Down Expand Up @@ -508,6 +502,32 @@
"returnTypeString":"array<string>",
"argTypes":"string modName"
},
{
"name": "NSFetchVerifiedModsManifesto",
"helpText": "Retrieves the verified mods list from the central authority (GitHub).",
"returnTypeString": "void",
"argTypes": ""

},
{
"name": "NSIsModDownloadable",
"helpText": "checks whether a mod is verified and can be auto-downloaded",
"returnTypeString": "bool",
"argTypes": "string name, string version"

},
{
"name": "NSDownloadMod",
"helpText": "downloads a given mod from distant API to local game profile",
"returnTypeString": "void",
"argTypes": "string name, string version"
},
{
"name": "NSGetModInstallState",
"helpText": "get status of the mod currently being installed",
"returnTypeString": "ModInstallState",
"argTypes": ""
},
{
"name":"NSReloadMods",
"helpText":"",
Expand Down Expand Up @@ -724,11 +744,11 @@
"returnTypeString":"bool",
"argTypes":"string path"
},
{
"name":"NSPushUIPresence",
{
"name":"NSGetMasterServerAuthResult",
"helpText":"",
"returnTypeString":"void",
"argTypes":"struct presence"
"returnTypeString":"MasterServerAuthResult",
"argTypes":""
}
]
}
19 changes: 19 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: add-to-project

on:
issues:
types:
- opened
pull_request_target:
types:
- opened

jobs:
add-to-project:
name: Add to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: "https://github.com/orgs/R2Northstar/projects/3"
github-token: "${{ secrets.ADD_TO_PROJECT_PAT }}"
4 changes: 2 additions & 2 deletions .github/workflows/encoding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]

jobs:
check-loc-encoding:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -12,7 +12,7 @@ jobs:
files=$(ls Northstar.Client/mod/resource/northstar_client_localisation_*.txt)
IFS=$'\n'; files=($files); unset IFS; ! file --mime "${files[@]}" | grep -v "charset=utf-16le"
check-missing-translations:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/merge-conflict-auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Merge Conflict Auto Label
on:
workflow_dispatch: # Manual run
push:
branches:
- main
schedule:
- cron: "10 21 * * *" # Runs at 21:10; time was chosen based on contributor activity and low GitHub Actions cron load.

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: mschilde/auto-label-merge-conflicts@master
with:
CONFLICT_LABEL_NAME: "merge conflicts"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 5
WAIT_MS: 5000
10 changes: 10 additions & 0 deletions Northstar.Client/keyvalues/resource/fontfiletable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FontFileTable
{
"arial unicode ms" "resource/Lato-Regular.ttf"

"lucida console" "resource/NorthstarMono.ttf" [$PC]

"arial" "resource/Lato-Regular.ttf"
"arial bold" "resource/Lato-Regular.ttf"
"arial narrow" "resource/Lato-Regular.ttf"
}
21 changes: 18 additions & 3 deletions Northstar.Client/mod.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"Name": "Northstar.Client",
"Description": "Various ui and client changes to fix bugs and add better support for mods",
"Version": "1.16.0",
"Version": "1.19.0",
"LoadPriority": 0,
"InitScript": "cl_northstar_client_init.nut",
"ConVars": [
{
"Name": "allow_mod_auto_download",
"DefaultValue": "0"
},
{
"Name": "filter_hide_empty",
"DefaultValue": "0"
Expand Down Expand Up @@ -36,12 +40,12 @@
{
"Name": "modlist_show_convars",
"DefaultValue": "0",
"Flags": 16777216
"Flags": "ARCHIVE_PLAYERPROFILE"
},
{
"Name": "modlist_reverse",
"DefaultValue": "0",
"Flags": 16777216
"Flags": "ARCHIVE_PLAYERPROFILE"
}
],
"Scripts": [
Expand Down Expand Up @@ -82,6 +86,10 @@
"After": "NSUpdateGameStateClientStart"
}
},
{
"Path": "ui/menu_ns_moddownload.nut",
"RunOn": "UI"
},
{
"Path": "ui/menu_ns_serverbrowser.nut",
"RunOn": "UI",
Expand Down Expand Up @@ -128,6 +136,13 @@
{
"Path": "ui/ui_mouse_capture.nut",
"RunOn": "UI"
},
{
"Path": "ui/atlas_auth.nut",
"RunOn": "UI",
"UICallback": {
"After": "AtlasAuthDialog"
}
}
],
"Localisation": [
Expand Down
40 changes: 0 additions & 40 deletions Northstar.Client/mod/resource/fontfiletable.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
"classic_rodeo" "Classic Rodeo"
"oob_timer_enabled" "Out of Bounds Timer"
"riff_instagib" "Instagib Mode"
"player_force_respawn" "Forced Respawn"

"riff_player_bleedout" "Pilot Bleedout"
"player_bleedout_forceHolster" "Holster weapons when downed"
Expand Down Expand Up @@ -315,6 +316,7 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
"SHOW_ONLY_DISABLED" "Only Disabled"
"SHOW_ONLY_NOT_REQUIRED" "Only Optional Mods"
"SHOW_ONLY_REQUIRED" "Only Required Mods"
"MOD_REQUIRED_WARNING" " : This mod may get (un)loaded when joining a server"

// Maps menu
"HIDE_LOCKED" "Hide locked"
Expand All @@ -330,9 +332,14 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
"UNAUTHORIZED_PWD" "Wrong password"
"STRYDER_RESPONSE" "Couldn't parse stryder response"
"PLAYER_NOT_FOUND" "Couldn't find player account"
"INVALID_MASTERSERVER_TOKEN" "Invalid or expired masterserver token"
"INVALID_MASTERSERVER_TOKEN" "Invalid or expired masterserver token, try restarting EA App."
"JSON_PARSE_ERROR" "Error parsing json response"
"UNSUPPORTED_VERSION" "The version you are using is no longer supported"

"AUTHENTICATION_FAILED_HEADER" "Authentication Failed"
"AUTHENTICATION_FAILED_BODY" "Failed to authenticate with Atlas!"
"AUTHENTICATION_FAILED_ERROR_CODE" "Error code: ^DB6F2C00%s1^"
"AUTHENTICATION_FAILED_HELP" "Help"

// Mod Settings
"MOD_SETTINGS" "Mod Settings"
Expand All @@ -354,5 +361,46 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
"MOD_SETTINGS_RESET_ALL" "Reset All"
"NO_RESULTS" "No results."
"NO_MODS" "No settings available! Install more mods at ^5588FF00northstar.thunderstore.io^0."

// Toggleable progression
"TOGGLE_PROGRESSION" "Toggle Progression"
"Y_BUTTON_TOGGLE_PROGRESSION" "%[Y_BUTTON|]% Toggle Progression"

"PROGRESSION_TOGGLE_ENABLED_HEADER" "Disable Progression?"
"PROGRESSION_TOGGLE_ENABLED_BODY" "Titans, Weapons, Factions, Skins, etc. will all be unlocked and usable at any time.\n\nThis can be changed at any time in the multiplayer lobby."

"PROGRESSION_TOGGLE_DISABLED_HEADER" "Enable Progression?"
"PROGRESSION_TOGGLE_DISABLED_BODY" "Titans, Weapons, Factions, Skins, etc. will need to be unlocked by levelling up, or bought with Merits.\n\nThis can be changed at any time in the multiplayer lobby.\n\n^CC000000Warning: if you have currently equipped any items that you do not have unlocked, they will be reset!"

"PROGRESSION_ENABLED_HEADER" "Progression Enabled!"
"PROGRESSION_ENABLED_BODY" "^CCCC0000Progression has been enabled.^\n\nTitans, Weapons, Factions, Skins, etc. will need to be unlocked by levelling up, or bought with Merits.\n\nThis can be changed at any time in the multiplayer lobby."

"PROGRESSION_DISABLED_HEADER" "Progression Disabled!"
"PROGRESSION_DISABLED_BODY" "^CCCC0000Progression has been disabled.^\n\nTitans, Weapons, Factions, Skins, etc. will all be unlocked and usable at any time.\n\nThis can be changed at any time in the multiplayer lobby."

"PROGRESSION_ANNOUNCEMENT_BODY" "^CCCC0000Progression can now be enabled!^\n\nNorthstar now supports vanilla progression, meaning you can choose to unlock Weapons, Skins, Titans, etc. through levelling up and completing challenges.\n\nYou can enable progression using the button at the bottom of the lobby screen.\n\nThis can be changed at any time."

// Mod downloading
"MISSING_MOD" "Missing mod \"%s1\" v%s2"
"WRONG_MOD_VERSION" "Server has mod \"%s1\" v%s2 while you have v%s3"
"MOD_NOT_VERIFIED" "(mod is not verified, and couldn't be downloaded automatically)"
"MOD_DL_DISABLED" "(automatic mod downloading is disabled)"
"MANIFESTO_FETCHING_TITLE" "Setting up mod download"
"MANIFESTO_FETCHING_TEXT" "Retrieving the list of verified mods..."
"DOWNLOADING_MOD_TITLE" "Downloading mod"
"DOWNLOADING_MOD_TITLE_W_PROGRESS" "Downloading mod (%s1%)"
"DOWNLOADING_MOD_TEXT" "Downloading %s1 v%s2..."
"DOWNLOADING_MOD_TEXT_W_PROGRESS" "Downloading %s1 v%s2...\n(%s3/%s4 MB)"
"CHECKSUMING_TITLE" "Checksuming mod"
"CHECKSUMING_TEXT" "Verifying contents of %s1 v%s2..."
"EXTRACTING_MOD_TITLE" "Extracting mod (%s1%)"
"EXTRACTING_MOD_TEXT" "Extracting %s1 v%s2...\n(%s3/%s4 MB)"
"FAILED_DOWNLOADING" "Failed downloading mod"
"FAILED_READING_ARCHIVE" "An error occurred while reading mod archive."
"FAILED_WRITING_TO_DISK" "An error occurred while extracting mod files to the filesystem."
"MOD_FETCHING_FAILED" "Mod archive could not be downloaded from Thunderstore."
"MOD_CORRUPTED" "Downloaded archive checksum does not match verified signature."
"NO_DISK_SPACE_AVAILABLE" "There is not enough space on your disk."
"MOD_FETCHING_FAILED_GENERAL" "Mod extraction failed. Check logs for more details."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Choisissez Oui si vous êtes d'accord. Ce choix peut être modifié à tout inst
"UNAUTHORIZED_PWD" "Mot de passe incorrect"
"STRYDER_RESPONSE" "Impossible d'analyser la réponse de Stryder"
"PLAYER_NOT_FOUND" "Impossible de trouver le compte du joueur"
"INVALID_MASTERSERVER_TOKEN" "Jeton du server maître invalide ou expiré"
"INVALID_MASTERSERVER_TOKEN" "Token du server maître invalide ou expiré, veuillez relancer l'application EA."
"JSON_PARSE_ERROR" "Une erreur est survenue durant l'analyse JSON"
"UNSUPPORTED_VERSION" "La version que vous utilisez n'est plus supportée"

Expand All @@ -341,5 +341,43 @@ Choisissez Oui si vous êtes d'accord. Ce choix peut être modifié à tout inst
"SHOW_ONLY_NOT_REQUIRED" "Uniquement les mods optionnels"
"NO_RESULTS" "Aucun résultat."
"NO_MODS" "Aucun paramètre trouvé ! Installez d'autres mods depuis ^5588FF00northstar.thunderstore.io^0."
"player_force_respawn" "Réapparition forcée"
"PROGRESSION_TOGGLE_ENABLED_HEADER" "Désactiver la progression ?"
"PROGRESSION_TOGGLE_ENABLED_BODY" "Les Titans, Armes, Factions, Skins, et autres seront débloqués et utilisables en tout temps.\n\nPeut être changé à n'importe que moment dans le salon multijoueurs."
"PROGRESSION_TOGGLE_DISABLED_HEADER" "Activer la progression ?"
"PROGRESSION_ENABLED_HEADER" "Progression activée !"
"PROGRESSION_DISABLED_HEADER" "Progression désactivée !"
"PROGRESSION_DISABLED_BODY" "^CCCC0000La progression a été désactivée.^\n\nLes Titans, Armes, Factions, Skins, et autres seront débloqués et utilisables en tout temps.\n\nPeut être changé à n'importe que moment dans le salon multijoueurs."
"PROGRESSION_TOGGLE_DISABLED_BODY" "Les Titans, Armes, Factions, Skins et autres seront débloqués par la monté en niveau ou par leur achats en mérites.\n\nPeut être changé à n'importe que moment dans le salon multijoueurs.\n\n^CC000000Warning : Si vous équipez des objets que vous n'avez pas encore débloqués, ils seront déséquipés !"
"PROGRESSION_ENABLED_BODY" "^CCCC0000La progression a été activée.^\n\nLes Titans, Armes, Factions, Skins et autres seront débloqués par la monté en niveau ou par leur achats en mérites.\n\nPeut être changé à n'importe que moment dans le salon multijoueurs."
"TOGGLE_PROGRESSION" "Activer la progression"
"Y_BUTTON_TOGGLE_PROGRESSION" "%[Y_BUTTON|]% Activer la progression"
"PROGRESSION_ANNOUNCEMENT_BODY" "^CCCC0000Le système de progression peut être activé !^\n\nNorthstar supporte désormais le système de progression du jeu original, vous permettant de choisir si vous souhaitez débloquer les armes, skins, titans etc. en gagnant des niveaux et en complétant des défis.\n\nVous pouvez activer la progression en utilisant le bouton en bas de l'écran d'accueil.\n\nCeci peut être changé à tout moment."
"AUTHENTICATION_FAILED_HEADER" "Échec de l'authentification"
"AUTHENTICATION_FAILED_HELP" "Aide"
"AUTHENTICATION_FAILED_ERROR_CODE" "Code d'erreur : ^DB6F2C00%s1^"
"AUTHENTICATION_FAILED_BODY" "L'authentification avec Atlas a échoué."
"MISSING_MOD" "Mod manquant \"%s1\" v%s2"
"MOD_REQUIRED_WARNING" " : Ce mod peut être (dé)chargé automatiquement en rejoignant un serveur"
"EXTRACTING_MOD_TITLE" "Extraction du mod (%s1%)"
"MOD_NOT_VERIFIED" "(ce mod n'est pas vérifié, et n'a donc pas pu être automatiquement téléchargé)"
"MOD_DL_DISABLED" "(le téléchargement automatique de mods est désactivé)"
"DOWNLOADING_MOD_TITLE" "Téléchargement du mod"
"DOWNLOADING_MOD_TITLE_W_PROGRESS" "Téléchargement du mod (%s1%)"
"DOWNLOADING_MOD_TEXT" "Téléchargement de %s1 v%s2..."
"WRONG_MOD_VERSION" "Le serveur requiert la version v%s2 du mod \"%s1\" (vous avez la version v%s3)"
"DOWNLOADING_MOD_TEXT_W_PROGRESS" "Téléchargement de %s1 v%s2...\n(%s3/%s4 Mo)"
"CHECKSUMING_TITLE" "Vérification de la somme de contrôle du mod"
"CHECKSUMING_TEXT" "Vérification du contenu de %s1 v%s2..."
"EXTRACTING_MOD_TEXT" "Extraction de %s1 v%s2...\n(%s3/%s4 Mo)"
"FAILED_DOWNLOADING" "Echec du téléchargement du mod"
"FAILED_READING_ARCHIVE" "Une erreur est survenue lors de la lecture de l'archive."
"FAILED_WRITING_TO_DISK" "Une erreur est survenue lors de l'extraction des fichiers."
"MOD_FETCHING_FAILED" "L'archive n'a pas pu être téléchargée depuis Thunderstore."
"MOD_CORRUPTED" "La somme de contrôle de l'archive ne correspond pas à la signature vérifiée."
"NO_DISK_SPACE_AVAILABLE" "L'espace restant sur votre disque est insuffisant."
"MOD_FETCHING_FAILED_GENERAL" "L'extraction du mod a échoué. Consultez le journal pour plus d'informations."
"MANIFESTO_FETCHING_TITLE" "Préparation du téléchargement du mod"
"MANIFESTO_FETCHING_TEXT" "Récupération de la liste des mods vérifiés..."
}
}
Loading

0 comments on commit 5cc785d

Please sign in to comment.