Compatability Issue: Theo Smithing and Alchemic Synthesis

Hello

I'm having a bit of in issue with using Theo's Smithing script with Kread-EX's Alchemic Synthesis script. Whenever I attempt to start the game, I get the fallowing error:

error.png

(Weapon LV is theo's smithing script)

Here's a link to the two scripts.

Alchemic Synthesis: https://grimoirecastle.wordpress.com/2011/12/08/alchemic-synthesis-go-go-totori/
Theo Smithing: http://rmrk.net/index.php?topic=48152.0
As a note, I also use the addon here with Theo Smithing, although I get the error requardless of if I'm using it.

Be sure to let me know if you need any additional information!
for such script errors, we need the backtracer output to see what is really involved here.
Please follow the link "how to use a script" in my signature to the bughunting section, download and install the backtracer script and then give us a screenshot of its console output.
for such script errors, we need the backtracer output to see what is really involved here.
Please follow the link "how to use a script" in my signature to the bughunting section, download and install the backtracer script and then give us a screenshot of its console output.

Sure thing, here you go!

error2.png


As a guidline, Weapon LV is Theo Smithing, while GO GO TOTORI is alchemic synthesis. There's a couple other scripts that load in as well, but the error still present without them.
Could you share a demo?
You can try to enter this somewhere below the Weapon Level script:
Spoiler
Code:
class RPG::Weapon < RPG::EquipItem
 
  attr_accessor :ori_id
  attr_accessor :upgrade_price

  def clone_data
    cwp = RPG::UpgradedWeapon.new
    cwp.ori_w = Marshal.load(Marshal.dump(self))
    return cwp
  end
 
  def upgrade_key
    (self.ori_id || self.id) * 100 + (level+1)
  end
 
  def make_price
    item_price = @price
    base_price = THEO::Smith::PriceBase
    @upgrade_price = eval(THEO::Smith::PriceUpgrade)
    @price = eval(THEO::Smith::PriceTrade)
  end
 
end

RPG.send(:remove_const, :UpgradedWeapon)

class RPG::UpgradedWeapon

  attr_accessor :ori_w
 
  def method_missing(sym, *argv, &argb)
    if @ori_w.respond_to?(sym)
      return @ori_w.send(sym, *argv, &argb)
    end
    super(sym, *argv, &argb)
  end

  def is_a?(*argv,&argb)
    if [RPG::BaseItem,RPG::EquipItem,RPG::Weapon].include?(argv[0])
      return true
    else
      super(*argv,&argb)
    end
  end
 
end
Note that I have absolutely no idea if this actually works function-wise in the game itself. I just simplified that messed up clone method which gave the error.
It eliminates the error, and lets you start the game. Both scripts should work in theory, but I did not test it at all, I will leave that to you. 😛

Ohh, I didn't see that addon you use with the Weapon Level script.
You will most probably need to change the make_price method to the one from that addon.
Just copy the whole method from that addon and paste it over the same method in this patch.

Original thread: https://forums.rpgmakerweb.com/threads/compatability-issue-theo-smithing-and-alchemic-synthesis.77648/