Compare commits

...

14 Commits

Author SHA1 Message Date
JustArchi
c27deb20a8 AppVeyor: Misc 2017-07-15 05:21:25 +02:00
JustArchi
b231abf19f AppVeyor: Webhook test 2017-07-15 04:45:44 +02:00
JustArchi
f17f2959b7 Don't put foil cards by default in matchable types, #586 2017-07-14 17:16:45 +02:00
JustArchi
9f7886df3f Travis: Cleanup 2017-07-14 16:55:34 +02:00
JustArchi
ecc0dac4d9 Closes #593 2017-07-14 16:24:30 +02:00
JustArchi
e2f9ebc715 Travis: bump to preview2 2017-07-14 16:08:13 +02:00
JustArchi
93716218a5 Misc 2017-07-13 06:08:52 +02:00
JustArchi
db149d16a7 Fix AutoUpdate for self-builds, #586 2017-07-13 05:37:17 +02:00
JustArchi
6d22b19ef3 Announce MatchableTypes 2017-07-10 23:04:33 +02:00
JustArchi
0f6cf10179 Bump 2017-07-10 17:48:36 +02:00
JustArchi
9a745ffb97 Translations update 2017-07-10 17:42:28 +02:00
JustArchi
df95c6c6b0 Remove debug spew 2017-07-10 17:40:18 +02:00
JustArchi
9711187940 Misc 2017-07-10 17:32:22 +02:00
JustArchi
f009f1b834 Bump 2017-07-10 17:14:31 +02:00
28 changed files with 570 additions and 197 deletions

View File

@@ -17,44 +17,44 @@ mono: none
# ASF requires .NET Core 2.0+
# TODO: We should target stable 2.0.0 once it's released
# TODO: Update at least to preview2 once https://github.com/travis-ci/travis-ci/issues/8037 is fixed
# TODO: Add --no-restore to dotnet test when we get preview2+
dotnet: 2.0.0-preview1-005977
dotnet: 2.0.0-preview2-006497
env:
global:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
before_script: dotnet restore
script:
- set -e
- dotnet restore
- dotnet build -c Release
- dotnet test -c Release --no-build ArchiSteamFarm.Tests
- dotnet publish -c Release -o out/generic
- echo "generic" > "ArchiSteamFarm/out/generic/ArchiSteamFarm.version"
- dotnet publish -c Release -r win-x64 -o out/win-x64
- echo "win-x64" > "ArchiSteamFarm/out/win-x64/ArchiSteamFarm.version"
- dotnet publish -c Release -r linux-x64 -o out/linux-x64
- echo "linux-x64" > "ArchiSteamFarm/out/linux-x64/ArchiSteamFarm.version"
- dotnet publish -c Release -r linux-arm -o out/linux-arm
- echo "linux-arm" > "ArchiSteamFarm/out/linux-arm/ArchiSteamFarm.version"
- dotnet publish -c Release -r osx-x64 -o out/osx-x64
- echo "osx-x64" > "ArchiSteamFarm/out/osx-x64/ArchiSteamFarm.version"
- |
set -e
RUNTIMES="generic win-x64 linux-x64 linux-arm osx-x64"
dotnet build -c Release
dotnet test -c Release --no-build --no-restore ArchiSteamFarm.Tests
for RUNTIME in $RUNTIMES; do
if [ "$RUNTIME" = "generic" ]; then
dotnet publish -c Release -o "out/${RUNTIME}"
else
dotnet publish -c Release -r "$RUNTIME" -o "out/${RUNTIME}"
fi
echo "$RUNTIME" > "ArchiSteamFarm/out/${RUNTIME}/ArchiSteamFarm.version"
done
matrix:
# We can use fast finish, as we don't need to wait for allow_failures builds to mark build as success
fast_finish: true
allow_failures:
# TODO: We allow OS X to fail until https://github.com/travis-ci/travis-ci/issues/7757 is fixed
- os: osx
include:
# We're building ASF with dotnet on latest versions of Linux and OS X
# Ref: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
# Ref: https://docs.travis-ci.com/user/trusty-ci-environment/
# Ref: https://docs.travis-ci.com/user/osx-ci-environment/
- os: linux
# Ref: https://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
sudo: false
- os: osx
# Ref: https://docs.travis-ci.com/user/osx-ci-environment/
osx_image: xcode9

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

View File

@@ -5,7 +5,17 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ErrorReport>none</ErrorReport>
<ApplicationIcon>ASF.ico</ApplicationIcon>
<Copyright>Copyright © ArchiSteamFarm 2015-2017</Copyright>
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm;osx-x64</RuntimeIdentifiers>
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
<Authors>JustArchi</Authors>
<Company>JustArchi</Company>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JustArchi/ArchiSteamFarm</PackageProjectUrl>
<RepositoryUrl>https://github.com/JustArchi/ArchiSteamFarm.git</RepositoryUrl>
<PackageIconUrl>https://github.com/JustArchi/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
<RepositoryType>Git</RepositoryType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

View File

