Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: porkupine on September 01, 2008, 08:50:48 pm

Title: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 08:50:48 pm
I am trying to use Ccoa's UMS to display messages over the heads of my party members. I am using Blizzards ABS caterpillar script. However, whenever I try to put a message over my partners head I get an error saying: "
Script 'UMS' line 1286: NoMethodError occurred. undefined method `actors' for nil:NilClass"
I have also tried disabling Blizz's script and using another, but that did not work
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Starrodkirby86 on September 01, 2008, 08:54:28 pm
The two scripts should be compatible with each other. Of course it is, but that error seems to be strange... :O.o: I can try and emulate it, though I'll need to do a few here and theres.

You might have the script order wrong. Yes, the script order actually matters. Here's a link to the correct placement of various scripts: http://forum.chaos-project.com/index.php?topic=23.0

That's the only solution I can think of at the moment...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 08:57:14 pm
I have them both between Scene_Debug and Main. Blizzards ABS is above the UMS and if i out it the other way around, it doesnt let me play the game. The error is
"Script 'UMS' line 1601: ArgumentError occurred. wrong number of arguments(1 for 0)"
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:04:05 pm
From Ccoa's manual:
QuoteCaterpillar Actor Centering

You can now center the message over a train actor in a caterpillar script.  This is set up to work with my caterpillar script.  For fukuyama's, please see the FAQ.


Her UMS doesn't support Blizz's caterpillar system.

For a fix, you can just make events that are on the same space as the caterpillar actors and have the message appear over those events.
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 09:07:43 pm
What if there is more than one place they can be while the messages are coming up?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:16:09 pm
$game_variables[XXX] = 
BlizzABS.player.actors[1].x
$game_variables[YYY] =
BlizzABS.player.actors[1].y


That'll store their Map X and Y in variables. 
Remember to change XXX and YYY to the right numbers and the '1' is the 2nd actor in the party.
(Arrays start with 0)
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 09:26:01 pm
I'm sorry but I'm really bad with scripting... Do i replace the XXX and they YYY with the coordinates? and if so i get an error saying
"NoMethodError occurred while running script. undefined method `player' for BlizzABS:Module"
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:32:17 pm
XXX and YYY are the variable numbers that you want to use.
This scriptlet gets the caterpillar's current map X and Y.

You would use a Set Event Location to make an event where the caterpillar is at
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 09:39:47 pm
I get an error saying
"NoMethodError occurred while running script. undefined method `player' for BlizzABS:Module"

:'(
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:43:02 pm
How are you doing that script call...?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 09:48:07 pm
$game_variables[1] =
BlizzABS.player.actors[1].x
$game_variables[1] =
BlizzABS.player.actors[1].y
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:52:43 pm
You shouldn't have the same variables for $game_variables...  it'll just make it whatever the map y is...

Hm... do you have at least 2 members in your party?

If you do... I don't see why or how you're getting this error...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 09:56:11 pm
I changed the variables to different numbers and I have 2 people in my party, but I still get the same error  :'(

Are there any other ABS that would be easier to use Ccoa's UMS with??
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 09:58:50 pm
Hm... gimme a screenshot of the event with that scriptlet...

