Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Jragyn on May 14, 2010, 11:35:03 pm

Title: [XP] Fix-a-script Request (experience-related)
Post by: Jragyn on May 14, 2010, 11:35:03 pm
http://forum.chaos-project.com/index.php/topic,2051.0.html

re-compatibilitize this with blizz-ABS :D

Once upon a time it was compatible, but even in a naked project it doesn't werk anymore.

The idea is ingenious, it is a shame I'm unable to utilize it T-T
Title: Re: [XP] Fix-a-script Request (experience-related)
Post by: Wizered67 on May 15, 2010, 01:16:27 am
Are you sure it isn't compatible? Did you put it in the right place because that script seemed pretty sure it was compatible.....
Title: Re: [XP] Fix-a-script Request (experience-related)
Post by: G_G on May 15, 2010, 01:34:11 am
It was made several versions of Blizz-Abs ago. Things changed in Blizz-Abs. So its most likely not compatible anymore. Just like winkio had to update his Babs plugins after so many updates.
Title: Re: [XP] Fix-a-script Request (experience-related)
Post by: Blizzard on May 15, 2010, 05:19:46 am
Actually the fix should be real quick. Change every appearance of "$BlizzABS == true" to "$BlizzABS" and it should work fine.
Title: Re: [XP] Fix-a-script Request (experience-related)
Post by: Jragyn on May 15, 2010, 04:44:18 pm
Hey Blizz, why do you have to drop this line into a script that modifies your module?


$BlizzABS = BlizzABS::Processor.new


How come you cannot just modifiy it like you modify methods and such?
Title: Re: [XP] Fix-a-script Request (experience-related)
Post by: Blizzard on May 15, 2010, 04:52:20 pm
The default BlizzABS::Processor gets instantiated during Blizz-ABS script itself. If you redefine or alias methods in any of the BlizzABS module classes, they won't be applied until you create a new instance of BlizzABS::Processor because the variable $BlizzABS still contains the old definition of BlizzABS::Processor.

Pretty much this:

class A
  def test
  end
end
x = A.new
class A
  def test2
  end
end
x.test2 # generates an "undefined method for class A" error