Error with Hime's Actor Inventory Script

I use Hime Works' Actor Inventory script. (https://himeworks.com/2013/07/actor-inventory/)
This script give each actor a sifferent inventory, with different stored items. With the principal script there are three others (Menu scene, Battle scene, Shop scene).
The issue comes when I use an item in battle with not-selectable target (all enemies/allies, casual target ecc.).
The error is this one:
we need more info than that message can show before we can even guess what happened.

please follow the link to the "how to use a script" tutorial in my signature to the bughunting section.
download the backtracer script,install it and give us a screenshot of the console output of the backtracer when triggerring that error again.

make sure to start a new game after installing the backtracer
we need more info than that message can show before we can even guess what happened.

please follow the link to the "how to use a script" tutorial in my signature to the bughunting section.
download the backtracer script,install it and give us a screenshot of the console output of the backtracer when triggerring that error again.

make sure to start a new game after installing the backtracer

Where can I find this backtracer script and how can I open the console?
that is why I told you to follow the link to the tutorial I wrote - it contains the link to the backtracer script.
and the console opens with the option in the Ace editor menu
that is why I told you to follow the link to the tutorial I wrote - it contains the link to the backtracer script.
and the console opens with the option in the Ace editor menu

Ok, I just discovered a new problem. This never happened before. When I press New Game this error pops.

I don't know whats wrong, this script never gave problems before I added the backtracer.
where did you add the backtracer?
have you followed the instructions like I said, because that is not a regular script for the materials section, and the only way such an error could happen is if the backtracer was placed above the script that made the other command available...
that is why I told you to follow the link to the tutorial I wrote - it contains the link to the backtracer script.
and the console opens with the option in the Ace editor menu

I understood something. It seems like if I do New Game the game doesn't recognize the scripts. It gives me a weird error.

The line with the error:

Code:
  #-----------------------------------------------------------------------------
  # Replaced. Check if any members have the item
  #-----------------------------------------------------------------------------
  def item_number(*args)
    leader.item_number(*args)
  end


This comes only with new game.
You have done a Control Variables command to get the number of items in inventory, and it is looking at the leader, but it appears you haven't assigned a leader yet, which implies you might have an empty party when this command is run.
You have done a Control Variables command to get the number of items in inventory, and it is looking at the leader, but it appears you haven't assigned a leader yet, which implies you might have an empty party when this command is run.

Oh, ok... but do the script do this by default? Becouse i haven't done this control.
The bug is happening from a Control Variables command. You must have it somewhere - the script doesn't do it.
from what you told us, you once changed a few things in the settings for the starting party (might be weeks ago) and that introduced the bug you now have - but that bug never appeared before because this is the first time you actually started a new game after making that change.
the error has nothing to do with the script, it's the new game that caused it to appear. But you have to start a new game for the script to work, and that means you now have to go back to the other things you did in the past weeks to find out where you made the mistake that now prevents the new game from functioning correctly.
however, it has to be an event on the starting map or on the common events, it can't be anywhere else.
from what you told us, you once changed a few things in the settings for the starting party (might be weeks ago) and that introduced the bug you now have - but that bug never appeared before because this is the first time you actually started a new game after making that change.
the error has nothing to do with the script, it's the new game that caused it to appear. But you have to start a new game for the script to work, and that means you now have to go back to the other things you did in the past weeks to find out where you made the mistake that now prevents the new game from functioning correctly.
however, it has to be an event on the starting map or on the common events, it can't be anywhere else.


The problem was the emty party at the beginning, but it's still strange becouse I have a file I play in paralel with making the game, ad that file had all the script working fine (including actor inventory), so when In the past I started this file (I still have now) with new game that error didn't appear. But stop thinking about this, I solved basically adding an Actor in the starting party.

Talking about the principal problem (The topic of this thread ) it seems the error comes only in battle testing from database (stupid me, why I test a custom feature in testing mode?) so I thinkIt's all solved. Thank you very much, if I find something else I'll tell you 🙂
it seems the error comes only in battle testing from database
the battletest in the database uses shortcuts to launch the battle directly.
that is no problem if you don't have any scripts at all, or for some of the battlescripts - but it is known to cause more problems the more changes are done to the battleengine by scripts, simply because those shortcuts also circumvent parts of the scripts added.
I've got some news. The bug still exist but it only happens in battle test (and this doesn't matter) and when I only have one party member. I tested and it seems to be this. Here's the console error message.
Basically it's missing data of the last item used.
I can think of several possibilities, but unfortunately I don't have ace installed anymore to check them.

the first question would be if that method is a default function, or if you're missing another script from tsukihime because I know that tsukihime wrote several scripts for Ace that introduced similar memory functions.

I've moved this thread to Script Support. Thank you.

Basically it's missing data of the last item used.
I can think of several possibilities, but unfortunately I don't have ace installed anymore to check them.

the first question would be if that method is a default function, or if you're missing another script from tsukihime because I know that tsukihime wrote several scripts for Ace that introduced similar memory functions.

By Tsukihime I have these scripts:
- Large choice (lets you to add more than 4 options in a choice)
- Core Inventory (It's required for actor inventory)
- Actor inventory (with battle, shop, menu scene. I put them in different script slots)
- Item Trade (an add on for actor inventory, lets you trade items between actors)

I also have this line of code:

Code:
class Game_Party < Game_Unit

  def menu_actor_next
    index = battle_members.index(menu_actor) || -1
    index = (index + 1) % battle_members.size
    self.menu_actor = battle_members[index]
  end

  def menu_actor_prev
    index = battle_members.index(menu_actor) || 1
    index = (index + battle_members.size - 1) % battle_members.size
    self.menu_actor = battle_members[index]
  end

end

Wrote by @Sixth in a past thread (https://forums.rpgmakerweb.com/inde...-call-formation-by-event.130462/#post-1141155).

I don't think It influences Tsukihime scripts but class Game_Party < Game_Unit is also in core inventory and actor inventory.

Also, any idea of why this happens only with one party member?
If it only happens in battle test, it is probably okay. If you add a battle to a map and do a proper test play, does it still happen? If not, it's because you're doing a battle TEST, and it's known that some plugins don't work on battle test and event test, because the database is loaded differently.
If it only happens in battle test, it is probably okay. If you add a battle to a map and do a proper test play, does it still happen? If not, it's because you're doing a battle TEST, and it's known that some plugins don't work on battle test and event test, because the database is loaded differently.

No, it appears also in normal battle in map if I have ONE party memeber.

Original thread: https://forums.rpgmakerweb.com/threads/error-with-himes-actor-inventory-script.130761/