-
Updated for 20.7.12.0 (v9.1)
gist.github.com/razer86
This has the updated plugin, and updated data as of 30th Jul 2020. If you don't want to deal with compiling the DataUpdate tool, just save 'SalvageItems.cs' and 'SalvageItemsData.cs' to TurboHud\plugins\JarJar and ignore 'Program.cs' and 'SalvageFromIcyVeins.cs'
Changes:
* SalvageItems.cs - Removed unicode strings and replace with unicode characters as required by recent TurboHud updates
* SalvageFromIcyVeins.cs - String replace WD on icy-veins to Witch Doctor to match data structure, change OUT.WriteLine to Console.WriteLine to be able to compile
* Program.cs - This is autogenerated during 'dotnet new console' but needs to have a couple of lines added to allow the project to compile
In order to compile the data updater:
- Download 'SalvageFromIcyVeins.cs' from the gist linked above and save to a folder
- Install the .NET Core SDK from Download .NET (Linux, macOS, and Windows) (I was able to compile using .NET Core 3.1 SDK (latest at time of this post))
- Open a command prompt and cd to the directory you have saved 'SalvageFromIcyVeins.cs' to
- In your command prompt type in:
- Enter and wait a sec for the build environment to create
- Type in:
Code:
dotnet add package HtmlAgilityPack --version 1.11.24
- Enter and wait for the package to download and install
- Download 'Program.cs' from the gist linked above and save it to the same folder that you saved 'SalvageFromIcyVeins.cs' making sure to replace the 'Program.cs' that is already there
- Open 'Program.cs' with your favorite text editor and change line 12 to be the path of the folder you saved 'SalvageFromIcyVeins.cs' to (make sure you use \\ for the folders just like I have)
- Once you have updated and saved 'Program.cs' go back to your command prompt and type in:
- If everything goes according to plan, you should now have a 'bin' folder
- Open 'bin', then 'Debug', then 'netcoreapp3.1'
- Here you should have a bunch of files (some .json, some .dll and an .exe)
- The EXE will generate the 'SalvageItemsData.cs' to be used by the plugin
- Double click the EXE, you will see a black widow open and scroll through with a bunch of text and then close.
- Back in the main folder where you originally saved 'SalvageFromIcyVeins.cs' to, there will now be 'SalvageItemsData.cs'
- The last step is to copy/move the new 'SalvageItemsData.cs' and paste it over the original 'SalvageItemsData.cs' located at Turbohud\plugings\JarJar
Once you have compiled the updater, you do not need to go through all that again. When you want to update the data, just delete the 'SalvageItemsData.cs' file and run the EXE then move the new file to replace the one at Turbohud\plugings\JarJar\SalvageItemsData.cs
Last edited by razer86; 07-23-2021 at 06:08 AM.
-
Post Thanks / Like - 1 Thanks
milkisskill (1 members gave Thanks to razer86 for this useful post)
-
Member
suspicious
Originally Posted by
razer86
Updated for 20.7.12.0 (v9.1)
gist.github.com/razer86
This has the updated plugin, and updated data as of 30th Jul 2020. If you don't want to deal with compiling the DataUpdate tool, just save 'SalvageItems.cs' and 'SalvageItemsData.cs' to TurboHud\plugins\JarJar and ignore 'Program.cs' and 'SalvageFromIcyVeins.cs'
Changes:
* SalvageItems.cs - Removed unicode strings and replace with unicode characters as required by recent TurboHud updates
* SalvageFromIcyVeins.cs - String replace WD on icy-veins to Witch Doctor to match data structure, change OUT.WriteLine to Console.WriteLine to be able to compile
* Program.cs - This is autogenerated during 'dotnet new console' but needs to have a couple of lines added to allow the project to compile
In order to compile the data updater:
- Download 'SalvageFromIcyVeins.cs' from the gist linked above and save to a folder
- Install the .NET Core SDK from Download .NET (Linux, macOS, and Windows) (I was able to compile using .NET Core 3.1 SDK (latest at time of this post))
- Open a command prompt and cd to the directory you have saved 'SalvageFromIcyVeins.cs' to
- In your command prompt type in:
- Enter and wait a sec for the build environment to create
- Type in:
Code:
dotnet add package HtmlAgilityPack --version 1.11.24
- Enter and wait for the package to download and install
- Download 'Program.cs' from the gist linked above and save it to the same folder that you saved 'SalvageFromIcyVeins.cs' making sure to replace the 'Program.cs' that is already there
- Open 'Program.cs' with your favorite text editor and change line 12 to be the path of the folder you saved 'SalvageFromIcyVeins.cs' to (make sure you use \\ for the folders just like I have)
- Once you have updated and saved 'Program.cs' go back to your command prompt and type in:
- If everything goes according to plan, you should now have a 'bin' folder
- Open 'bin', then 'Debug', then 'netcoreapp3.1'
- Here you should have a bunch of files (some .json, some .dll and an .exe)
- The EXE will generate the 'SalvageItemsData.cs' to be used by the plugin
- Double click the EXE, you will see a black widow open and scroll through with a bunch of text and then close.
- Back in the main folder where you originally saved 'SalvageFromIcyVeins.cs' to, there will now be 'SalvageItemsData.cs'
- The last step is to copy the contents of the generate 'SalvageItemsData.cs' and paste it into the original 'SalvageItemsData.cs' located at Turbohud\plugings\JarJar
Make sure you leave:
Code:
using System.Collections.Generic;
namespace Turbo.Plugins.JarJar.DefaultUI
{
public class Build
{
public readonly HeroClass HeroClass;
public readonly string[] BuildNames;
public Build(HeroClass heroClass, params string[] buildNames)
{
HeroClass = heroClass;
BuildNames = buildNames;
}
}
at the top, and if you replaced from line 20 to the end of the file, you will also need to add a trialing } to closeout the namespace
Once you have compiled the updater, you do not need to go through all that again. When you want to update the data, just run the EXE and update the contents of Turbohud\plugings\JarJar\SalvageItemsData.cs
Here my exceptions i had
2020.08.01 15:28:14.317 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageItems.cs': possibly trying to hide behaviour with unicode characters.
2020.08.02 20:18:29.732 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\Program.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:29.765 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageFromIcyVeins.cs': possibly trying to access the disk.
2020.08.02 20:18:29.765 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageFromIcyVeins.cs': possibly trying to use System.IO.
2020.08.02 20:18:29.765 suspicious code in plugin file: 'C:\Users\hDesktop\TurboHud\Plugins\Default\SalvageFromIcyVeins.cs': possibly trying to use System.Diagnostics.
2020.08.02 20:18:29.765 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageFromIcyVeins.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:29.774 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItems.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:29.800 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItemsData.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:30.762 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\Program.cs': namespace should be this: 'Turbo.Plugins.JarJar
2020.08.02 20:18:30.770 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageFromIcyVeins.cs': possibly trying to access the disk.
2020.08.02 20:18:30.770 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageFromIcyVeins.cs': possibly trying to use System.IO.
2020.08.02 20:18:30.770 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageFromIcyVeins.cs': possibly trying to use System.Diagnostics.
2020.08.02 20:18:30.770 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageFromIcyVeins.cs': namespace should be this: 'Turbo.Plugins.JarJar
2020.08.02 20:25:52.017 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItems.cs': possibly trying to hide behaviour with unicode characters.
2020.08.02 20:25:52.018 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItems.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:25:52.041 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItemsData.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:25:52.591 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageItems.cs': possibly trying to hide behaviour with unicode characters.
this is a bit suspicious....
-
Originally Posted by
iLikeMarlboroGold
2020.08.02 20:18:29.732 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\Program.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:29.765 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageFromIcyVeins.cs': possibly trying to access the disk.
SalvageFromIcyVeins.cs should not be in the plugin folder, this is the updater tool, a standalone program and not part of the in-game plugin
Program.cs should not be in the plugin folder, this is the updater tool, a standalone program and not part of the in-game plugin
Originally Posted by
iLikeMarlboroGold
2020.08.02 20:18:29.774 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItems.cs': namespace should be this: 'Turbo.Plugins.Default
2020.08.02 20:18:29.800 namespace mismatch in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\Default\SalvageItemsData.cs': namespace should be this: 'Turbo.Plugins.Default
SalvageItems.cs should be at TurboHud\plugins\JarJar\SalvageItems.cs not TurboHud\Plugins\Default\SalvageItems.cs
SalvageItemsData.cs should be at TurboHud\plugins\JarJar\SalvageItemsData.cs not TurboHud\Plugins\Default\SalvageItemsData.cs
Originally Posted by
iLikeMarlboroGold
2020.08.01 15:28:14.317 suspicious code in plugin file: 'C:\Users\h\Desktop\TurboHud\Plugins\JarJar\SalvageItems.cs': possibly trying to hide behaviour with unicode characters.
Replace the original SalvageItems.cs you have installed at TurboHud\Plugins\JarJar\SalvageItems.cs with the updated version from my post to fix the unicode errors
Last edited by razer86; 08-08-2020 at 04:55 PM.
-
Member
oh man, works like a charm. super clear! Thanks for the easy step-by-step.
-
Post Thanks / Like - 1 Thanks
razer86 (1 members gave Thanks to abatron for this useful post)
-
Member
Just followed post #16 @razer86. Getting the following exceptions.
2020.12.05 09:54:35.926 20.11.30.2 error while initializing plugins
2020.12.05 09:54:35.927 20.11.30.2 C:\THNEW\Plugins\JarJar\SalvageItemsData.cs(3577,6) : error CS1513: } expected
This is in a new clean install of TH.
I'm sure this is operator error. Just cannot find what I've done wrong.
-
Contributor
Originally Posted by
cpl666k9
Just followed post
#16 @
razer86. Getting the following exceptions.
2020.12.05 09:54:35.926 20.11.30.2 error while initializing plugins
2020.12.05 09:54:35.927 20.11.30.2 C:\THNEW\Plugins\JarJar\SalvageItemsData.cs(3577,6) : error CS1513: } expected
This is in a new clean install of TH.
I'm sure this is operator error. Just cannot find what I've done wrong.
The error message means that you're missing a closing bracket } ...typically caused by incomplete copy and pastes.
-
Post Thanks / Like - 1 Thanks
cpl666k9 (1 members gave Thanks to Razorfish for this useful post)
-
Member
Figured it out. Thanks @Razorfish
-
Member
hello, i tried to use this plugin, always with errors, is there a correct and updated version guide to follow, with the related .cs files?
thanks
-
Almost time for the new season, and I'm back playing again for a while, so it's time for some updates.
No updates needed for the plugin at this time, working with 21.4.8.0
Plugin and latest data from icyveins - https://mega.nz/file/8FpWAQRa#uvHB6I...-0EEas2b314Ltg
Precomplied updater - https://mega.nz/file/YYxmwYYR#NaPtxx...l4G_g3b5jl840A
Updater source - https://www.ownedcore.com/forums/diablo-3/turbohud/turbohud-community-plugins/792083-intl-jarjar-salvageitems.html . GitHub
Plugin with data - Unzip to 'plugins' folder in TurboHUD overwriting the JarJar folder
Precompiled updater - This will convert the builds list data to a table that needs to be inserted into the original file in the plugin directory. Either see my previous post (https://www.ownedcore.com/forums/dia...ml#post4232038 ([INTL] [JarJar] SalvageItems)) or use the pre-generated file in the first link above.
Updater source - Updated for the new build names on Icy-Veins, follow my steps in my previous post on how to use them.
Last edited by razer86; 07-23-2021 at 06:12 AM.
-
-
Member
How to use it on turbohud?