Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Barabian on December 01, 2021, 06:13:01 am

Title: MCES - Error when Saving
Post by: Barabian on December 01, 2021, 06:13:01 am
Split topic from XPA - KK20

I have a compatibility problem with the Nathmatt MCES script. The error occurs while saving the game: no marshall_dump is defined for class MCES::Msg_Sprite. I don't know what to do with it.

MCES link (https://forum.chaos-project.com/index.php?topic=5909.0)
Title: Re: MCES - Error when Saving
Post by: KK20 on December 01, 2021, 03:46:15 pm
Did you confirm this isn't a problem in XP? Are you using other scripts that affect save data? I'll take a look later today.
Title: Re: MCES - Error when Saving
Post by: Barabian on December 01, 2021, 05:10:35 pm
Yes i am sure. I checked on a clean project, only XPA + Mouse Controller by Blizzard v2.3 + MCES v1.74
Title: Re: MCES - Error when Saving
Post by: KK20 on December 02, 2021, 12:52:59 am
I am unable to reproduce the issue in both XP and XPA. Send me your Scripts.rxdata file.
Title: Re: MCES - Error when Saving
Post by: KK20 on December 03, 2021, 02:35:27 am
Issue is caused by Game_Event having an instance variable containing a Sprite object. This Sprite is only created when the \msg[Name] command is used in MCES.

Overall, the script is poorly designed and should be rewritten. I managed to at least remove the instance variable from Game_Event and have Sprite_Character be solely responsible for it, as it should.

For whatever reason, CP screams at me for a hacking attempt when posting the script, so pastebin link it is...
https://pastebin.com/raw/zRqc9R0r
Title: Re: MCES - Error when Saving
Post by: Barabian on December 06, 2021, 05:18:44 am
Thanks. You're irreplaceable.