Fixed: LastCoords.ini file missing (https://github.com/Spegeli/Pokemon-Go-Rocket-API/issues/30)
Fixed: LastCoords.ini file missing (https://github.com/Spegeli/Pokemon-Go-Rocket-API/issues/30)
Changed: Reduced the delay in the Navigation a little bit
diff --git a/PokemonGo.RocketAPI.Logic/Navigation.cs b/PokemonGo.RocketAPI.Logic/Navigation.cs
index d7a97ee..96e8a5d 100644
--- a/PokemonGo.RocketAPI.Logic/Navigation.cs
+++ b/PokemonGo.RocketAPI.Logic/Navigation.cs
@@ -70,7 +70,7 @@ namespace PokemonGo.RocketAPI.Logic
_client.Settings.DefaultAltitude);
if (functionExecutedWhileWalking != null)
await functionExecutedWhileWalking();// look for pokemon
- await Task.Delay(Math.Min((int)(distanceToTarget / speedInMetersPerSecond * 1000), 3000));
+ await Task.Delay(Math.Min((int)(distanceToTarget / speedInMetersPerSecond * 100), 3000));
} while (LocationUtils.CalculateDistanceInMeters(sourceLocation, targetLocation) >= 30);
return result;
diff --git a/PokemonGo.RocketAPI/Client.cs b/PokemonGo.RocketAPI/Client.cs
index cd5356e..8ac6a63 100644
--- a/PokemonGo.RocketAPI/Client.cs
+++ b/PokemonGo.RocketAPI/Client.cs
@@ -73,7 +73,7 @@ namespace PokemonGo.RocketAPI
}
else
{
- Logger.Write("Missing \"\\Configs\\Coords.ini\", using default settings for coordinates.");
+ Logger.Write("Missing \"\\Configs\\Coords.ini\", using default settings for coordinates and create a new one...");
SetCoordinates(Settings.DefaultLatitude, Settings.DefaultLongitude, Settings.DefaultAltitude);
}
@@ -313,7 +313,7 @@ namespace PokemonGo.RocketAPI
public void SaveLatLng(double lat, double lng)
{
var latlng = lat + ":" + lng;
- File.WriteAllText(Directory.GetCurrentDirectory() + "\\LastCoords.ini", latlng);
+ File.WriteAllText(Directory.GetCurrentDirectory() + "\\Configs\\LastCoords.ini", latlng);
}
public async Task<FortSearchResponse> SearchFort(string fortId, double fortLat, double fortLng)
diff --git a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
index 6a6607d..a95087d 100644
--- a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
+++ b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
@@ -17,7 +17,7 @@
<UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>YearStamp.MonthStamp.DayStamp.Increment</AssemblyVersionSettings>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
- <AssemblyVersion>2016.7.24.249</AssemblyVersion>
+ <AssemblyVersion>2016.7.24.256</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
diff --git a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
index 3c10bbe..f322d75 100644
--- a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
+++ b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2016.7.24.249")]
+[assembly: AssemblyVersion("2016.7.24.256")]
[assembly: AssemblyFileVersion("1.0.0.0")]
You may download the files in Public Git.