Venka Crafting Script 3.8 with Item Hues

Queerpg

Villager
Member
Joined
Jul 22, 2019
Messages
22
Reaction score
1
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
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
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.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
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.
 

Queerpg

Villager
Member
Joined
Jul 22, 2019
Messages
22
Reaction score
1
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:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top