Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ FF7 ] Externally set music ids in config.toml does not play on certain enemy formations using FFNx v1.20.0.0 and later #738

Closed
silentC-VV opened this issue Oct 10, 2024 · 8 comments
Labels
bug Something isn't working
Milestone

Comments

@silentC-VV
Copy link

silentC-VV commented Oct 10, 2024

Describe the bug:
It seems on FFNx v1.20.0.0 and above (as of this writing), external modded music files set to run using config.toml in the mod's external music path does not seem to play the set music file on certain battles. Perplexingly, only certain battles do not load the new music files while other battles still play correctly. Also, this bug does not occur on FFNx v1.19.1.0 down to v1.18.1.0 which is the last I tested. On the other hand, I have tested all public builds that are newer than those and the bug is present.

In the .IRO mod that I'm using, new music ids are set via mod.xml and new music is set to play using the specific enemy formation id and the shuffle function. Here's an example of what one looks like in config.toml:

[bat_644]
shuffle = [ 'demongates' ]

In this case "bat_644" refers to FF7's enemy formation id 644 which is the Demon Gates boss fight and the 'demongates' id is a new referenced file that is set and linked in mod.xml.

To Reproduce:

  1. Install .iro music mod in 7th Heaven v3.5.1.0 or above. The latest version of 7th Heaven does not seem to affect the bug even though v4.0.0.0 is a major update which has changes in music folder detection and ff7_en.exe wrapper injection.
  2. Install FFNx v1.20.x.x
  3. Open modded FF7 in 7th Heaven
  4. Load a save that can head to the Demon Gates boss fight in the Forest Temple
  5. Battle the Demon Gates boss

Expected Behavior:
Since this specific battle is set in the mod to play a different music file, it should play the new file rather than the generic boss fight theme. The music plays correctly on previous versions of FFNx.

Actual Behavior:
On FFNx v1.20.x.x, instead of the specified new music track, it only plays the original boss theme which is the music ID "chu". Since the music mod also changes the file referenced in "chu", the track that plays is the modded version of "chu".

Additional context:
I have not tested this bug extensively but the problem occurs in different battles as well. I have tested and confirmed on my end that the bug occurs in the Turks battle in Gongaga [bat_539], and Turks battle in Sector 8 tunnel [bat_840]. However, the new music still works on other battles like the Midgar Zolom [bat_469] and [bat_470]. And to reiterate again, the music bug does not occur in v1.19.1.0 prior.

EDIT: I have a suspicion that its the battles loaded while in an interior field through in-game scripting and random battles in-field that are problematic. It seems world map random battles and encounters like the Midgar Zolom can get their music replaced with no problems.

Here is a link to the music mod: WIP link removed since issue is now fixed

If anyone needs a FF7 PC save file which can go to certain battles quickly, just ask me I'll upload one.

GPU:

  • NVIDIA RTX 3070
  • Driver Version 561.09
@silentC-VV silentC-VV added the bug Something isn't working label Oct 10, 2024
@julianxhokaxhiu
Copy link
Owner

Please enable trace_music and attach the FFNx.log once you did run your test case, so I can have a better look. Thank you

@silentC-VV
Copy link
Author

I got the logs going into the Demon Gate boss fight with trace_music on from both 1.19.1.0 and 1.20.2.0 with only the music mod enabled in 7H. And yeah, in the game itself both produced a different result, the old version loaded the new music file while the newer version went to the default boss music. One of the differences in that in the new version instead of detecting the battle id it just went "WARNING: play_music: Unknown battle_id"

FFNx v1.19.1.0.log
FFNx v1.20.2.0.log

@silentC-VV silentC-VV changed the title [FF7] Externally set music ids in config.toml does not play on certain enemy formations using FFNx v1.20.0.0 and later [ FF7 ] Externally set music ids in config.toml does not play on certain enemy formations using FFNx v1.20.0.0 and later Oct 11, 2024
@julianxhokaxhiu
Copy link
Owner

Can you please provide a save file and how to repro it so I can quickly test the fix? Thank you in advance

@silentC-VV
Copy link
Author

I compiled some relevant saves into one group for testing. Should appear in the last save group.

https://drive.google.com/file/d/1OMv9u633GzI9FFTsOfWtWpbXsFsJPZtf/view?usp=drive_link

First slot is just outside of Gongaga for the Turks battle. Second is just before Demon Gate, just head to the rightmost door and then past the clock room. Third is just outside Midgar Tunnels going into another Turks battle and the last slot is a world map save just outside Gold Saucer for the Ruby Weapon fight.

Current behavior appears to be that interior field battles have problems with perhaps the battle_id at least on the music side while world map battles like the Ruby Weapon fight and Midgar Zolom still work.

@julianxhokaxhiu
Copy link
Owner

julianxhokaxhiu commented Oct 11, 2024

Thanks for sharing them, however your link says I'm unauthorized therefore I am not able to download them. Can you please upload them here as a zip file using the upload function of Github?

@silentC-VV
Copy link
Author

Ah, lemme change that to public and attach as zip for good measure. And I guess the mod link was also not public but the link should be ok now.

save09.zip

@julianxhokaxhiu
Copy link
Owner

Feel free to try the latest canary, should be working fine now. Thanks a lot for reporting this bug :) Appreciated

@julianxhokaxhiu julianxhokaxhiu added this to the 1.20.3 milestone Oct 12, 2024
@silentC-VV
Copy link
Author

Thanks! Things are working great now. Now I return to making flevel.lgp edits for more scripted music cues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants