Reflection for RTAB?

Started by Jragyn, September 12, 2008, 03:29:42 am

Previous topic - Next topic

Jragyn

First:
  I use a large number of scripts:
        Anti-Battle BGM Change
        STCMS
        Shopwindow mod
        Leon's Item Creation
        RTAB 1.16 (without the lame sideview aspect of it)
        RTAB's connected attacks
        Tons!
        Skill Casting Time Counter (came with RTAB)
        Remodeled Damage Display
        RTAB Config
        some silly battle result patch (?)
        Blizz's RTAB art hack
        Blizz's Bestiary
        Trickster's Steal/Mug v6r2(without its macl 'n sdk)
        A script I found for 8 directions
        A script that disables encounters when -bleh- is equipped
        some autoscrolling panarama thing
        A Inventory details script (without its macl 'n sdk)
        A tiny enemy status thing that plays with their stats
       and lastly, a 2ndary stat leveler...raises atk, pdef, mdef, 'n evade per level.
Thats all of em.
So which one would mess with my newest addition of Blizz's Full Reflection system?
Looking around inside of the reflect script, there seems to be a compatability with RTAB, but...who knows?
  It gives me this error, from within the reflect script itself:

  "Script 'Reflect' line 300: NoMethodError occurred.
  undefined method `current_action' for nil:NilClass."

So whats that? Take a look:
Spoiler: ShowHide
#----------------------------------------------------------------------------
  # override set_target_battlers
  #----------------------------------------------------------------------------
  alias set_target_battlers_reflect_later set_target_battlers
  def set_target_battlers(scope, battler = nil, override = false)
    # if skill can't break through reflection this time
    if !BlizzCFG::BREAK_REFLECT.include?(@skill.id) && !override &&
300      @active_battler.current_action.kind == 1
      # no targets
      return []
    end
    # if RTAB is not installed
    if battler == nil
      # call original method
      return set_target_battlers_reflect_later(scope)
    else
      # call original method with RTAB compatibility
      return set_target_battlers_reflect_later(scope, battler)
    end
  end


So yep. Lost. Don't have any idea what its trying to say.
Needs to be a script that mod's all the /fail windows it throws at you with ways you can fix the damn error, heh.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

tSwitch

is tons below RTAB?

@active_battler doesn't exist in RTAB, and is simply 'battler' due to the fact that multiple battlers could be active at the same time.

try putting the reflect script and/or tons blow RTAB :)


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: tSwitch.us | Twitter | Tumblr

Jragyn

In interest of not dealing with Tons of errors, Tons is was originally placed beneath RTAB. I found the least /fails happened when they were below that monster of a script.

However, I wasn't sure where Reflect should be, so as you suggested, I tried it beneath Tons, above tons, beneath tons and RTAB, between, bleh bleh, still all coming up with the same error regarding, current_action.

Quote"Script 'Reflect' line 300: NoMethodError occurred.
  undefined method `current_action' for nil:NilClass."


Which to me, essentially means:

Quote"Script 'Reflect' line 300: Jeremy's retardation occurred.
  unknown hacking `RTAB_compatibility' for ass:Stupid."


Geezus!
There just needs to be a switch in RTAB:
Spoiler: ShowHide
Do you have other scripts you'd like to work with RTAB?
   Yes or No


x.x

Any other ideas, mister Namkcor?
  By the way, I rather like your weapon training script. There should be a functionality button within RTAB for that too.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

tSwitch

Quote from: jragyn00 on September 12, 2008, 07:00:09 pm
Any other ideas, mister Namkcor?
  By the way, I rather like your weapon training script. There should be a functionality button within RTAB for that too.


not really sure what to do at this point :/

And yeah, I was working on compatibility a while ago, but it got side-tracked.
after the Game in a Week I'll make it compatible for you :)


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: tSwitch.us | Twitter | Tumblr

Blizzard

I'll check the scripts. It's just not compatible which I will fix. :P
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Jragyn

geez, I'm sorry mister blizzard!
It always seems you get pulled into my problems with scripts. :P

But thanks!
I always appreciate the suport you give?
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Blizzard

Don't worry about it. I thought I already made it compatible. Since I haven't, I'll have to fix it afterwards.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.