Main Menu
  • Welcome to The RPG Maker Resource Kit.

Grid Inventory 1.0f

Started by modern algebra, July 31, 2009, 06:32:22 AM

0 Members and 2 Guests are viewing this topic.

modern algebra

Alright, try replacing that same section of the script with:


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start Item Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias modalr_invgrid_slctitm_windo_4h21 start_item_selection
  def start_item_selection (*args)
    # Run Original Method
    modalr_invgrid_slctitm_windo_4h21 (*args)
    return unless  ModernAlgebra::GI_PERSONAL_ITEM_USE ||
        @active_battler.nil? || @active_battler.actor?
    # Setup inventory
    @item_window.ma_inventory = @active_battler.inventory
    @item_window.refresh
  end


If that doesn't work, I would like to see ziifee's battle system. A link would be fine. It probably alters the way @active_battler operates in Scene_Battle, which is why these errors are occuring.

adamass

Quote from: modern algebra on September 03, 2009, 06:00:16 PM
Alright, try replacing that same section of the script with:


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start Item Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias modalr_invgrid_slctitm_windo_4h21 start_item_selection
  def start_item_selection (*args)
    # Run Original Method
    modalr_invgrid_slctitm_windo_4h21 (*args)
    return unless  ModernAlgebra::GI_PERSONAL_ITEM_USE ||
        @active_battler.nil? || @active_battler.actor?
    # Setup inventory
    @item_window.ma_inventory = @active_battler.inventory
    @item_window.refresh
  end


If that doesn't work, I would like to see ziifee's battle system. A link would be fine. It probably alters the way @active_battler operates in Scene_Battle, which is why these errors are occuring.

Nope, it doesn't help either, but know that your efforts are very much appreciated MA.

ziifee's Wait Gauge Battle;Scripts by ziifee LINK: http://www.rpgmakervx.net/index.php?showtopic=11555


I hope it will help because I can tell this script is quite a work of art and you wanna make it compatible eh.

modern algebra

Alright, well I did some testing and this appears to work. Place the Grid Inventory below the WGB and place this little code in its own slot below the Grid Inventory


#==============================================================================
#    Grid Inventory + ziifee's WGB Compatibility Patch
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Place Grid Inventory below ziifee's scripts and this patch beneath the
#   Grid Inventory
#==============================================================================

#==============================================================================
# ** Scene Battle
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    overwritten method - start_item_selection
#==============================================================================

class Scene_Battle
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start Item Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def start_item_selection (*args)
    # Run Original Method
    modalr_invgrid_slctitm_windo_4h21 (*args)
    return unless  ModernAlgebra::GI_PERSONAL_ITEM_USE
    # Setup inventory
    @item_window.ma_inventory = @select_battler.inventory
    @item_window.refresh
  end
end

adamass

 :tpg:AT LAST! :tpg:
thanx Man, I'll continue and finish my game now. You must be a god or something
;8YEAH! ;8

:blizj:

On a more serious note, I wondered what you thought about ziifee's battle system?

modern algebra

It's a very pretty system. I liked the graphical aspects of it a lot. I didn't really examine the coding, but I thought it was a really nice script at least in terms of graphics and utility.

adamass

#55
Oh no maybe I yelled victory a bit too fast.

It's pretty weird because when I try with ziifee's demo and place it all like you told me to do, it works fine, but in my project it just doesnt do the same, even tho I place every scripts the same manner...

Must be my system data, I really don't get it. Thanx anyway.

adamass

Ok I found out that the patch you sent today was not compatible with Moghunter's Basic Menu Plus V 1.0. Not that a sadness for me, since a menu is not that important compared to your script.

That said, thanx and all again ::)

modern algebra

Well, it's important enough. I can't imagine the patch I sent caused the incompatibility though; it probably existed before the patch. I can try to fix it, but it depends on how different Mog's menu makes it.

It might be a matter of just configuring it through that menu.

adamass

Hmmm, you might be right. The patch may not be the problem indeed. In fact, as soon as I applied it, the item tag was just not replaced by ''inventory''. So it might be just as you say; it must be about the config of mog's script. Then again,I am a complete klutz when it comes to scripting and could search for like hours just to find what to change.

