Script Clash: FPLE vs. Caterpillar

Ok, I discovered FPLE (First person Labyrinth explorer) and wanted to incorporate it into my game for cave dungeons.

However, the game crashes when I enter a FPLE Mode dungeon with the "Caterpillar" Script active.

Can you turn off/on scripts using a call script event. If so, how?

-Tiamat5774

Oh, here is the caterpillar script:

caterpillar.txt

caterpillar.txt
no, you can't simply turn off scripts - the only way to turn off scripts is if the original scripter provided a method for this, only only some scripters do...

Have you tried to disable the followers with event command? that might help if the script is written that way...
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


SOMETIMES you can overcome script compatibility issues just by swapping their order. Might be worth a try.


See if the caterpillar script uses an on/off switch so you can choose to show time sometimes and not others.


For anyone responding, note - this is an RMXP script, not Ace.
Btw, Im getting better with scripts.  I found the "on/off" switch and used it.  The "party train" did disappear when the switch was on so there was only the party leader visible, but the game still crashed.  The error message says that the problem is in line 108 of the Caterpillar script.  It may be a problem with the way FPLE overwrites mapping.

Maybe there is a way to edit the caterpillar script, to be able to disable this or the whole script with a switch:

Capture.JPG

Error message.JPG

Capture.JPG

Error message.JPG
It's saying @spriteset doesn't exist for FPLE_Spriteset_Map. Did you try changing around the order of the scripts as I suggested?


If you did and it's still not working, please provide LINKS to BOTH scripts that you're using (don't repost them here - just link to where you originally got them).


Disabling a script with a switch, even if it were possible (which it's not, without a rewrite), would not solve your problem, because as soon as you enabled it again the game would crash. If you don't WANT the script, just remove it. Problem solved. If you DO want it, then the solution is going to have to be a bit more clever than "disable it with a switch".
Yes, I did change the order of the script.  It was first put in over the FPLE scripts, then I changed its position to directly over MAIN.  It still crashed.  It only crashes when the game changes to FPLE mode.  I may have to do without a Caterpillar for now, but I was going for an NES Ultima: Exodus look and feel.

The link option above is not working for me and I can't seem to copy and paste the URL here.  I will try to type it out.

http://rmrk.net/index.php?topic=9869.0  this is the link for Blizzard's Caterpillar script

http://forum.Chaos-Project.com/index.php/topic,12750.html   this is the link for the FPLE Demo that contains the scripts.
Try this little piece of code, pasted after the two other scripts :

Code:
module Train_Actor   module Scene_Map_Module     def setup_actor_character_sprites(characters)      unless @spriteset.is_a?(FPLE_Spriteset_Map)        @spriteset.setup_actor_character_sprites(characters)      end    end  endend
I'm confused.  Is that little bit of code a stand alone script that Is to be poste above/below the caterpillar and FPLE scripts, or is it to be pasted into the Caterpillar script?

It does look like part of the Caterpillar script though.
it's a compatibility patch, so it's better to treat it as a stand alone script, that should be below the Caterpillar script and the FPLE scripts in the script editor.
Thanks to all of those that replied to my issue.  Problem is solved.  I now have the caterpillar compatibility I needed.

THANKS! BD

Original thread: https://forums.rpgmakerweb.com/threads/script-clash-fple-vs-caterpillar.24367/