Two scripts causing problems together

● ARCHIVED · READ-ONLY
Started by Zino97 9 posts View original ↗
  1. Hey guys after hours of trying and searching i finaly found out what causes a "bug" in Moghunters Music room script

    script: https://atelierrgss.wordpress.com/rgss3-sound-room/

    so basicly the script isn´t displaying some sounds from rtp and other music sources
    and it shows a total of 117 music tracks even if i havent that much in my project

    and all i know is that it happend because of this script it called Yanflys limit adjustments

    script : https://yanflychannel.wordpress.com/rmvxa/core-scripts/adjust-limits/

    Can someone tell me where the bug is maybe it appears because both scripts have somewhere the same variable and the music room script takes it from the limit adjustments ad set the list max to 117 and its not realy an error because both scripts run without crashes and are working fine except of this bug
  2. 'Scripts' is where people who have written complete scripts (or are translating e.g. Japanese scripts to English with the original coder's permission) can post them for others to use.

    Yanfly specifically forbids the reposting of any of their scripts. I am unsure without checking, but I think Moghunter does as well. That is one of the reasons why we ask people to provide links to the web pages where they got the script, rather than post the script itself. Please, therefore, edit your post to remove the scripts and provide the links instead.

    I have merged your two posts into one. Please do not double-post, that is post immediately after yourself if less than 72 hours have passed. Use the Edit button on your post to add something.

    [move]RGSSx Script Support[/move]
  3. I see nothing at all in those two scripts that would influence each other. How do you know it's Yanfly's script that's causing the problem? Does Mog's script run correctly if you disable Yanfly's?

    Have you set this up correctly?
    Code:
      MUSIC_INFO = {
      "2-03 Peaceful Moment" => "Schöne Erinnerungen",
    
      }

    Is this correct?
    Code:
      # Incluir músicas contidas no RTP.
      INCLUDE_RTP = true
      # Definição do diretório que foi instalado o RTP.
      # Por padrão o caminho do diretório foi baseado no Windows 7 (64Bits).
      # Outros sistemas operacionais o caminho do diretório é diferente.
      # C:/Program Files (x86)/Common Files/Enterbrain/RGSS3/RPGVXAce/Audio/BGM/
      RTP_PATH = "E:/programme/RPGVXAce/Audio/BGM/"

    If that's the way you've got it set up, then it will be trying to load all the RTP music as well as what's in your project. What are the 117 tracks that it's showing that aren't in your project?

    Neither script uses $game_variables.
  4. Well because if i delete the yanfly script the music room script only shows 45 songs wchich are all the rtp Songs + the three I add there and the rtp music is displayed but if the yanfly script is in there it shows again 117 songs and dosent display teh rtp songs for some reason and it is only thi yanfly script which causes it alle the other scripts dosent effect it

    and all is set up right

    i just cut some songs out so the script wouldnt be too large
  5. @Kes sorry i just tought that it would be better to post my versions of the scripts becasue i sometimes edit little things so if this little things causes the problem than someone could see it i will edit it to the links right now
  6. If you have modified the scripts, what happens if you use the originals, without the mods? Do you still have the issue? (make sure you save your altered versions somewhere so you can put them back in)
  7. YjbkFi.png

    I did a screenshot to show the problem so in this case i insert the scripts in my main project which has a total of 159 songs including rtp and as you can see if i had the adjust limit script activate it only shows 117 songs but i had this 117 even if it was less than 117 so some how it sets the maximum of the music list always to 117 but if i deactivate the adjust limit script with strg+A and strg+Q the music script works normal and show the total of 159 songs and it shows the rtp song which is in this cas Number114 which is Dungeon2 but now i get confused when i take both of these scripts in a fresh new project they both work fine without any issues so it has to be another script which somehow causes that the adjust limit script changes the music song list to 117 and didn´t display the rtp music ..... my head is burning :(

    i am going to try to find the thrid script now by putting all my scripts one by one in the new project until the error appears again


    Edit: Ok now i have no idea i insertet all the scripts in a new project and there seems to be no problem but how can this be i mean i cant set any value for the list lenght in the script neither there is a variable that both scripts use and i checkt with a debug script all variables or switches and none of it is set to 117 and i tried strg+F on both scripts for searching anything that includes this 117 but nothing appears how can it be that all scripts work without problems on one project but have an bug on the other scripts are there any script calls that can be the cause?
  8. Does it make any difference that in your screen shot, the first instance in blue is 'musik galleri' instead of 'musik gallerie'?
  9. oh no its the same i just cut the picture with photo shop so it would fit the last image is just a little bigger so you can see the whole word