Add more sounds to Kadokawa's "PlayMsgWndCharSE" plugin

● ARCHIVED · READ-ONLY
Started by doodlebound 7 posts View original ↗
  1. PlayMsgWndCharSE is a plugin that lets you input custom sounds that play whenever a character talks or text appears on screen. However, it only stores up to 2 sounds, so you don't get much variety in the sound effects that play in-game when characters are speaking. Is there any way I could get it to store, say, six sounds instead of just two?
  2. There is. Expand the amount of parameters in the plugin. So copy them, paste them and rename their names and possibly text.
  3. Poryg said:
    There is. Expand the amount of parameters in the plugin. So copy them, paste them and rename their names and possibly text.
    I feel like I'm going to mess this up, since I have literally no experience with Java. Ahah.
    Would it be too much trouble for you to edit the plugin, since you have more experience with this sort of thing? Sorry to bother you if not!
  4. It's not Java, it's Javascript.
    And probably it wouldn't, when I get home from work.
  5. Poryg said:
    It's not Java, it's Javascript.
    And probably it wouldn't, when I get home from work.
    Ah, my apologies again, I'm really new to this obviously orz
    And thank you so much for your help!
  6. Done and done.
    Btw. I'm also sending a couple of Before and After screenshots to show that if you ever need to expand parameters in future, it is not rocket science and more than with Javascript it has to do with understanding written text and basic math logic. Expanding parameters is really easy, you just need to find three things:
    1. which parameter you want to expand
    2. where is the parameter processed, usually it's right underneath the beginning comment section to make it easier to find
    3. where is the processed parameter implemented.
    So the first point was easy. For parameters there's the comment section at the beginning of the plugin, so then you just find your parameter name.
    before
    Screenshot_27.png
    after
    Screenshot_29.png

    Just a simple copy paste and rewriting the numbers.

    Then I had to find where and how they were processed. As I said, usually it's right underneath the comment section.
    before
    Screenshot_28.png
    after
    Screenshot_30.png
    I can see variable names name1, volume1 and pitch1 and name2, volume2 and pitch2. Again, copy, paste and edit the appropriate number. That's all.

    Last task was simple as well. I now had the variable names. So I had to find how they were implemented. The simplest thing was to just search for "name1".
    before
    Screenshot_31.png
    after
    Screenshot_32.png

    Again. Copy, paste and edit the numbers appropriately. Whatever the code means or does is completely irrelevant to me, because I'm not altering how the code works in any way. So as you can see, no real skill in programming required :p
    If you cannot see any of the images, but see [*IMG] instead, right click on it and Open image in new tab should show it.
  7. Poryg said:
    Done and done.
    Btw. I'm also sending a couple of Before and After screenshots to show that if you ever need to expand parameters in future, it is not rocket science and more than with Javascript it has to do with understanding written text and basic math logic. Expanding parameters is really easy, you just need to find three things:
    1. which parameter you want to expand
    2. where is the parameter processed, usually it's right underneath the beginning comment section to make it easier to find
    3. where is the processed parameter implemented.
    So the first point was easy. For parameters there's the comment section at the beginning of the plugin, so then you just find your parameter name.
    before
    View attachment 100533
    after
    View attachment 100534

    Just a simple copy paste and rewriting the numbers.

    Then I had to find where and how they were processed. As I said, usually it's right underneath the comment section.
    before
    View attachment 100535
    after
    View attachment 100536
    I can see variable names name1, volume1 and pitch1 and name2, volume2 and pitch2. Again, copy, paste and edit the appropriate number. That's all.

    Last task was simple as well. I now had the variable names. So I had to find how they were implemented. The simplest thing was to just search for "name1".
    before
    View attachment 100537
    after
    View attachment 100538

    Again. Copy, paste and edit the numbers appropriately. Whatever the code means or does is completely irrelevant to me, because I'm not altering how the code works in any way. So as you can see, no real skill in programming required :p
    If you cannot see any of the images, but see [*IMG] instead, right click on it and Open image in new tab should show it.
    Wow! Thank you so much, you're the best! I really appreciate your hard work!