Help! Asagi's Gun License

Tring to set it up so that the bow weapon will consume arrows. 


as it stands right now, arrows show up in inventory, the Rhand is showing that its setup for ammo. But I cannot equip arrows to that slot. I have no clue what I am doing wrong. Maybe I am not understanding the directions correctly. can someone please help?


<Shaz: snip - post a link to the script on the author's site. Do not put other people's scripts into your post, either as copy/paste or as an attachment>
1) We're going to need more info before we can help. Can you give us screenshots of your setup?

2) Try putting the script below all of the other scripts and see if that fixes it.
what do you mean screenshot of my setup? Installed, followed what it said. Realized arrows wasn't showing up for me to equipped. After spending hours of tring to figure it out, decided to post here.


It already is the last script on the list.


grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/asagis-gun-license/
what do you mean screenshot of my setup?
You cannot simply copy and ignore the script - it needs configuration.
Even a short glance at the site shows that it needs notetags, and we need to see screenshots of the database entries where you placed those notetags to see if you configured the script correctly.


EDIT: Additionally, there are two versions of the script on that site - please tell us which one you're using.
well I posted the script, but apparently it was changed and I had to post a link to the site. Using   Version 1.1

I have:

<ammo_slot_id: 1>

<ammo_slot_name: RHand> 

<ammo_type_id: 17>

 

setup on the archer class. 17 is the ID for the arrows listed under terms.

 

I've removed any code on the bow or the arrow themselves as neither way has worked.
According to the site's description, you NEED notetags in both CLASS and SKILL. If a notetag you did hasn't worked, then it's because you made the notetag wrong.


And we ask for screenshots because we need to know what you typed into the game, not what you typed here - there have been cases where someone made a typo in the game, but unconsiously fixed that typo whenever he wrote the tag here on the forum.


Only with a screenshot we can see if you typed everything correctly into the game.
I understand that, but what I posted above is the only thing I did under the Class notetag for Archer. I understand that I have to setup skills with notetags as well.

That isn't the issue here, the issue is that the archer class will not equip arrows. It is showing up in inventory, but will not equip to the slot and I do not understand why.
Then show us a screenshot of the archer class definition. We cannot find your error unless we see what you did in your game.


In the case you don't know how:


How to take a Screenshot:


You've heard people say to take a screenshot, but how does one take a screenshot of their game? Simple, while the game is running, hit the Prt Scr button on your keyboard, which is located right next to your F12 key. If you're using a laptop, you might have to use the Fn key in combination with the Prt Scr key to get it to work.

Now that you've pressed the button, it's time to paste this screenshot into an image editing software. If you don't have anything fancy such as Adobe Photoshop, GIMP or Paint.NET, no worries; you can use MS Paint instead. Open up your image editing software, create a new file, and then hit ctrl+v on your keyboard, or simply right click on the screen and select paste. This should instantly paste the screenshot into your image editing software. You can go ahead and crop the image to suit your needs, or if you don't even know what that means, you can just upload it as it is.

Save the image as a PNG, or if you really need to, as a high quality JPG.


How to upload the image to the forums


Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).



Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

IMG tags:
image.png
here:

Spoiler
[IMG]http://i255.photobucket.com/albums/hh135/dayhjawk/archer.png[/IMG]
You should have mentioned that you're using an additional equipment script when you have problems with equipping something...


If that is yanfly's engine, you gave it the wrong notetag - you should read its instructions more carefully, because the string in that notetag needs to be a name, not a number.


Please link to the equip manager script you're using, then we can better check where the compatibility problem comes from.
uh the other script is working just fine, and it's for accessories.

here's Yanfly equip engine:

Spoiler
Code:
#==============================================================================# # ▼ Yanfly Engine Ace - Ace Equip Engine v1.06# -- Last Updated: 2014.05.01# -- Level: Normal, Hard# -- Requires: n/a# #==============================================================================$imported = {} if $imported.nil?$imported["YEA-AceEquipEngine"] = true#==============================================================================# ▼ Updates# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# 2014.05.01 - Bug Fixed: Refresh Equip Item List when change slot.# 2012.02.02 - Bug Fixed: Crash when changing classes to different equip slots.# 2012.01.22 - Bug Fixed: <equip slot> notetags updated to factor in spaces.# 2012.01.05 - Compatibility Update: Equip Dynamic Stats# 2011.12.30 - Bug Fixed: Stats didn't update.# 2011.12.23 - Script efficiency optimized.# 2011.12.18 - Script efficiency optimized.# 2011.12.13 - Started Script and Finished.# #==============================================================================# ▼ Introduction# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# The default equipment system in RPG Maker VX is the standard equipment system# seen in all of the previous iterations, which consists of weapon, shield,# headgear, bodygear, and accessory. To break free of that norm, this script# allows users access to giving actors and/or classes dynamic equipment setups# (including having multiples of the same categories). In addition to having# different equip slot setups, newer equipment types can be made to allow for# more diversity in armour types.# #==============================================================================# ▼ Instructions# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# To install this script, open up your script editor and copy/paste this script# to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.# # -----------------------------------------------------------------------------# Actor Notetags - These notetags go in the actors notebox in the database.# -----------------------------------------------------------------------------# <equip slots>#  string#  string# </equip slots># This sets the actor's default slots to whatever is listed in between the two# notetags. An actor's custom equip slots will take priority over a class's# custom equip slots, which will take priority over the default equip slots.# Replace "string" with the proper equipment type name or when in doubt, use# "equip type: x" with x as the equipment type.# # <starting gear: x># <starting gear: x, x># Adds armour x to the actor's list of starting gear. This is used primarily# for the newer pieces of gear that can't be added through the starting set of# equipment through the RPG Maker VX Ace editor by default. Insert multiple of# these notetags to add more pieces of starting gear if so desired.# # <fixed equip: x># <fixed equip: x, x># This will fix the equip type x. Fixed equip slots mean that the equipment# already on it are unable to be exchanged in or out by the player. This tag# has been made so that equip types can be fixed for equip type 5 and above.# Use multiple of these notetags to add more fixed equipment restrictions.# # <sealed equip: x># <sealed equip: x, x># This will seal the equip type x. Sealed equip slots mean that no equipment# can be equipped onto that equip type slot. This tag has been made so that# equip types can be sealed for equip type 5 and above. Use multiple of these# notetags to add more sealed equipment restrictions.# # -----------------------------------------------------------------------------# Class Notetags - These notetags go in the class notebox in the database.# -----------------------------------------------------------------------------# <equip slots>#  string#  string# </equip slots># This sets the class's default slots to whatever is listed in between the two# notetags. An actor's custom equip slots will take priority over a class's# custom equip slots, which will take priority over the default equip slots.# Replace "string" with the proper equipment type name or when in doubt, use# "equip type: x" with x as the equipment type.# # <fixed equip: x># <fixed equip: x, x># This will fix the equip type x. Fixed equip slots mean that the equipment# already on it are unable to be exchanged in or out by the player. This tag# has been made so that equip types can be fixed for equip type 5 and above.# Use multiple of these notetags to add more fixed equipment restrictions.# # <sealed equip: x># <sealed equip: x, x># This will seal the equip type x. Sealed equip slots mean that no equipment# can be equipped onto that equip type slot. This tag has been made so that# equip types can be sealed for equip type 5 and above. Use multiple of these# notetags to add more sealed equipment restrictions.# # -----------------------------------------------------------------------------# Weapon Notetags - These notetags go in the weapons notebox in the database.# -----------------------------------------------------------------------------# <fixed equip: x># <fixed equip: x, x># This will fix the equip type x. Fixed equip slots mean that the equipment# already on it are unable to be exchanged in or out by the player. This tag# has been made so that equip types can be fixed for equip type 5 and above.# Use multiple of these notetags to add more fixed equipment restrictions.# # <sealed equip: x># <sealed equip: x, x># This will seal the equip type x. Sealed equip slots mean that no equipment# can be equipped onto that equip type slot. This tag has been made so that# equip types can be sealed for equip type 5 and above. Use multiple of these# notetags to add more sealed equipment restrictions.# # -----------------------------------------------------------------------------# Armour Notetags - These notetags go in the armour notebox in the database.# -----------------------------------------------------------------------------# <equip type: x># <equip type: string># For the newer equip types, replace x or string with the equip type ID or the# name of the equip type respectively. This will set that armour to that# particular equip type.# # <fixed equip: x># <fixed equip: x, x># This will fix the equip type x. Fixed equip slots mean that the equipment# already on it are unable to be exchanged in or out by the player. This tag# has been made so that equip types can be fixed for equip type 5 and above.# Use multiple of these notetags to add more fixed equipment restrictions.# # <sealed equip: x># <sealed equip: x, x># This will seal the equip type x. Sealed equip slots mean that no equipment# can be equipped onto that equip type slot. This tag has been made so that# equip types can be sealed for equip type 5 and above. Use multiple of these# notetags to add more sealed equipment restrictions.# # -----------------------------------------------------------------------------# State Notetags - These notetags go in the states notebox in the database.# -----------------------------------------------------------------------------# <fixed equip: x># <fixed equip: x, x># This will fix the equip type x. Fixed equip slots mean that the equipment# already on it are unable to be exchanged in or out by the player. This tag# has been made so that equip types can be fixed for equip type 5 and above.# Use multiple of these notetags to add more fixed equipment restrictions.# # <sealed equip: x># <sealed equip: x, x># This will seal the equip type x. Sealed equip slots mean that no equipment# can be equipped onto that equip type slot. This tag has been made so that# equip types can be sealed for equip type 5 and above. Use multiple of these# notetags to add more sealed equipment restrictions.# #==============================================================================# ▼ Compatibility# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that# it will run with RPG Maker VX without adjusting.# #==============================================================================module YEA  module EQUIP        #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # - General Equip Settings -    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # This adjusts the default equip configuration. While actors can have their    # own unique equipment configurations, it's recommended to not change too    # much as things get really hairy when it comes to proper eventing.    #     # ID   Equip Type    # ---  ------------    #  0   Weapon    #  1   Shield    #  2   Headgear    #  3   Bodygear    #  4   Accessory    #     # Whatever you set the below slots to, the dual wield setup will be exactly    # identical except that the second slot will be changed to a weapon (0).    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # Adjust this array to set the default slots used for all of your actors    # and classes if they do not have a custom equipment slot setup.    DEFAULT_BASE_SLOTS = [ 0, 1, 2, 3, 4, 6, 6]        # This hash adjusts the new equip types (past 4+). Adjust them to match    # their names properly. You can choose to allow certain types of equipment    # be removable or not, or whether or not optimize will affect them.    TYPES ={    # TypeID => ["Type Name", Removable?, Optimize?],           0 => [   "L Hand",      true,      true],           1 => [   "R Hand",       true,      true],           2 => [ "Head",       true,      true],           3 => [ "Body",       true,      true],           4 => ["Arms",       true,     true],           5 => [    "Accessory",       true,      false],           6 => [ "Accessory",       true,      false],    } # Do not remove this.        #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # - Equip Command List -    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # Here, you can adjust the order at which the commands appear (or even    # remove commands as you see fit). Here's a list of which does what:    #     # -------------------------------------------------------------------------    # :command         Description    # -------------------------------------------------------------------------    # :equip           Activates the manual equip window. Default.    # :optimize        Optimizes equipment for the actor. Default.    # :clear           Clears all equipment from the actor. Default    #     # And that's all of the currently available commands. This list will be    # updated as more scripts become available.    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # This array arranges the order of which the commands appear in the Equip    # Command window in the Equip Scene.    COMMAND_LIST =[      :equip,      :optimize,      :clear,    # :custom1,    # :custom2,    ] # Do not remove this.        #--------------------------------------------------------------------------    # - Equip Custom Commands -    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    # For those who use scripts to that may produce unique effects for    # equipping, use this hash to manage the custom commands for the Equip    # Command Window. You can disable certain commands or prevent them from    # appearing by using switches. If you don't wish to bind them to a switch,    # set the proper switch to 0 for it to have no impact.    #--------------------------------------------------------------------------    CUSTOM_EQUIP_COMMANDS ={    # :command => ["Display Name", EnableSwitch, ShowSwitch, Handler Method],      :custom1 => [ "Custom Name",            0,          0, :command_name1],      :custom2 => [ "Custom Text",           13,          0, :command_name2],    } # Do not remove this.        #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # - Misc Window Settings -    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # This section adjusts the minor visuals that you see inside of the newly    # organized Equip Scene. Adjust the settings as you see fit.    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # This sets the font size used for the status window in the lower right    # corner of the screen (which shows stats and comparisons).    STATUS_FONT_SIZE = 20        # This sets the remove equip command in the item window.    REMOVE_EQUIP_ICON = 0    REMOVE_EQUIP_TEXT = "< Unequip >"        # This sets the no-equipment text in the slot window.    NOTHING_ICON = 0    NOTHING_TEXT = " "      end # EQUIPend # YEA#==============================================================================# ▼ Editting anything past this point may potentially result in causing# computer damage, incontinence, explosion of user's head, coma, death, and/or# halitosis so edit at your own risk.#==============================================================================module YEA  module REGEXP  module BASEITEM        EQUIP_SLOTS_ON  = /<(?:EQUIP_SLOTS|equip slots)>/i    EQUIP_SLOTS_OFF = /<\/(?:EQUIP_SLOTS|equip slots)>/i        EQUIP_TYPE_INT = /<(?:EQUIP_TYPE|equip type):[ ]*(\d+)>/i    EQUIP_TYPE_STR = /<(?:EQUIP_TYPE|equip type):[ ]*(.*)>/i        STARTING_GEAR = /<(?:STARTING_GEAR|starting gear):[ ](\d+(?:\s*,\s*\d+)*)>/i        FIXED_EQUIP = /<(?:FIXED_EQUIP|fixed equip):[ ](\d+(?:\s*,\s*\d+)*)>/i    SEALED_EQUIP = /<(?:SEALED_EQUIP|sealed equip):[ ](\d+(?:\s*,\s*\d+)*)>/i      end # BASEITEM  end # REGEXPend # YEA
You have already been asked to provide links to the script's original pages and NOT post the scripts themselves here.