@@ -37,6 +37,7 @@ using ArchiSteamFarm.Localization;
namespace ArchiSteamFarm {
internal static class ASF {
private const byte AutoUpdatePeriodInHours = 24;
private const string DefaultVersion = "source"; // Default entry of ArchiSteamFarm.version
internal static readonly ArchiLogger ArchiLogger = new ArchiLogger(SharedInfo.ASF);
@@ -81,6 +82,10 @@ namespace ArchiSteamFarm {
return;
}
if (version.Equals(DefaultVersion)) {
return;
}
if ((AutoUpdatesTimer == null) && Program.GlobalConfig.AutoUpdates) {
TimeSpan autoUpdatePeriod = TimeSpan.FromHours(AutoUpdatePeriodInHours);
@@ -290,6 +295,7 @@ namespace ArchiSteamFarm {
}
switch (version) {
case DefaultVersion:
case "generic":
case "linux-arm":
case "linux-x64":

View File

@@ -3,14 +3,21 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyVersion>3.0.0.3</AssemblyVersion>
<FileVersion>3.0.0.3</FileVersion>
<LangVersion>7</LangVersion>
<AssemblyVersion>3.0.0.5</AssemblyVersion>
<FileVersion>3.0.0.5</FileVersion>
<LangVersion>latest</LangVersion>
<ErrorReport>none</ErrorReport>
<ApplicationIcon>ASF.ico</ApplicationIcon>
<Copyright>Copyright © ArchiSteamFarm 2015-2017</Copyright>
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm;osx-x64</RuntimeIdentifiers>
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
<Authors>JustArchi</Authors>
<Company>JustArchi</Company>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JustArchi/ArchiSteamFarm</PackageProjectUrl>
<RepositoryUrl>https://github.com/JustArchi/ArchiSteamFarm.git</RepositoryUrl>
<PackageIconUrl>https://github.com/JustArchi/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
<RepositoryType>Git</RepositoryType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -19,7 +26,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.5.2-beta1" />
<PackageReference Include="HtmlAgilityPack" Version="1.5.2-beta2" />
<PackageReference Include="Humanizer" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.0.0-pre-02" />
@@ -44,6 +51,9 @@
</ItemGroup>
<ItemGroup>
<None Update="ArchiSteamFarm.version">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="config\ASF.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

View File

@@ -0,0 +1 @@
source

View File

@@ -82,7 +82,6 @@ namespace ArchiSteamFarm {
private readonly SemaphoreSlim InitializationSemaphore = new SemaphoreSlim(1);
private readonly SemaphoreSlim LootingSemaphore = new SemaphoreSlim(1);
private readonly ConcurrentHashSet<uint> OwnedPackageIDs = new ConcurrentHashSet<uint>();
private readonly Statistics Statistics;
private readonly SteamApps SteamApps;
private readonly SteamClient SteamClient;

View File

@@ -94,7 +94,6 @@ namespace ArchiSteamFarm {
[JsonProperty(ObjectCreationHandling = ObjectCreationHandling.Replace, Required = Required.DisallowNull)]
internal readonly HashSet<Steam.Item.EType> MatchableTypes = new HashSet<Steam.Item.EType> {
Steam.Item.EType.FoilTradingCard,
Steam.Item.EType.TradingCard
};

View File

@@ -152,7 +152,7 @@ namespace ArchiSteamFarm {
continue;
}
Utilities.StartBackgroundFunction(() => HandleRequest(context));
Utilities.StartBackgroundFunction(() => HandleRequest(context), false);
}
}

View File

@@ -183,14 +183,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Neueste Version konnte nicht überprüft werden!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Konnte mit der Aktualisierung nicht fortfahren, weil es keine Anlage gibt, welche sich auf die aktuell betriebene Version bezieht! Automatische Aktualisierung auf diese Version ist nicht möglich.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Konnte nicht mit Aktualisierung fortfahren, weil diese Version keine Anlage enthält!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Anfrage für Benutzereingabe erhalten, aber der Prozess läuft im Headless-Modus!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Verweigere die Bearbeitung dieser Anfrage, weil die SteamOwnerID nicht festgelegt wurde!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Vorgang wird beendet...</value>
</data>
@@ -240,7 +245,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Prüfe auf neue Version...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Lade neue Version herunter: {0} ({1} MB)... Während du wartest, denk darüber nach zu spenden, wenn du die geleistete Arbeit zu schätzen weißt! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Aktualisierung abgeschlossen!</value>
</data>
@@ -279,7 +287,10 @@ StackTrace:
<value>Bitte gebe undokumentierten Wert von {0} ein: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Bitte gebe deinen IPC-Host ein: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Unbekannten Wert für {0} erhalten, bitte melde folgendes: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -288,10 +299,20 @@ StackTrace:
<value>Das Spielen von mehr als {0} Spielen gleichzeitig ist nicht möglich, nur die ersten {0} Einträge von {1} werden verwendet!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Der IPC-Dienst konnte wegen einer AddressAccessDeniedException nicht gestartet werden! Wenn du den IPC-Service von ASF nutzen möchtest, erwäge es ASF als Administrator auszuführen oder die korrekten Berechtigungen zu erteilen!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Auf IPC-Befehl geantwortet: {0} mit {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>ICP-Server bereit!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Starte IPC-Server auf {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Dieser Bot hat bereits angehalten!</value>
</data>

View File

@@ -184,14 +184,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Konnte aktuellste Version nicht überprüfen!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Konnte mit der Aktualisierung nicht fortfahren, weil es keine Anlage gibt, welche sich auf die aktuell betriebene Version bezieht! Automatische Aktualisierung auf diese Version ist nicht möglich.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Konnte nicht mit Aktualisierung fortfahren, weil diese Version keine Anlage enthält!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Anfrage für Benutzereingabe erhalten, aber der Prozess läuft im Headless-Modus!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Verweigere die Bearbeitung dieser Anfrage, weil die SteamOwnerID nicht festgelegt wurde!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Beende...</value>
</data>
@@ -241,7 +246,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Prüfe auf neue Version...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Lade neue Version herunter: {0} ({1} MB)... Während du wartest, denk darüber nach zu spenden, wenn du die geleistete Arbeit zu schätzen weißt! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Aktualisierung abgeschlossen!</value>
</data>
@@ -280,7 +288,10 @@ StackTrace:
<value>Bitte gebe undokumentierten Wert von {0} ein: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Bitte gebe deinen IPC-Host ein: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Unbekannten Wert für {0} erhalten, bitte melde folgendes: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@ StackTrace:
<value>Das Spielen von mehr als {0} Spielen gleichzeitig ist nicht möglich, nur die ersten {0} Einträge von {1} werden verwendet!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Der IPC-Dienst konnte wegen einer AddressAccessDeniedException nicht gestartet werden! Wenn du den IPC-Service von ASF nutzen möchtest, erwäge es ASF als Administrator auszuführen oder die korrekten Berechtigungen zu erteilen!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Auf IPC-Befehl geantwortet: {0} mit {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>ICP-Server bereit!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Starte IPC-Server auf {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Dieser Bot hat bereits angehalten!</value>
</data>

View File

@@ -183,14 +183,19 @@ Trazo de pila:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>¡No se pudo comprobar la última versión!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>No se ha podido proceder con la actualización porque no hay ninguna opcion que se relacione con la version actual! La actualización automatica a esa version no es posible.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>¡No se puede continuar con una actualización porque esa versión no incluye ningún recurso!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Recibida una solicitud de entrada del usuario, ¡pero el proceso se está ejecutando en modo servidor!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>¡Solicitud denegada porque SteamOwnerID no esta establecido!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Saliendo...</value>
</data>
@@ -240,7 +245,10 @@ Trazo de pila:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Comprobando si existe una nueva versión...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Descargando la nueva versión: {0} ({1} MB)... ¡Mientras espera, considere donar si aprecia el trabajo que se está realizando! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>¡Proceso de actualización finalizado!</value>
</data>
@@ -279,7 +287,10 @@ Trazo de pila:
<value>Por favor ingresa el valor indocumentado de {0}: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Por favor ingresa tu host WFC: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Recibido valor desconocido para {0}. Por favor, informa de ello: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -288,10 +299,20 @@ Trazo de pila:
<value>¡Ejecutar más de {0} juegos a la vez no es posible, sólo se usarán las primeras {0} entradas de {1}!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>¡El servicio de WCF no pudo ser iniciado por un error en AddressAccessDeniedException! Si deseas usar el servicio de WCF proporcionado por ASF, intenta iniciar ASF como administrador, o dar los permisos adecuados!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Se ha respondido al comando WCF: {0} con: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>¡Servidor WCF listo!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Iniciando servidor WCF en {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>¡Este bot ya se ha detenido!</value>
</data>
@@ -647,6 +668,12 @@ Trazo de pila:
<value>Uso de memoria actual: {0} MB.</value>
<comment>{0} will be replaced by number (in megabytes) of memory being used</comment>
</data>
<data name="ClearingDiscoveryQueue" xml:space="preserve">
<value>Haciendo la lista de descubrimientos de Steam #{0}...</value>
<comment>{0} will be replaced by queue number</comment>
</data>
<data name="DoneClearingDiscoveryQueue" xml:space="preserve">
<value>Lista de decubrimientos de Steam #{0} completada.</value>
<comment>{0} will be replaced by queue number</comment>
</data>
</root>

View File

@@ -191,7 +191,10 @@ StackTrace :
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Réception d'une demande d'entrée utilisateur, mais le processus en cours tourne en mode non-interactif!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Refus de traiter la requête car le paramètre SteamOwnerID nest pas défini !</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Fermeture...</value>
</data>
@@ -241,7 +244,10 @@ StackTrace :
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Recherche d'une nouvelle version...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Téléchargement de la nouvelle version en cours: {0} ({1} MB)... En attendant, envisagez de faire un don si vous appréciez le travail effectué ! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Mise à jour terminée !</value>
</data>
@@ -648,6 +654,12 @@ StackTrace :
<value>Mémoire actuellement utilisée : {0} MB.</value>
<comment>{0} will be replaced by number (in megabytes) of memory being used</comment>
</data>
<data name="ClearingDiscoveryQueue" xml:space="preserve">
<value>Consultation de la liste de découvertes en cours #{0}...</value>
<comment>{0} will be replaced by queue number</comment>
</data>
<data name="DoneClearingDiscoveryQueue" xml:space="preserve">
<value>Fini de consulter la liste de découvertes #{0}.</value>
<comment>{0} will be replaced by queue number</comment>
</data>
</root>

View File

@@ -191,7 +191,10 @@ StackTrace :
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Réception d'une demande d'entrée utilisateur, mais le processus en cours tourne en mode non-interactif !</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Refus de traiter la requête car le paramètre SteamOwnerID nest pas défini !</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Fermeture...</value>
</data>
@@ -241,7 +244,10 @@ StackTrace :
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Recherche d'une nouvelle version...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Téléchargement de la nouvelle version en cours: {0} ({1} MB)... En attendant, envisagez de faire un don si vous appréciez le travail effectué ! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Mise à jour terminée !</value>
</data>
@@ -249,7 +255,7 @@ StackTrace :
<value>Une nouvelle version d'ASF est disponible ! Envisagez de la mettre à jour !</value>
</data>
<data name="UpdateVersionInfo" xml:space="preserve">
<value>Version installée : {0} | Version la plus récente : {1}</value>
<value>Version locale : {0} | Version la plus récente : {1}</value>
<comment>{0} will be replaced by current version, {1} will be replaced by remote version</comment>
</data>
<data name="UserInputDeviceID" xml:space="preserve">
@@ -648,6 +654,12 @@ StackTrace :
<value>Mémoire actuellement utilisée : {0} MB.</value>
<comment>{0} will be replaced by number (in megabytes) of memory being used</comment>
</data>
<data name="ClearingDiscoveryQueue" xml:space="preserve">
<value>Consultation de la liste de découvertes en cours #{0}...</value>
<comment>{0} will be replaced by queue number</comment>
</data>
<data name="DoneClearingDiscoveryQueue" xml:space="preserve">
<value>Fini de consulter la liste de découvertes #{0}.</value>
<comment>{0} will be replaced by queue number</comment>
</data>
</root>

View File

@@ -181,14 +181,19 @@
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Nepavyko patikrinti naujausios versijos!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Nebuvo galima tęsti naujinimo, nes nėra jokio objekto, kuris yra susijęs su šiuo metu įdiegta versija! Automatinis naujinimas į tą versija yra neįmanoma.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Nebuvo galima tęsti su atnaujinimu, nes ta versija neapima jokios informacijos!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Gautas prašymas reikalaujantis naudotojo įvesties, bet procesas veikia "headless" mode!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Atsisakoma apdoroti užklausa, nes SteamOwnerID nėra nustatytas!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Stabdoma...</value>
</data>
@@ -238,7 +243,10 @@
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Ieškoma naujos versijos...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Atsiunčiama nauja versija: {0} ({1} MB)... Kol laukiate, apsvarstykite, gal norite paaukoti jei vertinate daromą darbą! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Naujinimo procesas baigtas!</value>
</data>
@@ -277,7 +285,10 @@
<value>Prašome įvesti nedokumentuotą {0} reikšmę: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Prašome įvesti savo IPC hostingą: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Gauta nežinoma reikšmė, {0}, prašome pranešti apie tai: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -286,10 +297,20 @@
<value>Žaisti daugiau negu {0} žaidimų vienu metu yra neįmanoma, bus naudojamas tik pirmasis {0} įrašas iš {1}!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>IPC tarnybos nepavyko paleisti dėl "AddressAccessDeniedException"! Jei norite naudotis IPC tarnybomis kurias teikia ASF, apsvarstykite pradėti ASF kaip administratorius, arba suteikti atitinkamus leidimus!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Atsakyta į IPC komandą: {0} su: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC serveris paruoštas!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Paleidžiamas IPC serveris {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Šis botas jau sustabdytas!</value>
</data>

View File

@@ -183,14 +183,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Controle voor de laatste versie is mislukt!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Kon niet verdergaan met updaten, omdat er geen bestand gerelateerd is aan de reeds werkende versie! Automatisch updaten van deze versie is niet mogelijk.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Kon niet verdergaan met updaten, omdat deze updateversie geen bestanden bevat!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Aanvraag voor gebruikersinvoer ontvangen, maar het proces draait in de headless mode!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Het verzoek wordt niet in behandeling genomen omdat het SteamOwnerID niet is ingesteld!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Afsluiten...</value>
</data>
@@ -240,7 +245,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Controleren op nieuwe versie...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Nieuwe versie wordt gedownload: {0} ({1} MB)... Als je het gedane werk waardeert, overweeg dan tijdens het wachten om te doneren! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Update is afgerond!</value>
</data>
@@ -280,7 +288,10 @@ StackTrace:
<value>Geef de ongedocumenteerde waarde van {0} op: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Voer je IPC host in: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Onbekende waarde ontvangen voor {0}, gelieven dit melden: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@ StackTrace:
<value>Het gelijktijdig spelen van meer dan {0} spellen is niet mogelijk, alleen de eerste {0} spellen van {1} worden gespeeld!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>IPC service kan niet worden gestart vanwege de AddressAccessDeniedException! Als je gebruik wilt maken van de IPC service van ASF, start ASF als administrator of geef de juiste machtigingen!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Gereageerd op IPC opdracht: {0} met: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC server gereed!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>IPC server starten op {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Deze bot is al gestopt!</value>
</data>

View File

@@ -183,14 +183,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Laatste versie kon niet worden gecontroleerd!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Kon niet verdergaan met updaten, omdat er geen bestand gerelateerd is aan de reeds werkende versie! Automatisch updaten van deze versie is niet mogelijk.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Kon niet verdergaan met updaten, omdat deze updateversie geen bestanden bevat!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Aanvraag voor gebruikersinvoer ontvangen, maar het proces draait in de headless mode!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Het verzoek wordt niet in behandeling genomen omdat het SteamOwnerID niet is ingesteld!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Afsluiten...</value>
</data>
@@ -240,7 +245,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Controleren op nieuwe versie...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Nieuwe versie wordt gedownload: {0} ({1} MB)... Als je het gedane werk waardeert, overweeg dan tijdens het wachten om te doneren! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Update is afgerond!</value>
</data>
@@ -280,7 +288,10 @@ StackTrace:
<value>Geef de ongedocumenteerde waarde van {0} op: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Voer je IPC host in: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Onbekende waarde ontvangen voor {0}, graag dit melden: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@ StackTrace:
<value>Het gelijktijdig spelen van meer dan {0} spellen is niet mogelijk, alleen de eerste {0} spellen van {1} worden gespeeld!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>IPC service kan niet worden gestart vanwege de AddressAccessDeniedException! Als je gebruik wilt maken van de IPC service van ASF, start ASF als administrator of geef de juiste machtigingen!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Gereageerd op IPC opdracht: {0} met: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC server gereed!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>IPC server starten op {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Deze bot is al gestopt!</value>
</data>

View File

@@ -184,14 +184,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Não foi possível verificar a última versão!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Não foi possível prosseguir com a atualização porque não há nenhum recurso relacionado a versão atualmente em execução! Atualização automática para esta versão não é possível.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Não foi possível prosseguir com a atualização pois esta versão não inclui nenhum arquivo!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Recebido um pedido de entrada feito pelo usuário, mas o processo está sendo executado em modo headless!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Recusando-se a lidar com a requisição porque SteamOwnerID não está configurado!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Saindo...</value>
</data>
@@ -241,7 +246,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Verificando se há atualizações...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Baixando uma nova versão: {0} ({1} MB)... Enquanto aguarda, considere doar se você aprecia o nosso trabalho! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Processo de atualização finalizado!</value>
</data>
@@ -280,7 +288,10 @@ StackTrace:
<value>Por favor, insira o valor não documentado de {0}: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Por favor insira o seu host IPC: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Valor desconhecido recebido para {0}. Por favor, reporte isto: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@ StackTrace:
<value>Não é possível jogar mais de {0} jogos ao mesmo tempo, apenas os primeiros {0} jogos de {1} serão usados!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Não foi possível iniciar o serviço IPC devido a AddressAccessDeniedException! Se você quer utilizar o serviço IPC fornecido pelo ASF, considere iniciar o ASF como administrador, ou dando as permissões necessárias!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Respondeu ao comando IPC: {0} com: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>Servidor IPC pronto!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Iniciando servidor IPC em {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Este bot já parou!</value>
</data>

View File

@@ -121,7 +121,10 @@
<value>Aceitando a troca: {0}</value>
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="AutoUpdateCheckInfo" xml:space="preserve">
<value>ASF vai automaticamente procurar por novas versões a cada {0}.</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "24 hours")</comment>
</data>
<data name="Content" xml:space="preserve">
<value>Conteúdo:
{0}</value>
@@ -132,7 +135,7 @@
<comment>{0} will be replaced by name of the configuration property, {1} will be replaced by invalid value</comment>
</data>
<data name="ErrorEarlyFatalExceptionInfo" xml:space="preserve">
<value>ASF V{0} foi executado em exceção fatal antes do núcleo do módulo de log foi capaz de inicializar!</value>
<value>ASF V{0} encontrou uma exceção fatal antes que o núcleo do módulo de log foi sequer capaz de inicializar!</value>
<comment>{0} will be replaced by version number</comment>
</data>
<data name="ErrorEarlyFatalExceptionPrint" xml:space="preserve">
@@ -181,16 +184,21 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Não foi possível verificar a ultima versão!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Não se conseguiu prosseguir com a atualização porque não há nenhum recurso que se relacione com a versão atual! Foi impossível atualizar automaticamente para essa versão.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Não foi possível prosseguir com uma atualização!</value>
<value>Não foi possível prosseguir com a atualização porque essa versão não incluí recursos!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>O pedido de entrada do usuário foi recebido, mas o processo está sendo executado no modo não-interativo!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Recusando-se a lidar com o pedido, porque SteamOwnerID não está definido!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>A sair...</value>
<value>Saindo...</value>
</data>
<data name="WarningFailed" xml:space="preserve">
<value>Erro!</value>
@@ -206,27 +214,27 @@ StackTrace:
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="LoggingIn" xml:space="preserve">
<value>A entrar em {0}...</value>
<value>A iniciar sessão em {0}...</value>
<comment>{0} will be replaced by service's name</comment>
</data>
<data name="NoBotsAreRunning" xml:space="preserve">
<value>Sem bots ligados, a sair...</value>
</data>
<data name="RefreshingOurSession" xml:space="preserve">
<value>Atualizando a nossa sessão!</value>
<value>A atualizar a nossa sessão!</value>
</data>
<data name="RejectingTrade" xml:space="preserve">
<value>Rejeitando a troca: {0}</value>
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="Restarting" xml:space="preserve">
<value>Reniciando...</value>
<value>Reiniciando...</value>
</data>
<data name="Starting" xml:space="preserve">
<value>A iniciar...</value>
<value>Iniciando...</value>
</data>
<data name="StatusCode" xml:space="preserve">
<value>Estado do código: {0}</value>
<value>Código de estado: {0}</value>
<comment>{0} will be replaced by status code number/name</comment>
</data>
<data name="Success" xml:space="preserve">
@@ -238,12 +246,15 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>A verificar por novas versões...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Obtendo a nova versão: {0} ({1} MB)... Enquanto esperas, considera doar algo se aprecias o trabalho feito! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Processo de actualização terminada!</value>
</data>
<data name="UpdateNewVersionAvailable" xml:space="preserve">
<value>Nova versão do ASF está disponível! Considere obter-la!</value>
<value>Há uma nova versão do ASF disponível! Considere atualizar!</value>
</data>
<data name="UpdateVersionInfo" xml:space="preserve">
<value>Versão local: {0} | Versão remota: {1}</value>
@@ -277,7 +288,10 @@ StackTrace:
<value>Por favor, insira o valor não-documentado de {0}: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Por favor insira o seu anfitrião de IPC: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Valor desconhecido recebido por {0}, por favor reporte isto: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -286,10 +300,20 @@ StackTrace:
<value>Não é possível jogar {0} ao mesmo tempo, apenas {0} jogos vão usados com {1}!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Serviço de IPC não pode ser iniciado devido a AddressAccessDeniedException! Se quiser usar o serviço IPC fornecido pelo ASF, considere iniciar o ASF como administrador, ou dando permissões adequadas!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Respondeu ao comando do IPC: {0} com: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>Servidor IPC pronto!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Iniciando o servidor IPC em {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Este bot já parou!</value>
</data>
@@ -427,7 +451,10 @@ StackTrace:
<data name="BotAutomaticIdlingPausedAlready" xml:space="preserve">
<value>A coleta automática está pausada!</value>
</data>
<data name="BotAutomaticIdlingPausedWithCountdown" xml:space="preserve">
<value>A coleta automática está agora em pausa. Tens {0} para iniciar um jogo.</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "5 minutes")</comment>
</data>
<data name="BotAutomaticIdlingResumedAlready" xml:space="preserve">
<value>A coleta automática já foi resumida!</value>
</data>
@@ -487,7 +514,7 @@ inválidas, abortando!</value>
<value>Looting está temporariamente desligado!</value>
</data>
<data name="BotLootingYourself" xml:space="preserve">
<value>Não se pode bloquear a si mesmo!</value>
<value>Não podes colecionar os seus próprios itens!</value>
</data>
<data name="BotNoASFAuthenticator" xml:space="preserve">
<value>Este bot não tem a ASF 2FA ligada! Esqueceu-se de importar seu autenticador como ASF 2FA?</value>
@@ -503,7 +530,10 @@ inválidas, abortando!</value>
<value>Já adquirido: {0} | {1}</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="BotRateLimitExceeded" xml:space="preserve">
<value>Taxa limite excedida, tentaremos novamente daqui a {0}...</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "25 minutes")</comment>
</data>
<data name="BotReconnecting" xml:space="preserve">
<value>Reconectando...</value>
</data>
@@ -633,8 +663,19 @@ inválidas, abortando!</value>
<data name="ErrorAccessDenied" xml:space="preserve">
<value>Acesso negado!</value>
</data>
<data name="WarningPreReleaseVersion" xml:space="preserve">
<value>Estás a usar uma versão mais recente que a última versão do teu canal de atualização. Por favor considera que as versões de pré-lançamento são dedicados a utilizadores que sabem reportar erros, lidar com problemas e dar feedback - não irás receber suporte técnico.</value>
</data>
<data name="BotStats" xml:space="preserve">
<value>Uso de memória atual: {0} MB.</value>
<comment>{0} will be replaced by number (in megabytes) of memory being used</comment>
</data>
<data name="ClearingDiscoveryQueue" xml:space="preserve">
<value>Passando a Fila de Exploração da Steam #{0}...</value>
<comment>{0} will be replaced by queue number</comment>
</data>
<data name="DoneClearingDiscoveryQueue" xml:space="preserve">
<value>Fila de exploração da Steam feita #{0}.</value>
<comment>{0} will be replaced by queue number</comment>
</data>
</root>

View File

@@ -184,14 +184,19 @@
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Не удалось проверить последнюю версию!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Невозможно произвести обновление, так как нет подходящих файлов, которые относятся к текущей запущенной версии! Автоматическое обновление до этой версии невозможно.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Не могу обновиться, поскольку эта версия не содержит никаких файлов!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Получен запрос на ввод данных пользователем, однако процесс идёт в безынтерфейсном режиме!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Отказ от обработки запроса, поскольку SteamOwnerID не задан!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Выход...</value>
</data>
@@ -241,7 +246,10 @@
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Проверка новой версии...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Скачивание новой версии: {0} ({1} MB)... В ожидании, подумайте о пожертвовании, если вам нравится проделанная работа! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Процесс обновления завершён!</value>
</data>
@@ -280,7 +288,10 @@
<value>Пожалуйста, введите недокументированное значение {0}: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Пожалуйста, введите ваш хост IPC: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Получено неизвестное значение для {0}, пожалуйста, сообщите об этом: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@
<value>Невозможен запуск более {0} игр одновременно, будут использованы только первые {0} записей из параметра {1}!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Сервис IPC не может быть запущен, из-за "AddressAccessDeniedException" (исключение: отказ в доступе к адресу)! Если Вы желаете использовать сервис IPC, предоставляемый ASF, то попробуйте запустить ASF от имени администратора, или выдать необходимые права!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>На команду IPC: {0} был ответ: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC сервер готов!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Запуск IPC сервера на {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Этот бот уже остановлен!</value>
</data>

View File

@@ -184,14 +184,19 @@ Yığın izleme:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>En son sürüm kontrol edilemedi!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Şu anda çalışan sürüme ait hiçbir dosya olmadığı için güncelleme işlemine devam edemedi! Bu sürüme otomatik güncelleme yapmak mümkün değil.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Sürüm herhangi bir öğe içermediğinden güncelleme ile devam edemedi!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Kullanıcı girdisi için bir istek alındı; ancak işlem headless modda çalışıyor!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>SteamOwnerID ayarlanmadığı için istek reddedildi!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Çıkılıyor...</value>
</data>
@@ -241,7 +246,10 @@ Yığın izleme:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Yeni sürüm kontrol ediliyor...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Yeni sürüm indiriliyor: {0} ({1} MB)... Beklerken, yaptığımız çalışmayı takdir ediyorsanız bağış yapmayı düşünün! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Güncelleme işlemi tamamlandı!</value>
</data>
@@ -280,7 +288,10 @@ Yığın izleme:
<value>Lütfen belgelenmemiş {0} değerini girin: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Lütfen IPC sunucunuzu girin: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>{0} için bilinmeyen değer alındı, lütfen bunu bildirin: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -289,10 +300,20 @@ Yığın izleme:
<value>Eşzamanlı olarak {0} oyundan fazlasını oynamak mümkün değildir, yalnızca {1} yapılandırmasından ilk {0} girdisi kullanılacaktır!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>IPC hizmeti AddressAccessDeniedException nedeniyle başlatılamadı! ASF tarafından sağlanan IPC hizmetini kullanmak istiyorsanız, ASF'yi yönetici olarak başlatmayı veya uygun izinler vermeyi düşünün!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>IPC komutu {0} için cevap: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC sunucusu hazır!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>{0} sunucusunda IPC sunucusu başlatılıyor...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Bu bot zaten durdurulmuş!</value>
</data>

View File

@@ -121,7 +121,10 @@
<value>Chấp nhận giao dịch: {0}</value>
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="AutoUpdateCheckInfo" xml:space="preserve">
<value>ASF sẽ tự động kiểm tra phiên bản mới mỗi {0}.</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "24 hours")</comment>
</data>
<data name="Content" xml:space="preserve">
<value>Nội dung:
{0}</value>
@@ -141,7 +144,9 @@ StackTrace:
{2}</value>
<comment>{0} will be replaced by function name, {1} will be replaced by exception message, {2} will be replaced by entire stack trace. Please note that this string should include newlines for formatting.</comment>
</data>
<data name="ErrorExitingWithNonZeroErrorCode" xml:space="preserve">
<value>Đang thoát với mã lỗi khác không!</value>
</data>
<data name="ErrorFailingRequest" xml:space="preserve">
<value>Yêu cầu thất bại: {0}</value>
<comment>{0} will be replaced by URL of the request</comment>
@@ -179,14 +184,19 @@ StackTrace:
<data name="ErrorUpdateCheckFailed" xml:space="preserve">
<value>Không thể kiểm tra phiên bản mới nhất!</value>
</data>
<data name="ErrorUpdateNoAssetForThisVersion" xml:space="preserve">
<value>Không thể tiến hành cập nhật vì không có asset liên quan đến phiên bản đang chạy! Tự động cập nhật lên phiên bản đó là không thể.</value>
</data>
<data name="ErrorUpdateNoAssets" xml:space="preserve">
<value>Không thể tiến hành với bản cập nhật vì phiên bản đó không gồm bất cứ tài sản nào!</value>
</data>
<data name="ErrorUserInputRunningInHeadlessMode" xml:space="preserve">
<value>Nhận được yêu cầu nhập của người dùng, nhưng quá trình đang chạy trong chế độ không kiểm soát!</value>
</data>
<data name="ErrorIPCAccessDenied" xml:space="preserve">
<value>Từ chối xử lý yêu cầu do SteamOwnerID chưa được đặt!</value>
<comment>SteamOwnerID is name of bot config property, it should not be translated</comment>
</data>
<data name="Exiting" xml:space="preserve">
<value>Đang thoát...</value>
</data>
@@ -218,7 +228,7 @@ StackTrace:
<comment>{0} will be replaced by trade number</comment>
</data>
<data name="Restarting" xml:space="preserve">
<value>Khởi động lại...</value>
<value>Đang khởi động lại...</value>
</data>
<data name="Starting" xml:space="preserve">
<value>Bắt đầu...</value>
@@ -236,7 +246,10 @@ StackTrace:
<data name="UpdateCheckingNewVersion" xml:space="preserve">
<value>Kiểm tra phiên bản mới...</value>
</data>
<data name="UpdateDownloadingNewVersion" xml:space="preserve">
<value>Đang tải phiên bản mới: {0} ({1} MB)... Trong khi chờ, hãy xem xét quyên góp nếu bạn đánh giá cao sản phẩm được thực hiện! :)</value>
<comment>{0} will be replaced by version string, {1} will be replaced by update size (in megabytes)</comment>
</data>
<data name="UpdateFinished" xml:space="preserve">
<value>Quá trình cập nhật hoàn tất!</value>
</data>
@@ -275,7 +288,10 @@ StackTrace:
<value>Xin vui lòng nhập các giá trị không có giấy tờ của {0}: </value>
<comment>{0} will be replaced by property name. Please note that this translation should end with space</comment>
</data>
<data name="UserInputIPCHost" xml:space="preserve">
<value>Vui lòng nhập IPC host của bạn: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="WarningUnknownValuePleaseReport" xml:space="preserve">
<value>Nhận được giá trị không rõ cho {0}, xin vui lòng báo cáo điều này: {1}</value>
<comment>{0} will be replaced by object's name, {1} will be replaced by value for that object</comment>
@@ -284,10 +300,20 @@ StackTrace:
<value>Chơi nhiều hơn {0} trò chơi đồng thời là không thể, chỉ {0} trò chơi đầu tiên {1} sẽ được sử dụng!</value>
<comment>{0} will be replaced by max number of games, {1} will be replaced by name of the configuration property</comment>
</data>
<data name="ErrorIPCAddressAccessDeniedException" xml:space="preserve">
<value>Dịch vụ IPC không thể chạy do AddressAccessDeniedException! Nếu bạn muốn dùng dịch vụ IPC được cung cấp bởi ASF, hãy chạy ASF bằng quyền admin, hoặc cấp quyền thích hợp!</value>
</data>
<data name="IPCAnswered" xml:space="preserve">
<value>Đã trả lời lệnh IPC: {0} với: {1}</value>
<comment>{0} will be replaced by IPC command, {1} will be replaced by IPC answer</comment>
</data>
<data name="IPCReady" xml:space="preserve">
<value>IPC server đã sẵn sàng!</value>
</data>
<data name="IPCStarting" xml:space="preserve">
<value>Khởi động IPC server trên {0}...</value>
<comment>{0} will be replaced by IPC hostname</comment>
</data>
<data name="BotAlreadyStopped" xml:space="preserve">
<value>Bot này đã được dừng lại!</value>
</data>
@@ -299,8 +325,14 @@ StackTrace:
<value>Đang có {0}/{1} bot đang chạy, với tổng số {2} games ({3} cards) còn lại để chạy không.</value>
<comment>{0} will be replaced by number of active bots, {1} will be replaced by total number of bots, {2} will be replaced by total number of games left to idle, {3} will be replaced by total number of cards left to idle</comment>
</data>
<data name="BotStatusIdling" xml:space="preserve">
<value>Bot đang cày game: {0} ({1}, {2} card còn lại) từ tổng cộng {3} game ({4} card) còn lại để cày (~{5} còn lại).</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name, {2} will be replaced by number of cards left to idle, {3} will be replaced by total number of games to idle, {4} will be replaced by total number of cards to idle, {5} will be replaced by translated TimeSpan string (such as "1 day, 5 hours and 30 minutes")</comment>
</data>
<data name="BotStatusIdlingList" xml:space="preserve">
<value>Bot đang cày game: {0} từ tổng cộng {1} game ({2} card) còn lại để cày (~{3} còn lại).</value>
<comment>{0} will be replaced by list of the games (IDs, numbers), {1} will be replaced by total number of games to idle, {2} will be replaced by total number of cards to idle, {3} will be replaced by translated TimeSpan string (such as "1 day, 5 hours and 30 minutes")</comment>
</data>
<data name="CheckingFirstBadgePage" xml:space="preserve">
<value>Kiểm tra trang huy hiệu đầu tiên...</value>
</data>
@@ -386,8 +418,14 @@ StackTrace:
<data name="BotAccountLimited" xml:space="preserve">
<value>Tài khoản này bị giới hạn, quá trình chạy không sẽ không khả dụng cho đến khi những hạn chế sẽ bị gỡ bỏ!</value>
</data>
<data name="BotAddLicense" xml:space="preserve">
<value>ID: {0} | Trạng thái: {1}</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by status string</comment>
</data>
<data name="BotAddLicenseWithItems" xml:space="preserve">
<value>ID: {0} | Trạng thái: {1} | Mục: {2}</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by status string, {2} will be replaced by list of granted IDs (numbers), separated by a comma</comment>
</data>
<data name="BotAlreadyRunning" xml:space="preserve">
<value>Bot này đang được chạy!</value>
</data>
@@ -404,12 +442,19 @@ StackTrace:
<value>2FA Token: {0}</value>
<comment>{0} will be replaced by generated 2FA token (string)</comment>
</data>
<data name="BotAutomaticIdlingNowPaused" xml:space="preserve">
<value>Tự động idling đã tạm dừng!</value>
</data>
<data name="BotAutomaticIdlingNowResumed" xml:space="preserve">
<value>Tự động idling đã tiếp tục trở lại!</value>
</data>
<data name="BotAutomaticIdlingPausedAlready" xml:space="preserve">
<value>Tự động chạy không đã tạm dừng!</value>
</data>
<data name="BotAutomaticIdlingPausedWithCountdown" xml:space="preserve">
<value>Tự động cày đã tạm dừng! Bạn có {0} để bắt đầu 1 game.</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "5 minutes")</comment>
</data>
<data name="BotAutomaticIdlingResumedAlready" xml:space="preserve">
<value>Tự động chạy không đã tiếp tục!</value>
</data>
@@ -449,7 +494,9 @@ StackTrace:
<data name="BotLootingFailed" xml:space="preserve">
<value>Lời mời giao dịch thất bại!</value>
</data>
<data name="BotLootingMasterNotDefined" xml:space="preserve">
<value>Giao dịch không thể gửi do không có user có quyền master xác định!</value>
</data>
<data name="BotLootingNoLootableTypes" xml:space="preserve">
<value>Bạn không có bất kỳ cái gì có thể luộc được!</value>
</data>
@@ -474,17 +521,29 @@ StackTrace:
<data name="BotNotConnected" xml:space="preserve">
<value>Bot này không được kết nối!</value>
</data>
<data name="BotNotOwnedYet" xml:space="preserve">
<value>Chưa sở hữu: {0}</value>
<comment>{0} will be replaced by query (string)</comment>
</data>
<data name="BotOwnedAlreadyWithName" xml:space="preserve">
<value>Đã sở hữu: {0} | {1}</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="BotRateLimitExceeded" xml:space="preserve">
<value>Vượt quá số lượng giới hạn; chúng tôi sẽ thử lại sau {0} đếm ngược...</value>
<comment>{0} will be replaced by translated TimeSpan string (such as "25 minutes")</comment>
</data>
<data name="BotReconnecting" xml:space="preserve">
<value>Đang kết nối lại...</value>
</data>
<data name="BotRedeem" xml:space="preserve">
<value>Key: {0} | Status: {1}</value>
<comment>{0} will be replaced by cd-key (string), {1} will be replaced by status string</comment>
</data>
<data name="BotRedeemWithItems" xml:space="preserve">
<value>Key: {0} | Status: {1} | Items: {2}</value>
<comment>{0} will be replaced by cd-key (string), {1} will be replaced by status string, {2} will be replaced by list of key-value pairs, separated by a comma</comment>
</data>
<data name="BotRemovedExpiredLoginKey" xml:space="preserve">
<value>Gỡ bỏ key đăng nhập hết hạn!</value>
</data>
@@ -494,7 +553,9 @@ StackTrace:
<data name="BotStatusLimited" xml:space="preserve">
<value>Bot bị hạn chế và không thể rớt bất kỳ thẻ thông qua chạy không.</value>
</data>
<data name="BotStatusConnecting" xml:space="preserve">
<value>Bot đang kết nối với Steam network.</value>
</data>
<data name="BotStatusNotRunning" xml:space="preserve">
<value>Bot không chạy.</value>
</data>
@@ -573,7 +634,10 @@ StackTrace:
<value>ASF sẽ cố gắng sử dụng mã ngôn ngữ {0} ưa thích của bạn, nhưng bản dịch ngôn ngữ đó hoàn thiện chỉ được {1}. Có lẽ bạn có thể giúp chúng tôi cải thiện bản dịch ASF cho ngôn ngữ của bạn?</value>
<comment>{0} will be replaced by culture code, such as "en-US", {1} will be replaced by completeness percentage, such as "78.5%"</comment>
</data>
<data name="IdlingGameNotPossible" xml:space="preserve">
<value>Việc cày {0} ({1}) tạm thời bị vô hiệu hóa, ASF không thể mở game đó lúc này.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="WarningIdlingGameMismatch" xml:space="preserve">
<value>ASF phát hiện ID không khớp với {0} ({1}) và sẽ sử dụng ID {2} thay thế.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name, {2} will be replaced by game's ID (number)</comment>
@@ -582,18 +646,35 @@ StackTrace:
<value>{0} V{1}</value>
<comment>{0} will be replaced by program's name (e.g. "ASF"), {1} will be replaced by program's version (e.g. "1.0.0.0"). This string typically has nothing to translate and you should leave it as it is, unless you need to change the format, e.g. in RTL languages.</comment>
</data>
<data name="BotAccountLocked" xml:space="preserve">
<value>Tài khoản này bị khóa, quá trình cày card không chạy!</value>
</data>
<data name="BotStatusLocked" xml:space="preserve">
<value>Bot bị khóa và không thể rớt bất kỳ thẻ thông qua chạy không.</value>
</data>
<data name="ErrorFunctionOnlyInHeadlessMode" xml:space="preserve">
<value>Chức năng này chỉ có sẵn trong headless mode!</value>
</data>
<data name="BotOwnedAlready" xml:space="preserve">
<value>Đã sở hữu: {0}</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
<data name="ErrorAccessDenied" xml:space="preserve">
<value>Truy cập bị từ chối!</value>
</data>
<data name="WarningPreReleaseVersion" xml:space="preserve">
<value>Bạn đang dùng phiên bản mới hơn phiên bản chính thức mới nhất. Hãy chú ý rằng phiên bản phát hành trước là dành cho người dùng biết cách báo lỗi, xử lý vấn đề và gửi phản hồi - sẽ không có hỗ trợ kỹ thuật.</value>
</data>
<data name="BotStats" xml:space="preserve">
<value>Bộ nhớ đang được sử dụng: {0} MB.</value>
<comment>{0} will be replaced by number (in megabytes) of memory being used</comment>
</data>
<data name="ClearingDiscoveryQueue" xml:space="preserve">
<value>Đã xóa hàng đợi khám phá Steam số #{0}...</value>
<comment>{0} will be replaced by queue number</comment>
</data>
<data name="DoneClearingDiscoveryQueue" xml:space="preserve">
<value>Đã xóa hàng đợi khám phá Steam số #{0}.</value>
<comment>{0} will be replaced by queue number</comment>
</data>
</root>

View File

@@ -28,10 +28,8 @@ using ArchiSteamFarm.Localization;
namespace ArchiSteamFarm {
internal static class OS {
private static readonly PlatformID PlatformID = Environment.OSVersion.Platform;
internal static void Init(bool headless) {
switch (PlatformID) {
switch (Environment.OSVersion.Platform) {
case PlatformID.Win32NT:
case PlatformID.Win32S:
case PlatformID.Win32Windows:
@@ -76,7 +74,7 @@ namespace ArchiSteamFarm {
private static class NativeMethods {
internal const uint EnableQuickEditMode = 0x0040;
internal const int StandardInputHandle = -10;
internal const sbyte StandardInputHandle = -10;
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
internal static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint lpMode);

View File

@@ -184,11 +184,7 @@ namespace ArchiSteamFarm {
ParsePostInitArgs(args);
}
IPC.Start();
if (!Debugging.IsDebugBuild) {
await ASF.CheckForUpdate().ConfigureAwait(false);
}
await ASF.CheckForUpdate().ConfigureAwait(false);
await ASF.InitBots().ConfigureAwait(false);
ASF.InitEvents();

View File

@@ -28,19 +28,20 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using ArchiSteamFarm.JSON;
using Newtonsoft.Json;
using SteamKit2;
namespace ArchiSteamFarm {
internal sealed class Statistics : IDisposable {
private const byte MinAnnouncementCheckTTL = 6; // Minimum amount of hours we must wait before checking eligibility for Announcement, should be lower than MinPersonaStateTTL
private const byte MinCardsCount = 100; // Minimum amount of cards to be eligible for public listing
private const byte MinHeartBeatTTL = 10; // Minimum amount of minutes we must wait before sending next HeartBeat
private const byte MinItemsCount = 100; // Minimum amount of items to be eligible for public listing
private const byte MinPersonaStateTTL = 8; // Minimum amount of hours we must wait before requesting persona state update
private const string URL = "https://" + SharedInfo.StatisticsServer;
private readonly Bot Bot;
private readonly SemaphoreSlim Semaphore = new SemaphoreSlim(1);
private DateTime LastAnnouncementCheck = DateTime.MinValue;
private DateTime LastHeartBeat = DateTime.MinValue;
private DateTime LastPersonaStateRequest = DateTime.MinValue;
@@ -97,7 +98,7 @@ namespace ArchiSteamFarm {
// Don't announce if we don't meet conditions
string tradeToken;
if (!Bot.HasMobileAuthenticator || !Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.SteamTradeMatcher) || !await Bot.ArchiWebHandler.HasValidApiKey().ConfigureAwait(false) || !await Bot.ArchiWebHandler.HasPublicInventory().ConfigureAwait(false) || string.IsNullOrEmpty(tradeToken = await Bot.ArchiWebHandler.GetTradeToken().ConfigureAwait(false))) {
if (!Bot.HasMobileAuthenticator || !Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.SteamTradeMatcher) || (Bot.BotConfig.MatchableTypes.Count == 0) || !await Bot.ArchiWebHandler.HasValidApiKey().ConfigureAwait(false) || !await Bot.ArchiWebHandler.HasPublicInventory().ConfigureAwait(false) || string.IsNullOrEmpty(tradeToken = await Bot.ArchiWebHandler.GetTradeToken().ConfigureAwait(false))) {
LastAnnouncementCheck = DateTime.UtcNow;
ShouldSendHeartBeats = false;
return;
@@ -113,8 +114,6 @@ namespace ArchiSteamFarm {
}
}
bool matchEverything = Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.MatchEverything);
await Semaphore.WaitAsync().ConfigureAwait(false);
try {
@@ -122,7 +121,7 @@ namespace ArchiSteamFarm {
return;
}
HashSet<Steam.Item> inventory = await Bot.ArchiWebHandler.GetMySteamInventory(true, new HashSet<Steam.Item.EType> { Steam.Item.EType.TradingCard }).ConfigureAwait(false);
HashSet<Steam.Item> inventory = await Bot.ArchiWebHandler.GetMySteamInventory(true, Bot.BotConfig.MatchableTypes).ConfigureAwait(false);
// This is actually inventory failure, so we'll stop sending heartbeats but not record it as valid check
if (inventory == null) {
@@ -131,21 +130,22 @@ namespace ArchiSteamFarm {
}
// This is actual inventory
if (inventory.Count < MinCardsCount) {
if (inventory.Count < MinItemsCount) {
LastAnnouncementCheck = DateTime.UtcNow;
ShouldSendHeartBeats = false;
return;
}
const string request = URL + "/api/Announce";
Dictionary<string, string> data = new Dictionary<string, string>(7) {
Dictionary<string, string> data = new Dictionary<string, string>(8) {
{ "SteamID", Bot.SteamID.ToString() },
{ "Guid", Program.GlobalDatabase.Guid.ToString("N") },
{ "Nickname", nickname },
{ "AvatarHash", avatarHash },
{ "MatchEverything", matchEverything ? "1" : "0" },
{ "MatchableTypes", JsonConvert.SerializeObject(Bot.BotConfig.MatchableTypes) },
{ "MatchEverything", Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.MatchEverything) ? "1" : "0" },
{ "TradeToken", tradeToken },
{ "CardsCount", inventory.Count.ToString() }
{ "ItemsCount", inventory.Count.ToString() }
};
// We don't need retry logic here

View File

@@ -152,12 +152,12 @@ namespace ArchiSteamFarm {
internal async Task<T> UrlGetToJsonResultRetry<T>(string request, string referer = null) {
if (string.IsNullOrEmpty(request)) {
ArchiLogger.LogNullError(nameof(request));
return default(T);
return default;
}
string json = await UrlGetToContentRetry(request, referer).ConfigureAwait(false);
if (string.IsNullOrEmpty(json)) {
return default(T);
return default;
}
try {
@@ -169,7 +169,7 @@ namespace ArchiSteamFarm {
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, json));
}
return default(T);
return default;
}
}
@@ -277,12 +277,12 @@ namespace ArchiSteamFarm {
internal async Task<T> UrlPostToJsonResultRetry<T>(string request, ICollection<KeyValuePair<string, string>> data = null, string referer = null) {
if (string.IsNullOrEmpty(request)) {
ArchiLogger.LogNullError(nameof(request));
return default(T);
return default;
}
string json = await UrlPostToContentRetry(request, data, referer).ConfigureAwait(false);
if (string.IsNullOrEmpty(json)) {
return default(T);
return default;
}
try {
@@ -294,7 +294,7 @@ namespace ArchiSteamFarm {
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, json));
}
return default(T);
return default;
}
}

View File

@@ -16,7 +16,6 @@
5
],
"MatchableTypes": [
3,
5
],
"PasswordFormat": 0,

View File

@@ -33,7 +33,7 @@ after_test:
dotnet publish -c "$env:CONFIGURATION" -r "$RUNTIME" -o "out\$RUNTIME"
}
Add-Content "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.version" "$RUNTIME"
Set-Content -Path "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.version" -Value "$RUNTIME"
7z a -bd -tzip -mm=Deflate64 -mx=5 "ArchiSteamFarm\out\ASF-$RUNTIME.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$RUNTIME\*"
Push-AppveyorArtifact "ArchiSteamFarm\out\ASF-$RUNTIME.zip" -FileName "ASF-$RUNTIME.zip" -DeploymentName "ASF-$RUNTIME.zip"
@@ -52,4 +52,18 @@ deploy:
on:
branch: master
configuration: Release
appveyor_repo_tag: true
appveyor_repo_tag: true
notifications:
- provider: Webhook
url:
secure: i/og7KzkpbcWcKoUubrLH+KB6bkfqA55FHUlGxLepLmgZNQeNMiMoAFICOFY795fFrFfUNUKqwk7ApXE6HUyWMoiijLj7G/JBLTPkBiTCu8fZMTMqwQm6FiHB3+/0h0C+ukcrBEqnXYSQUh6znpKqJSTrIfXUQ7ftNuC966kBAw=
method: POST
body: >-
{
"avatar_url": "https://www.appveyor.com/assets/img/appveyor-logo-256.png",
"username": "AppVeyor",
"content": "[{{projectName}}:{{branch}}] {{commitMessage}} - {{committerName}} ({{commitId}}) | **{{status}}** | {{buildUrl}}"
}
on_build_success: true
on_build_failure: true
on_build_status_changed: false