Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Asterisk Ninja on December 07, 2009, 11:49:56 pm

Title: Problem with Tons of Add ons and RTAB compatibility
Post by: Asterisk Ninja on December 07, 2009, 11:49:56 pm
Okay, so I am currently using both the Tons of Add ons and the RTAB system, I do have the RTAB above tons, so that isnt the problem. The  battle system works fine, except when I attempt to use an (consumable) item, which causes this error: Script 'RTAB' line 1943: ArgumentError occurred. wrong number of arguements(2 for 1). The line in the script is as follows:

#--------------------------------------------------------------------------
 # * Item action result compilation
 #--------------------------------------------------------------------------
 def make_item_action_result(battler)
   # Acquiring the item
   @item = $data_items[battler.current_action.item_id]
   # When with the item and so on is cut off and it becomes not be able to use
   unless $game_party.item_can_use?(@item.id)
     # It moves to step 6
     battler.phase = 6
     return
   end
   # In case of consumable
   if @item.consumable
     # The item which you use is decreased 1
     $game_party.lose_item(@item.id, 1)
   end
   # Setting animation ID
   battler.anime1 = @item.animation1_id
   battler.anime2 = @item.animation2_id
   # Setting common event ID
   battler.event = @item.common_event_id
   # Deciding the object
   index = battler.current_action.target_index
   target = $game_party.smooth_target_actor(index)
   # Setting the object side battler
   set_target_battlers(@item.scope, battler)
   # Applying the effect of the item
   for target in battler.target
     target.item_effect(@item, battler)
   end
 end


I have tested the battle system without having tons of addons and I do not have this problem, it is only when tons of addons is present that this occurs. I do not have any of the three systems that Blizzard said are not compatible enabled, which are the Center Battlers, Multi Attack and Charge attack respectively. If anyone could please help me so that I can use both of these scripts, I would greatly appreciate it! Thank you!

Please use code tags when posting code ~ G_G
Title: Re: Problem with Tons of Add ons and RTAB compatibility
Post by: Blizzard on December 08, 2009, 10:46:58 am
1. Did you put the scripts in the right order?

2. Are you using the most recent version of the scripts?

3. Have you DELETED the scripts from RTAB that are completely incompatible?
Title: Re: Problem with Tons of Add ons and RTAB compatibility
Post by: Asterisk Ninja on December 08, 2009, 12:20:02 pm
1- Yes

2- Yes

3- Uh, no I guess I misunderstood when you were talking about incompatibility, I thought you meant I had to not use those scripts from the add ons? And just to clarify, which scripts in the RTAB do I delete?

Thank you very much!
Title: Re: Problem with Tons of Add ons and RTAB compatibility
Post by: Asterisk Ninja on December 08, 2009, 01:43:03 pm
Okay, so I was experimenting and managed to (at least I think) fix the problem, by making a slight script alteration here:

target.item_effect(@item, battler) where I altered it to this- target.item_effect(@item) I tried it and it works, but I am no scripter, so I have no idea if this will cause any problems down the line. Does anyone know if that was a bad move? If so please let me know and I will continue searching for a better solution.

Any input on this would be greatly appreciated. Thank you!
Title: Re: Problem with Tons of Add ons and RTAB compatibility
Post by: Blizzard on December 08, 2009, 04:18:53 pm
No, the add-ons listed in Tons are not compatible with RTAB. But there's an RTAB plugin (I think it was connected attacking or something like that, I did write it down) that completely screws up everything. I think this is the one that is causing the problem.
Title: Re: Problem with Tons of Add ons and RTAB compatibility
Post by: Asterisk Ninja on December 08, 2009, 09:35:24 pm
Well the previous fix mentioned above didn't work, and, I wasn't using the connected attacking script, so that wasn't the problem. But I did go through and check all of the scripts having to deal with items in Tons and found that the problem was being caused by the item section in Tons (both the skill teaching item and the level/up down item) After I deleted those the battle system ran just as supposed to, and I was able to use items without the game crashing. Im still not sure I wont run into other problems, but hopefully I've seen the last of this one. Thank you for all your help!