And no, the scripts don't work fine or you would have no problems here. And I know for a fact that the notetag is wrong, so you need to correct it before continuing the bughunt.


Additionally I can see that even in the script yourself you made configuration errors (which is why I leave that part of the script in your post).


The list is for Equipment types", not for equipment slots, and there should NEVER be doubles of the same name in that list.


Edit: Something in your last post blocks the edit function, most probably a wrong combination of spoiler and code tags triggered one of the forum softwares bug.


I'll check how to remove the script (but keep the configuration mistakes of it) later
I don't understand..... you tell me to post the script, which I did, which has been edited. If I post the orginial script, it's not hte one i'm using. 😳

How can there be configuration errors, when everyething is working just fine. I go and change something, it's doesn't work. I change it back to how I have it now, it works. 

I don't understand how it can be wrong if everything is working.
I don't understand how it can be wrong if everything is working.
Oh?Are you suddenly telling me that you can correctly equip the arrows? If not, why are you lying and claiming that everything works?

With computer programming, everything can be connected - and just because one bug is compensated in one script that doesn't mean that it can't cause a problem in a different script.

I know for a fact that the equip settings in Yanfly's equip manager can be very tricky because of the many defaults and overrides he placed there. And if one of those overrides caused it to ignore a wrong setting that doesn't mean that there is no bug - and if you suddenly have a problem in another script that changes equips, then you have to correct all bugs you made or it will cause problems.

