#What determines whether events will stop the music currently playing? (PM3, eventBGM.dat, etc)

128 messages ยท Page 1 of 1 (latest)

dusky forum
#

Some events in P4G, when called, will not stop music that is playing in the background until their next BGM call (E105_001, E295_001, etc). This allows you to have music from the prior events continuing to play during those events.

However, some other events do stop music, so you can't continue music from previous events. One of those events is E455_502.

I'm trying to find out what exactly determines that because I want to have music from E455_501 continuing to play into E455_502. Nothing in their PM2/3s stands out though, and eventBGM.dat doesn't even seem to have a lot of the events in the first place.

spiral quartz
#

Have you tried the 50/50 strat

#

Deleting 50% of stuff (most likely Unit entries) and seeing if the music stops

#

If it does, try the other 50. Then keeping cutting in half until you find the entry responsible.

dusky forum
#

I haven't. Honestly I was avoiding doing that bc I didn't know if I would break things or not lol

#

bc I was sort of under the impression that the unit entries controlled like, model movement and such in the event. I can try that though and see if that gets me anywhere ๐Ÿค”

spiral quartz
#

It does but you're looking for music not those

dusky forum
#

that's usually stored in the PM3, yeah? the problem I'm running into is that there isn't anything relevant there that stands out from any of the other event files

#

I also tried deleting around half of the unit entries, then the other half, and it doesn't seem like that did anything. did the same thing with ambience just to make sure. testing a few more things to make sure though

#

๐Ÿค” I don't know if it's actually anything to do with the PM1/2/3 files at all. I swapped in the respective files from E295_001, and aside from the voice lines being wrong (didn't switch the awb at all), it played exactly as intended - except it still cut off the music

spiral quartz
#

Sounds like it's not in those then

#

Have you checked for a bf

dusky forum
#

i've been looking around, so far the only thing I found was in event_data/script/E455_502.bf.... which only decompiles into this and some message files that don't seem relevant

#

this doesn't look relevant either but I am not familiar with flowscript haha

#

I'm just wondering if there's something else comparable to cmmeventbgm.dat, with the other events in it. that file seems to only have social link events in it, but as I found out months ago, there are story events with nothing called in the PM3, that just work regardless ๐Ÿค”

spiral quartz
#

Could be

#

Or the low chance of exe fuckery

dusky forum
#

oh god

#

yeah if it's exe stuff, I have... no idea what I'm doing there ๐Ÿ˜ญ

#

I'd have to like, decompile the exe in that case right?

forest gulch
#

Is this happening when calling the event from the mod menu? If not it could be stopped before the call to the event in whatever bf is doing that

forest gulch
#

nvm, I just tested myself and I see it just always happens...

#

Well I'd try replacing the pm3 with one from an event where this doesn't happen then if that changes nothing do the pm2

dusky forum
#

I already did unfortunately </3

forest gulch
#

rip

#

What if you replace the pm1 as well? Just replace the entire event...

dusky forum
#

it seems like it's not related to the PM_ files because even when I switched in the files for E295_001, it cut the music that was playing at the time

forest gulch
#

Oh, ok

dusky forum
#

the only thing is that the audio was wrong bc I never changed it but I'm not sure if the sound banks would really control that logic anyways

forest gulch
#

Well, I guess whatever's doing it must be in another file naotothink

dusky forum
#

yeah, I looked a bit more earlier before deciding to just take a break, but the only other file I could think of was cmmEventBGM.dat, which unfortunately doesn't have it

#

mudkip had brought up the possibility of it being handled in the exe. does that sound likely at all to you? ๐Ÿค”

seems like an odd thing to keep in the exe though...

forest gulch
#

That seems pretty unlikely, I'd expect it's in some file somewhere. I wouldn't say it's completely impossible though

dusky forum
#

I sure hope not lol

#

I'll keep looking in a little bit, if you think you have any ideas where this file could be though, let me know

spiral quartz
#

I said low chance specifically so you wouldn't go digging around in exe until you had lost all hope

forest gulch
#

I'd prefer looking in the exe than randomly looking through files lol

#

I'll see if I can find anything as well

#

I do still doubt it's actually hardcoded, but in theory I should be able to find where it's coming from if it isn't

#

Where is the eventBGM.dat you've talked about btw? Ik you said you couldn't see it in there but I'd like to see what it is for myself

dusky forum
#

it's either init.bin or init_free.bin

#

inside there it's in like event/cmm

forest gulch
#

Oh yeah, I see

#

Ty

dusky forum
#

np

#

there's a 010 template I used to look through that file, so I guess if that template is inaccurate it could be in there

#

although I doubt it

forest gulch
#

Could you send that template

dusky forum
#

yeah can you give me a few minutes? I'm eating dinner right now haha

forest gulch
#

Sure, no rush

dusky forum
forest gulch
#

Ah, I see why you say it isn't there.

dusky forum
#

yeah, it seems it only covers BGM for SL events and such

forest gulch
#

So do non social link events just always have it in the pm2 or pm3?

dusky forum
#

99% of the time it seems to be in the PM3 (or PM2 for songs treated as ambience)

#

I believe there might be a couple where the songs are called elsewhere but I don't remember if it was an SL event or not

forest gulch
#

Do you know where that elsewhere is or is it some unknown?

dusky forum
#

if it was a SL event I'm remembering, cmmEventBGM. if not, unknown

dusky forum
#

maybe it was a social link event that didnt have the BGM call in the PM3. as far as I can tell at least from looking at that old thread lol

forest gulch
#

I'll have a proper look into this later today, for now I should stop

dusky forum
#

alright. thanks, appreciate it

modest valley
#

bit of a long shot but could the id be what determines if bgm persists, like if an event id is < 500. events seem to do that for voice lines, only loading an audio file for ids < 600 or something

dusky forum
#

I hope not haha. that's a possibility though, it's not like I've tested to see if that is or isn't the case.

most of the story events have BGM in their PM3, most of the social link events are in the BGM dat. but these Golden events are just there in between lol

dusky forum
dusky forum
#

i dug through all the files again and nothing stood out to me, I'm just so confused about what exactly is causing this ๐Ÿ˜ญ

forest gulch
#

I didn't end up looking into it more. I kinda ended up getting side tracked looking into event editor stuff (didn't really find anything useful, just strings...)
Anyway, I'll try and actually look into it today maybe

#

Did you try the event id theory?

spiral quartz
#

That one neko person got the event editor working in p4g32 iirc

forest gulch
#

I don't think they got it working but yeah, they definitely got further than I have

dusky forum
#

no worries, and I have not tried that theory yet. I wonder if that's really the case though bc P4G does have those voiced events for SLs every so often

forest gulch
#

I'm pretty sure it's just the max rank events that are voiced for s.links

dusky forum
#

there's some random non rank 10 links that are voiced

#

I'm not sure if there's a specific pattern to it but I know like Rise's rank 8 is fully voiced

forest gulch
#

Oh, I didn't realise. That's weird

dusky forum
#

I thought maybe they had all confessions voiced but that's not the case lmao so maybe there is no pattern for that

#

in any case I can look further into it but I kinda doubt there is a pattern to that....

spiral quartz
#

Naotos confession is fully voiced too

#

Idk about chie or yukiko

dusky forum
#

Yukiko's isn't

#

I lied I looked at the wrong rank, it is

#

chie's is too so I guess confessions are also voiced

dusky forum
#

every E44_ event with no explicit BGM call at the start of the event seem to have the same thing happen (the music cuts out)... so maybe it is to do with the IDs of the event?

#

not just the new Golden events either

spiral quartz
#

Doesn't sound out of the ordinary

#

EXE has a check for ids having voice awbs but loads them based on id anyway abhorant

dusky forum
#

I hate persona modding sometimes

#

๐Ÿ˜ญ

#

I never actually replaced any of the events so I can't totally confirm but everything I did test had the music consistently cut off ๐Ÿ˜” so I just wonder if it really is down to it being in a specific ID range. just bugs me because it's inconsistent with the other events as far as I can tell

modest valley
#

any patterns you noticed?

dusky forum
#

my current running theory is that you might have been right ๐Ÿ˜ญ

#

I haven't been able to find any other files controlling whether BGM stops or not in my game dumps

#

I wonder if it's controlled in the exe or if it's just hard coded somehow. but I don't know how to like... look inside the exe or do exe patches

spiral quartz
#

I found the voice stuff by just popping exe in hex editor

#

Could just look up files or ids

dusky forum
#

huh, you can do that?

spiral quartz
#

open an exe in a hex editor? yeah

dusky forum
#

how did you end up finding it anyways? if you're opening it in a hex editor it's just going to be various bytes right

spiral quartz
#

wont be anywhere near as detailed as ghidra but it has strings you can check

spiral quartz
#

might at least point you in some direction

modest valley
#

the voice thing you're talking about was a string though, easier to spot than assembly instructions (assuming it is id related)

spiral quartz
#

ye

#

(then they have hardcoded id shit anyway abhorant)

dusky forum
#

oh huh, that's cool

#

I have never ever done anything with exe stuff before so this is all foreign to me tbh lol

modest valley
#

do you have a save file for testing e455_501/502 or are using mod menu?

dusky forum
#

I tried both

#

I usually use mod menu but I tried using a normal save file to test, it's how I noticed the issue in the first place

#

just have to drop a 9999 Megidolaon on marie

modest valley
#

can you post the save file?

dusky forum
#

yeah I can in a bit, I'm away from my computer rn though

dusky forum
dusky forum
#

this may be my inexperience with looking inside exes lol, but i have no idea what i'm looking for lol
although this looks like something!!! not sure what to do with it though lol

#

there's also a reference to a few specific events but it's just to load textures, nothing to do with BGM or whatever

forest gulch
#

I'm pretty sure that's stuff from some kind of event editor or debug menu. I don't think it's that helpful for this (for the last three days Ghidra's been aggressively analysing instructions in the hopes that I can find a reference to functions that use those, I'm not very hopeful at this point though, it kinda looks like the actual functions were removed and only some string formatting was left...)

#

I'll see if I can just copy the project so I can actually use Ghidra (while it's analysing it's basically unusable)

dusky forum
#

imagine if we had access to an event editor in P4G like the one in P3F... that'd be really nice

#

hopefully you do manage to find something in ghidra though :') honestly I didn't expect a question this simple to get this crazy lol but here we are

modest valley
#

naodead well i cant figure it out, doesn't seem to be around the code for queuing(?) up event bgm or actually playing it. hopefully someone who can actually re has better luck ๐Ÿ˜”

dusky forum
#

dang ๐Ÿ˜”

#

here's what I have found out though: mudkip suggested i try loading a new event with a different ID. I copied over E265_001, an event I know doesn't cut music, and called it E265_002. Apparently, the music cuts out for this one though

#

that would suggest to me that music might be allowed to continue playing for certain event IDs but not for others

#

perhaps if I replace E265_001 or something with my desired event, and then edit the scheduler so that the proper events are called, it could work. bit of a jank solution though, if it even works

dusky forum
#

this is half working so far. if I can figure out how to call different events for Marie's dungeon, I think this should work. (I'm having trouble with the flowscript stuff but I thought it'd be better in a new help thread)

edit: this may not work after all ๐Ÿ˜ญ