[XP] Fix-a-script Request (experience-related)

Started by Jragyn, May 14, 2010, 11:35:03 pm

Previous topic - Next topic

Jragyn

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
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Wizered67

Are you sure it isn't compatible? Did you put it in the right place because that script seemed pretty sure it was compatible.....

G_G

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.

Blizzard

Actually the fix should be real quick. Change every appearance of "$BlizzABS == true" to "$BlizzABS" and it should work fine.
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

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?
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Blizzard

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
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.