The script order of Blizzard's scripts

Started by Blizzard, January 07, 2008, 09:35:43 pm

Previous topic - Next topic

Holyrapid

UMS was at the top of the extra scripts, and all else below it.

Blizzard

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.

Jackolas

think he is talking about his post in Blizz-ABS ( http://forum.chaos-project.com/index.php?topic=106.2440 )

QuoteI´m not sure, but it would seem like STCMS is doing something with BABS, since the pre-menu or mini-menu won´t appear...
How do i fix this?


you send him here :P

Blizzard

Quote from: Pyhankoski on September 10, 2009, 07:31:20 am
UMS was at the top of the extra scripts, and all else below it.


UMS != STCMS & Blizz-ABS.
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.

Calintz

I've always been wondering ...
Why does the script order matter??

Is it because you make your own modules, so any script that has handlers for those modules has to be below the script where the module is first introduced?? Otherwise, the system will be checking for a module that doesn't exist??

Blizzard

script 1: class A, refine method x(a) to x(a, b)
script 2: class A, refine method x(a, b) to x(a, b) with additional code

If I put them the other way around, this would happen:

script 2: class A, refine method x(a, b) to x(a, b) with additional code
script 1: class A, refine method x(a) to x(a, b)

Script 2 would cause an error because the original method wasn't redefined to accept 2 parameters (a, b) but it still only accepts (a).

Or another example would simply be if a method is completely overriden. i.e. the SDK overrides lots of methods, it you put it below my scripts, it would override many methods of my scripts and render them partially not working. It's as if you had them in the right order, but you simply deleted some parts of it. Of course it won't work that way.
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.

Calintz

Ah ...
Alright, so that definitely makes sense.

Blizzard

Ok, I updated the first post and I have added all of my plugins to the list as well since they have become quite numerous. xD
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.

The Niche

Does Zero's CCTS go in the same place as ATES?
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Blizzard

You should probably put it above all. If it's not working right, try at the place where ATES is.
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.

The Niche

Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!