-
-
Post Thanks / Like - 4 Thanks
-
Member
This looks great, appreciate your work on this. Trying to get this to work but I'm pretty new to ExileAPI and C# in general. I cloned your repo into the ExileAPi\Plugins\Source folder but I'm having some trouble getting it to compile. Initially I thought it was due to some directory issues which I fixed locally (https://github.com/Sikaka/SextantHel...csproj#L27-L33), but I'm still running into some build issues which seem to be caused by the RestSharp import in Data\SextantRepository.cs. Here's the error:
Code:
2024-03-07 22:59:04.365 -08:00 [ERR] Sextant Helper, Initialise -> System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=110.2.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The system cannot find the file specified.
File name: 'RestSharp, Version=110.2.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75'
at SextantHelper.Data.SextantRepository..ctor(MainSettings settings)
at SextantHelper.Main.Initialise() in C:\Users\${USER}\Downloads\ExileApi-Compiled-3.23.1.1\ExileApi-Compiled-3.23.1.1\Plugins\Source\SextantHelper\Main.cs:line 29
at ExileCore.Shared.PluginWrapper.pluginInitialise()
at ExileCore.Shared.PluginWrapper.Initialise(GameController _gameController)
Also, I don't think it's necessary due to the declarations in the .csproj, but I made sure to install RestSharp separately via nuget as well using
Code:
dotnet add package RestSharp --version 110.2.0
Did you perform any other setup to get this working locally? Or am I just missing something obvious here
-
Active Member
Originally Posted by
plsbuddy
This looks great, appreciate your work on this. Trying to get this to work but I'm pretty new to ExileAPI and C# in general. I cloned your repo into the ExileAPi\Plugins\Source folder but I'm having some trouble getting it to compile. Initially I thought it was due to some directory issues which I fixed locally (
https://github.com/Sikaka/SextantHel...csproj#L27-L33), but I'm still running into some build issues which seem to be caused by the RestSharp import in Data\SextantRepository.cs. Here's the error:
Code:
2024-03-07 22:59:04.365 -08:00 [ERR] Sextant Helper, Initialise -> System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=110.2.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The system cannot find the file specified.
File name: 'RestSharp, Version=110.2.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75'
at SextantHelper.Data.SextantRepository..ctor(MainSettings settings)
at SextantHelper.Main.Initialise() in C:\Users\${USER}\Downloads\ExileApi-Compiled-3.23.1.1\ExileApi-Compiled-3.23.1.1\Plugins\Source\SextantHelper\Main.cs:line 29
at ExileCore.Shared.PluginWrapper.pluginInitialise()
at ExileCore.Shared.PluginWrapper.Initialise(GameController _gameController)
Also, I don't think it's necessary due to the declarations in the .csproj, but I made sure to install RestSharp separately via nuget as well using
Code:
dotnet add package RestSharp --version 110.2.0
Did you perform any other setup to get this working locally? Or am I just missing something obvious here
Whoops!
So the issue is that the restsharp.dll file needs to go inside the root folder of the bot.
Restsharp is used to perform web requests to pull in pricing from TFTs github.
It sounds like you already imported the nuget packages but you'll need to manually copy that DLL into the bot's folder for it to work.
-
Post Thanks / Like - 1 Thanks
plsbuddy (1 members gave Thanks to Sikaka for this useful post)
-
Member
Originally Posted by
Sikaka
Whoops!
So the issue is that the restsharp.dll file needs to go inside the root folder of the bot.
Restsharp is used to perform web requests to pull in pricing from TFTs github.
It sounds like you already imported the nuget packages but you'll need to manually copy that DLL into the bot's folder for it to work.
Yup, that was it. For anyone else looking to try this out, the correct dll should be located in
Code:
%userprofile%\.nuget\packages\restsharp\110.2.0\lib\net7.0
after installing RestSharp via nuget
Code:
dotnet add package RestSharp --version 110.2.0
Also should be noted that the script's mouse positions are hardcoded coordinates, so anyone running a different resolution should either retrieve the correct coordinates for their resolution (using something like AHK window spy) & update these values, or set their monitor resolution to 1920x1080 (setting PoE resolution alone will not work).
Thanks for your help!
-
Member
hey, i have an error about
'''CS0012: Le type 'Vector2'" does someone know how to fix this problem ? :S
thanks !
-
Active Member
Originally Posted by
Sikaka
Whoops!
So the issue is that the restsharp.dll file needs to go inside the root folder of the bot.
Restsharp is used to perform web requests to pull in pricing from TFTs github.
It sounds like you already imported the nuget packages but you'll need to manually copy that DLL into the bot's folder for it to work.
I did update the github so that the compiled folder includes both DLLs and the instructions on where they go (for those who want to run 'as is')
-
Member
big F to this one (and to myself who wrote something similar)
-
Member
will this be updated XD XD XD XD