MV Caethyril "CustomEscCodes" - Can't figure it out!

Hiya, this one's kinda short and sweet, I'll get into the details soon.
So, a while ago, I wanted to play a sound effect with a slash command rather than be stuck with "play se: blah blah" before or after a message. Someone named Caethyril sent me a plugin that was supposed to let me "define custom escape sequences for messages", and they sent me a sample code that did what I wanted, however it used the slash command "\SE", which is used in PlayMsgWndCharSE. I tried to change it to /SFX to prevent conflict between the two plugins, but my "custom command" doesn't work. Caethyril, or any other person who's used to using this plugin, how can I fix this code to be used under "\SFX[sound name]" instead of "\SE[sound name]"? I tried to ask for help in the other thread I made but I got no result, and I figured if I replied to the post again I'd get warned for either necroposting, double posting or both, so I made a new thread.

Anyway, help please?

P.S. version number of Cae_CustomEscCodes that I'm using is v1.3.
Edit: I'm dumb, the typing SFX plugin is PlayMsgWndCharSE, not Yanfly's Message Core. Oops...
Can you post a screenshot of how you have the plugin configured? It looks like it's very straightforward. You would just double-click on the "Process Escape Codes" parameter in the plugin, double-click again on the line that starts with {"Code":"SE", double-click on the Code parameter and change it to SFX.
It's that simple!? Sheesh...
In the code section (in both convert and process), I have ["{\"Code\":\"sfx\",\"Arguments\":\"[\\\"Text\\\",\\\"Integer\\\"]\",\"Delimiters\":\"[]\",\"Replacer\":\"\\\"var sfx = {};\\\\nse.name = arguments[1];\\\\nse.volume = parseInt(arguments[2], 10);\\\\nse.pitch = 100;\\\\nse.pan = 0;\\\\nAudioManager.playSe(sfx);\\\"\"}"]
this is different from how it was given to me because I didn't know what I was doing so I failed to change it.
the arguments section is blank (in both convert and process), delimiters are [] in both sections, and replacer in both sections is "return;"

Edit: Oh my lord, this is the most stressful thing I've ever done. I'm about ready to pull my hairs out, please help me with this.
Edit 2: I figured out that I had pasted one big blob of code into one section when it was actually little bits of code smooshed into one big mess of text formatting, even then I can't get anything to work after figuring it out.
(Sorry, I'm not sure why I stopped replying to your original thread, maybe I missed a notification somewhere... 😴)

Ah, you're using an older version of the editor (pre-1.5.0), right? My plugin isn't meant to be so awkward to use, but it uses parameter types introduced in v1.5.0, and older versions of the editor can't display those types in a user-friendly way. 😅

Like ATT_Turan said, you should only need to change the first Code: "se" part. Looks like you've made some other edits though, which explains why it's not working. Try this in the Process Escape Codes field:

["{\"Code\":\"sfx\",\"Arguments\":\"[\\\"Text\\\",\\\"Integer\\\"]\",\"Delimiters\":\"[]\",\"Replacer\":\"\\\"var se = {};\\\\nse.name = arguments[1];\\\\nse.volume = parseInt(arguments[2], 10);\\\\nse.pitch = 100;\\\\nse.pan = 0;\\\\nAudioManager.playSe(se);\\\"\"}"]
Also, leave the Convert Escape Codes field blank. "Convert" codes are substituted before the message displays; "process" codes are substituted when the message reaches that point. If you have the same code in both places, it'll be gone by the time the message displays.

Also, for future reference: I think it's OK to bump or even necro your own threads, as long as you leave at least 72 hours between consecutive posts. 👋
I genuinely don't know what's going on, whenever I try to enter the name and volume (the way I used it as a test was "\sfx[item get,100]") it just shows what I typed as if it was a message. So, when I test the message, it says [item get,100]. I've tried using 'this', and "this" in the brackets, but nothing has worked.

1626223103698.png

1626223135100.png

I don't know what I'm doing wrong.
I pasted the code into the plugin properly for a change and still, nothing's working.
Surely it can't be that I have to change the "text,integer" in the code to the ACTUAL sound effect and volume that I want, right?

Edit: To my surprise, I'm actually on MV 1.5.0.
That looks like the correct way to use it. It looks like it's not reading the arguments correctly: it snips off the text code but ignores the arguments. If I recall correctly, I think that means my plugin is probably not functioning. Press F8 during test to show the console window and see if there's any red text (errors) shown there, before/after the message shows up.

Maybe it's a plugin conflict, try turning off your other plugins, save your project to apply Plugin Manager changes, then test?

Or maybe your project is running on some old (or edited!) version of the core scripts that is incompatible with my plugin; I think I only personally tested most of my RMMV plugins against v1.5+.

This particular example has worked for me and several other people, so I'm guessing it's something on your end...I'm just not sure what. I'm going to get some sleep~
OH MY GOD IT WORKED. I disabled every other plugin I had, saved and reloaded the project, and it FINALLY worked. Thankfully it also worked when I enabled my plugins again, saved, and reloaded. You're a lifesaver, caethyril! Thanks for the plugin and the help! Sleep well.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/caethyril-customesccodes-cant-figure-it-out.138337/