If you ever get osme time to spare, I might send you a link for it. However, I am not that sure to keep this menu script and am still looking for one before I make my final decision. Maybe you got one to suggest however that may be compatible and all?

Thanx again for your efforts.

modern algebra

Well, you could try putting the Grid Inventory under the menu if it isn't already.

But most CMSes kind of act funny if all scripts aren't configured from there. I really suggest you just learn the configuration. If not for MOG's, then for Yanfly's Scene Menu Redux
or my Full Status Menu or for any other Menu system. There are lots out there.

Zero2008

Hey dude, i found an error in your script.
When I optimized the inventory and then tried to quip a weapon I got an error window telling me

"Line 2939:
Wrong number of arguments 4 to 3" Or something like that.

Here is the line:
$game_actors[@inventory.actor_id].change_equip (equip_type, item, false, indx)

modern algebra

It sounds like a compatibility error, though the condition of optimizing first is rather strange. Does the error not occur if you don't optimize first?

Anyway, I suspect a compatibility error because the error suggest it is passing four arguments to a method that only expects three. But, that method in the Grid Inventory expects 2-4. So my suspicion is that you are using some script that aliases or overwrites change_equip without allowing for additional arguments.

So, my first suggestion to you is to place the Grid Inventory below any other custom scripts you have.

Zero2008

Yeah, I kinda figured that out right now. Thanks anyways dude!

Zero2008

Hey nice name change.

Umm I found one more bug in your Grid Inventory.
When I change the name of one or all of the Actors in my party, when I go to look at their inventory it displays their original name instead of the names I chose for them...
Think you can fix that up real quick?

Thanks in advance!

modern algebra

Alright, try adding this below the Grid Inventory, but still above Main:


#==============================================================================
# ** Game Actor
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - name=
#==============================================================================

class Game_Actor
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 # * Change Name
 #     name : new name
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 alias ma_zro_grdinvtory_chngname_7jj2 name=
 def name= (*args)
   ma_zro_grdinvtory_chngname_7jj2 (*args)
   @inventory.name = @name unless @inventory.nil?
 end
end


and the name change isn't permanent.

Zero2008

Thanks man, Although i needed to start a new games IT WORKS!!!
LOL
but now it doesn't say *"Person name" Items* It just says the name...
I'm cool with that though, I'm just letting you know.

JiM83

I have an error when my party gets items after a battle while already having a full inventory.
The error I get is:
      Script 'Grid Inventory 1.0' line 3190: NameError occurred.
      uninitialized constant Scene_Battle::Scene_Inventory

I'm using version 1.0b with no other scripts. I copied the script directly from the
demo.

modern algebra

Shoot, that's a bad error. Go into your script, press CTRL+H. In the Find field, put Scene_Inventory. In the Replace field, put Scene_GridInventory. Replace all.

JiM83

Thanks for the help.
It's working great now.

lplegacy

t'would be freaking awesome if this was for XP. anyone want to transfer it? xD
Feed my dragons your clicks! Please...? Or they'll die, and I'll be really sad... I already named them and everything.




modern algebra

Originally, I had made it for XP but it was full of bugs, so now it's only for VX. Anyway, I updated it to 1.0d to fix a few minor bugs people have mentioned. Hopefully everything will be dandy now.

masta_fo

Hi, first off i wanted to say that i am really enjoying the script so far but there is a bug i think i have found. In my game when someone other than the main actor sells something it seems to be duplicated in their inventory screen. You cant sell it but there is a copy in their inventory. I also tried this in the demo and the same thing happened. I would really appreciate if you could tell me if i am doing something wrong. Also this isn't as important but i was wondering if it would be possible to make it so certain actors cant have their equipment unequipped.

modern algebra

Updated to 1.0e. Should fix that problem.

masta_fo

Thank you so much! Works perfectly

tSwitch

You know what I'm thinking Modern?
Perhaps a switch option that makes it so that when you equip something, it doesn't remove it from your inventory.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon