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 1 Guest are viewing this topic.

Xapples

Hiya, I've been trying your script out, and I'm loving it so far, but I've run into a few problems in my game.

1.) When I view the information for an item, it shows an icon in the top right of the information window that's seemingly randomly selected from my icon sheet. Not a gigantic problem, just an eyesore.

2.) When I view some of the items, the game crashes and I get this error:


It's probably some stupid mistake on my part, but I've tried everything I could think of to fix the problem(I'm no scripter, by the way ;_;) and nothing has worked so far.

If you could point me in the right direction I would be eternally grateful! ^_^

modern algebra

Both of those are related. The icon(s) at the top right aren't randomly selected - they represent the elements that that item has. The error you are receiving is likely because you haven't setup which icons you want to use to represent each element you have in the database. If you go to line 154, you will see this:


  # Icons to represent elements of items in the Information screen. Every
  #  element MUST have an icon.
  GI_ELEMENT_ICONS = [132, 2, 4, 14, 16, 12, 138, 137, 104]


You must give every element an icon.

Alternatively, if you don't want to show the elements at all, you would need to go to line 2084 and comment out the following four lines:


    item.element_set.each { |i|
      x -= 28
      draw_icon (ModernAlgebra::GI_ELEMENT_ICONS[i - 1], x, 4)
    }

Xapples

Aargh! I knew it was something I missed.

Thanks a lot! It works perfectly now.
Very cool script 8)

Jskrasnove

I am unsure on how to download the script and no one will tell me. Please reply.

modern algebra

#79
Who's the no one to tell you? Who did you ask?

In any case, just scroll down to the bottom of the first post and click the like that says: "Grid Inventory Demo." Alternatively, click this link: Grid Inventory Demo

aolf1

I downloaded your script and it worked great but I made an item and once I use it once the use option turns faded and it won't let me use the item anymore. i've checked and the item is not consumable.

I've found a way around the problem by using the item them putting it in my loot them taking the item again, but them i still only have one time use until it fades again!

modern algebra

#81
Thanks for catching that error. You can fix it by going to line 3121 and changing the following:


    $game_party.modalg_gd_nventry_item_gain_7ye4 (placement.item, -1)


to:


    $game_party.modalg_gd_nventry_item_gain_7ye4 (placement.item, -1) if placement.item.consumable


Alternatively, you can redownload the script as I have updated it to version 1.0f.

Forty

Hey modern, I was using your script when I got this error

Script 'Grid Inventory 1.0f line 3299: Argument Error occurred
comparison of String with 0 failed


I got this when I exited from your quest journal menu which I am also using.
It was in version 1.0e as well. I think it may have to do with compatibility of scripts so this is what I'm using.
I'm using your quest journal and grid inventory scripts, Thomas Edison, and Day/Night cycle by Jet.

modern algebra

Yeah, it's a compatibility error. At line 3299, try replacing:


    elsif menu_index >= ModernAlgebra::GI_MENU_INDEX


with:


    elsif !menu_index.is_a? (String) && menu_index >= ModernAlgebra::GI_MENU_INDEX

aolf1

I've been using you script to make my game and i works well. I made a Event that makes a variable=Item in inventory. I get the error message:

Script 'Game-Interpreter' line 750: NoMethodError occurred.

undefined method '[]' for nil: NilClass

I was wondering if this was because of your Script or my eventing? If you could tell my what this means and how to fix it I would be very thankful.

modern algebra

It's not my script or your eventing; it's a mistake that enterbrain made in scripting when they released VX. The fix is located in this topic: http://rmrk.net/index.php/topic,25243.0.html

Make sure to also fix the multiplication error. They are in separate posts.

Bonichava

Hey man...
when i trie to equip a shield type item on my character, i got that error....
Script "Grid inventory" line 2934: Argument Error Ocurred.
wrong number of arguments(4 for 3)

This is the line:
$game_actors[@inventory.actor_id].change_equip (equip_type, item, false, indx)
Please tell me how can i fix it!!!!!

modern algebra

It's an incompatibility with another script. One of your other custom scripts redefines the change_equip method and does not take into account the possibility of another argument being added.

Identify which script is causing the error and try placing this script below it.

Bonichava

Ok..thanks..i actually know the problem....
this script is not compatible with the "Learn skills by equipment"...
Thanks for the support......
Your script is great for my survival horror game..lol... ^-^

CodeMaster

#89
I am having a problem it is not working with your full status CMS it makes the commands open scenes they are not set to and the none of them open the inventory

Edit: I Fixed it by placing the gird inventory above the FSM but it still does to open the grid only normal item screen

[spoiler]


[/spoiler]
[spoiler]John 3:16: For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life[/spoiler]

modern algebra

Yeah, well you have to change it. It needs to call Scene_GridInventory, not Scene_Item. So basically, you need to set it up in the FSCMS. Something like the following:


    0 => ["Vocab::item", 144, "$game_party.members.empty?", true, Scene_GridInventory],

CodeMaster

thank you sorry to keep asking for script help but i could not script to save my life.

[spoiler]


[/spoiler]
[spoiler]John 3:16: For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life[/spoiler]

erthia

This is an awsome script. However, is there anyway to get this to work with KGC Equipment extension? It doesnt seem to work with it. It won't equip or uniquip any of the extended armors.

Infinate X

 :tpg: JUST LIKE DIABLO 2!!!! I wanted to make a game with features like Diablo 2!

CodeMaster

I have gotten it to work with KGC Equipment Extentions as long as the grid inventory is below KGC's script it works the only slight problem is that it is equiping things to the wrong place

[spoiler]


[/spoiler]
[spoiler]John 3:16: For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life[/spoiler]

Watfordj

#95
i got a problem, when i equip an item an error occours on line 2934
        $game_actors[@inventory.actor_id].change_equip (equip_type, item, false, indx)
it says argument error wroung number of arguments (4 of 3)

*Never Mind, I figured it out, thius script iis incompatable with 'Tales of' Titles*

modern algebra

Yeah, that is probably all it is. But, before deleting one or the other, try them in a different order (IE. try putting the Grid Inventory below the Titles script - you currently have it above if I'm not mistaken).

ktibi

Is there a way to make this work with Simple Mouse System? I mean they don't interfere or something, only the mouse can't be used to move the selection, just to click the selected item.

Forty

I just noticed something I found quite peculiar...
I can't put anything into the storage boxes. I found this to be very strange.

CodeMaster

It works fine for me ??? I wonder if there are any other scripts that might be interfering.

[spoiler]


[/spoiler]
[spoiler]John 3:16: For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life[/spoiler]