Blizz-ABS really is the best abs out there for functionality with parties...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 10:07:37 pm
Spoiler: ShowHide
(http://i426.photobucket.com/albums/pp344/porkupine100/rmxp.jpg)


Yo, put images in spoilers, it's a new rule...Um...Rule number 9. ~Love, Starrodkirby86
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 10:16:51 pm
http://forum.chaos-project.com/index.php?topic=23.0 (http://forum.chaos-project.com/index.php?topic=23.0)
Do you have them in the right order?

If you do... then I dunno what's wrong with it then... =/


Oh wait!!!

What version of the UMS are you using?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 10:24:44 pm
I am using v1.7.1
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 10:28:51 pm
Ah yeah... there was a bug with the newest version of that last time I checked (which was 3 days ago)

I know for sure that 1.6.3 will work fine with Blizz-ABS

I tried to post it here but then it messed up the board for me... so... yeah...

Lemme upload it

http://www.sendspace.com/file/o79zen (http://www.sendspace.com/file/o79zen)
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 10:36:52 pm
I still get the error... i'm using v1.0.0.2 of blizz's abs if that makes a difference
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 10:38:08 pm
1.0.0.2 is a... very... very... old version...

If you upgrade to 1.99, the problems should all be fixed...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 10:55:50 pm
Hmmm.. I upgraded to 1.99 but now I get an error saying "stack level to deep" when I try to start the game  :(
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 10:56:25 pm
Okay... do you have the UMS before Blizz-ABS now???
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 11:01:52 pm
I switched it, but I'm still getting the "stack level too deep error"
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Starrodkirby86 on September 01, 2008, 11:04:04 pm
Make sure everything is configured correctly, and hopefully you put Part 1 in the Part 1 script, Part 2 in the Part 2 script, and Part 3 in the Part 3 Script. Never ever merge all three scripts together, it's pure suicide. Now you probably need to configure quite a bit, 1.0 to 1.99 is a BIG upgrade...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 11:04:20 pm
Can you post all the custom scripts that you are using in the order as they appear in the editor?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 11:07:30 pm
Ccoa's UMS
Blizz-ABS part 1
Blizz-ABS part 2
Blizz-ABS part 3


thats it...
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 11:11:13 pm
Quote from: Starrodkirby86 on September 01, 2008, 11:04:04 pm
Now you probably need to configure quite a bit, 1.0 to 1.99 is a BIG upgrade...


Yeah,  make sure it's configured...

If it is and you still get the error, then... I think you'll have to wait for Blizz =/
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Juan on September 01, 2008, 11:17:51 pm
Do you have blizzs abs script inserted twice? If so thats why you get that error.
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 01, 2008, 11:22:39 pm
AH-HAH! I did the second part twice (forgot to push copy for the third one :^_^': )
And the script part works too Aqua. Thanks everybody! I love you all  :D
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Starrodkirby86 on September 01, 2008, 11:23:58 pm
Whew! That's a relief! The hard battle is finally over. Pork, now that the problem is solved, put a [RESOLVED] Tag before Blizzard's ABS script and Ccoa's UMS (Edit the topic post). Now let's party! :dance:
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 01, 2008, 11:24:28 pm
Lol well I'm glad this is all taken care of :)
If you have any more problems, I'll be glad to help.
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Blizzard on September 02, 2008, 10:59:24 am
And I think the UMS v1.71 works fine with Blizz-ABS v1.99. Blizz-ABS is compatible with the UMS since v1.96.

I can hardly believe that somebody still had such an old version of it. O.o;
Title: Re: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 02, 2008, 10:46:17 pm
I took like a year break from RMXP, that's why I had the old version  :^_^':
Title: Re: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: Starrodkirby86 on September 02, 2008, 10:54:17 pm
Quote from: porkupine on September 02, 2008, 10:46:17 pm
I took like a year break from RMXP, that's why I had the old version  :^_^':
Not to throw everything off course-line and all, but you should put that 1.0 version in a museum! :V: (Sarcasm XD)

Seriously though, you got to be pretty faithful/awesome to have 1.0...Lots of people upgraded or checked out the ABS in its later version numbers. Oh well, kudos, even though you took a year break, kudos nevertheless. XD
Title: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 12:32:17 am
I got the messages to work, but now when I kill an enemy that is set to toggle a switch when it is dead, my game totally freezes. No errors or anything. Aqua told me to insert a scriplet to rename the enemy so it doesn't get respawned again.

$game_map.rename_event(5, 
'Monster')


The event is named "Ghost \e[1]" and its event ID is 005

But I get an error saying "Script 'Blizz-ABS part 3' line 4520:NoMethodError occurred. undefined method `battler_id' for #<Game_Event:0x3ba7898>"
Title: Re: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 03, 2008, 12:34:56 am
Hm... I just thought of this

Have the rename code and then the switch after it...?

Or maybe turn off the destruction animation for that monster ID...
Title: Re: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 12:56:53 am
I put it above the switch and it still is the same error. I cant figure out how to disable the destruction animation though....
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 03, 2008, 01:03:10 am
Blizz-ABS Part 1

def self.destruct(id)
      return 0
end


~line 350-360 or so depending on what you've configured
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Blizzard on September 03, 2008, 05:25:52 am
You'rr doing it totally wrong. When you have a bug, you don't do a workaround, you fix it. What does your switch activate? An auto-start event possibly?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 09:24:55 pm
It was setting off an touch event, but i switched it to autorun. I got an error in interpreter 1 where it says

"#if not autorun
if event.trigger < 3"

I changed the 3 to a 4 and it works. Don't know what that is supposed to do.. but it works now :D

thanks for the help!
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Aqua on September 03, 2008, 09:27:55 pm
Change that 4 back to a 3 and make the event parallel process...

If you keep that a 4... all auto-run events will become parallel process which you DON'T want!
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 09:41:54 pm
Hmm... that worked for the ghost but the event that goes on after that is giving me the interpreter error again
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Blizzard on September 03, 2008, 10:01:41 pm
Something must be wrong with your scripts then. What is the error message anyway?
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 10:10:39 pm
Script 'Interpreter 1' line 85: NoMethodError occurred.
undefined method `<' for nil:NilClass
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Blizzard on September 03, 2008, 10:16:01 pm
There are obviously some events that don't have a trigger. O_O Have you asked ccoa about this already? Maybe she knows something. I don't remember my script messing with the event trigger.
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 03, 2008, 10:28:44 pm
It might be Ccoa's script because I am disabling and then enabling the comic style text...
but I'm pretty sure I did that in more than one event and it didn't give me an error or anything...

EDIT: I took the part out about Ccoa's message codes and I still get the same error...  :???:
Title: Re: Blizzard's ABS script and Ccoa's UMS
Post by: Blizzard on September 04, 2008, 05:53:40 am
You should get a clean copy of Blizz-ABS then. This might fix the problem.
Title: Re: [RESOLVED] Blizzard's ABS script and Ccoa's UMS
Post by: porkupine on September 04, 2008, 11:45:21 pm
I was screwing around with the event and I set it up to self switch to an invisible event and then turn off the switches. It worked for some reason... thanks for all the help :D