Venka Crafting Script 3.8 with Item Hues

Discussion in 'RGSSx Script Support' started by Queerpg, Aug 9, 2019.

  1. Queerpg

    Queerpg Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hi all, I'm looking for an item icon hue/color changing script that works with Venka's Crafting Script 3.8
    as I need to color change ores/bars icons to be different colors for crafting tiers.

    At the moment I have Modern Algebras Icon Hues script but it's clashing with the icon hues call part of Venka's script
    (if $imported && $imported[:MAIcon_Hue]
    draw_icon_with_hue(@recipe.crafted_item.icon_index,
    @recipe.crafted_item.icon_hue, x, y, enabled))
    I get a script error for this area whenever I attempt to open a craft page with the Item Hues script installed.
    I remember someone talking about an item hue script that was patched for the crafting script, or how to patch one.
    Cheers
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,358
    Likes Received:
    11,149
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Please post links to the scripts you're using.

    And if you're getting an error, post what the error message is.
     
    #2
  3. Queerpg

    Queerpg Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
  4. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,598
    Likes Received:
    349
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    In my testing I've changed a few things so far. 1 is a typo.
    Crafting script where you got the error.
    Line 1072 change enabled to current_item_enabled?
    same for Craft and decompile line 812 chance enabled to current_item_enabled?
    also
    for craft & decompile line 695. There is a typo. change to rect.y

    Adding in a method gets it working.
    Add this above def draw_craft_number(x, y, w, h) on line 1065
    Code:
      #----------------------------------------------------------------------------
      # ○ new method: enabled?
      #----------------------------------------------------------------------------
      def enabled?
        $game_party.has_item?(@item) && $game_party.gold >= item.decon_fee
      end
    
    then change the enabled to enabled? in craft & decomile line 812 and the main script v3.8 line 1078
    So far with those changes the project is running.
    Not sure if it will cause problems later, but it's the second test that worked.
     
    #4
    Queerpg likes this.
  5. Queerpg

    Queerpg Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    Awesome, thankyou so much!

    I'm currently not running decomile add on but may add it in future so thankyou.

    I have changed line 1078 to

    draw_icon_with_hue(@recipe.crafted_item.icon_index,
    @recipe.crafted_item.icon_hue, x, y, enabled?)
    and added your script patch to v3.8.

    So far everything seems to be running smoothly.
     
    Last edited: Aug 10, 2019
    #5

Share This Page