[INTL] [JarJar] SalvageItems menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    razer86's Avatar Contributor Authenticator enabled
    Reputation
    176
    Join Date
    Aug 2009
    Posts
    179
    Thanks G/R
    36/31
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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:
    1. Download 'SalvageFromIcyVeins.cs' from the gist linked above and save to a folder
    2. 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))
    3. Open a command prompt and cd to the directory you have saved 'SalvageFromIcyVeins.cs' to
    4. In your command prompt type in:
      Code:
      dotnet new console
    5. Enter and wait a sec for the build environment to create
    6. Type in:
      Code:
      dotnet add package HtmlAgilityPack --version 1.11.24
    7. Enter and wait for the package to download and install
    8. 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
    9. 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)
    10. Once you have updated and saved 'Program.cs' go back to your command prompt and type in:
      Code:
      dotnet build
    11. If everything goes according to plan, you should now have a 'bin' folder
    12. Open 'bin', then 'Debug', then 'netcoreapp3.1'
    13. Here you should have a bunch of files (some .json, some .dll and an .exe)
    14. The EXE will generate the 'SalvageItemsData.cs' to be used by the plugin
    15. Double click the EXE, you will see a black widow open and scroll through with a bunch of text and then close.
    16. Back in the main folder where you originally saved 'SalvageFromIcyVeins.cs' to, there will now be 'SalvageItemsData.cs'
    17. 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.

    [INTL] [JarJar] SalvageItems
  2. Thanks milkisskill (1 members gave Thanks to razer86 for this useful post)
  3. #17
    iLikeMarlboroGold's Avatar Member
    Reputation
    1
    Join Date
    Aug 2020
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    suspicious

    Originally Posted by razer86 View Post
    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:
    1. Download 'SalvageFromIcyVeins.cs' from the gist linked above and save to a folder
    2. 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))
    3. Open a command prompt and cd to the directory you have saved 'SalvageFromIcyVeins.cs' to
    4. In your command prompt type in:
      Code:
      dotnet new console
    5. Enter and wait a sec for the build environment to create
    6. Type in:
      Code:
      dotnet add package HtmlAgilityPack --version 1.11.24
    7. Enter and wait for the package to download and install
    8. 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
    9. 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)
    10. Once you have updated and saved 'Program.cs' go back to your command prompt and type in:
      Code:
      dotnet build
    11. If everything goes according to plan, you should now have a 'bin' folder
    12. Open 'bin', then 'Debug', then 'netcoreapp3.1'
    13. Here you should have a bunch of files (some .json, some .dll and an .exe)
    14. The EXE will generate the 'SalvageItemsData.cs' to be used by the plugin
    15. Double click the EXE, you will see a black widow open and scroll through with a bunch of text and then close.
    16. Back in the main folder where you originally saved 'SalvageFromIcyVeins.cs' to, there will now be 'SalvageItemsData.cs'
    17. 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....

  4. #18
    razer86's Avatar Contributor Authenticator enabled
    Reputation
    176
    Join Date
    Aug 2009
    Posts
    179
    Thanks G/R
    36/31
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by iLikeMarlboroGold View Post
    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 View Post
    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 View Post
    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.

  5. #19
    abatron's Avatar Member
    Reputation
    7
    Join Date
    Oct 2019
    Posts
    4
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh man, works like a charm. super clear! Thanks for the easy step-by-step.

  6. Thanks razer86 (1 members gave Thanks to abatron for this useful post)
  7. #20
    cpl666k9's Avatar Member
    Reputation
    1
    Join Date
    Jan 2018
    Posts
    14
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #21
    Razorfish's Avatar Contributor
    Reputation
    188
    Join Date
    Apr 2019
    Posts
    178
    Thanks G/R
    19/158
    Trade Feedback
    0 (0%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cpl666k9 View Post
    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.

  9. Thanks cpl666k9 (1 members gave Thanks to Razorfish for this useful post)
  10. #22
    cpl666k9's Avatar Member
    Reputation
    1
    Join Date
    Jan 2018
    Posts
    14
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out. Thanks @Razorfish

  11. #23
    koss363's Avatar Member
    Reputation
    1
    Join Date
    Mar 2020
    Posts
    1
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  12. #24
    razer86's Avatar Contributor Authenticator enabled
    Reputation
    176
    Join Date
    Aug 2009
    Posts
    179
    Thanks G/R
    36/31
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.

  13. #25
    razer86's Avatar Contributor Authenticator enabled
    Reputation
    176
    Join Date
    Aug 2009
    Posts
    179
    Thanks G/R
    36/31
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    -double post deleted-

  14. #26
    NyZ's Avatar Member
    Reputation
    1
    Join Date
    Jul 2021
    Posts
    14
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to use it on turbohud?

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [7.6] [INTL] Item Info Plugin - RFC
    By JarJarD3 in forum TurboHUD Community Plugins
    Replies: 16
    Last Post: 07-23-2021, 06:09 PM
  2. [7.6] [INTL] InventoryAndStashPlugin (fork)
    By JarJarD3 in forum TurboHUD Community Plugins
    Replies: 7
    Last Post: 05-06-2021, 04:22 PM
  3. [INTL][JarJar]CheckMissingItems
    By JarJarD3 in forum TurboHUD Community Plugins
    Replies: 9
    Last Post: 09-05-2019, 11:26 AM
  4. [ENG] [JarJar] InventoryArmorySetItemsPlugin
    By JarJarD3 in forum TurboHUD Community Plugins
    Replies: 6
    Last Post: 01-23-2018, 02:52 PM
  5. [Selling] poe accounts intl
    By fanteg86 in forum PoE Buy Sell Trade
    Replies: 0
    Last Post: 07-01-2015, 02:22 AM
All times are GMT -5. The time now is 08:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search