Just as an example from more than fifteen years ago: I worked in computer support at that time and after a big bughunt by dozens of supporters I discovered that a wrong touchpad driver under Win98 created a display error under DOS. Placing the correct touchpad driver under Windows solved the display error under DOS.

Since that time I know: EVERY bug needs to be corrected if there is an unknown effect or problem in an entire system.

This is where you made an error in Yanfly's script (and this error is also why the default notetag can't work)

DEFAULT_BASE_SLOTS = [ 0, 1, 2, 3, 4, 6, 6] # This hash adjusts the new equip types (past 4+). Adjust them to match # their names properly. You can choose to allow certain types of equipment # be removable or not, or whether or not optimize will affect them. TYPES ={ # TypeID => ["Type Name", Removable?, Optimize?], 0 => [ "L Hand", true, true], 1 => [ "R Hand", true, true], 2 => [ "Head", true, true], 3 => [ "Body", true, true], 4 => ["Arms", true, true], 5 => [ "Accessory", true, false], 6 => [ "Accessory", true, false], } # Do not remove this.Remove the line 6, change the default base slots to two times 5 for the two accessories.Remove the equip slot notetag from the archer class (that never worked, because otherwise you would have reduced the archer class to one accessory only, no hands or body or anything because the notetag gave only one slot for the class)

Change other cases where you used type 6 to type 5 as well.

Then continue with the bughunt.
got it thank you!
Does this mean solving the equip type list also solved the equip problem with the ammo script?


I consider that likely because the error was somewhere in the equipment types/slots, but I would like to have confirmation before closing this.
yes apparently moving to slot 5 and removing slot 6 fixed everything. Don't understand why, but it works and i'm happy.
I edited the post for you Andar. Not sure what the problem was - the spoiler/code tags looked okay to me. Either another mod fixed it in the meantime or it was some of the actual code within the script itself (there were a lot of [...] in there so it wouldn't surprise me).


+1 to the reasons we don't want people posting entire scripts?


I'll go ahead and close this if the problem's been solved, but go ahead and unlock if there was something more you wanted to add.

Original thread: https://forums.rpgmakerweb.com/threads/help-asagis-gun-license.42550/