Why stop_all_sounds never works?

正在查看此主题的用户

ifrit

Recruit
I tried to use stop_all_sounds to stop the current track, but it never worked. The track went on, neither I use 0 or 2 as option. Can anybody tell me why?
 
Anybody knows why? In header_operations.py it writes that (stop_all_sounds, [options]), # 0 = default, 1 = fade out current track, 2 = stop current track

but I have tried 0 and 2, they both don't work. The music doesn't stop.
 
Iberon 说:
I guess that stop_all_sounds only stops sounds, not music.
but look at here (stop_all_sounds, [options]), # 0 = default, 1 = fade out current track, 2 = stop current track

This is the explaination in header_operations.py
 
Iberon 说:
Where are you calling the function from?

I tried to use stop_all_sounds in module_game_menus.py like this:

("camp_action_4",[],"Back to camp menu.",
      [(jump_to_menu, "mnu_camp"),
        (stop_all_sounds),
        ]
      ), 

so when I click "Back to camp menu.", the music is supposed to be stopped. But it doesn't.
Also I use play_track to start a music track where I want to and it works.
 
It could be intended for use within scenes, to stop and play sounds in a battle or something similar. Try calling it from different places to see if it works then, such as a trigger in a mission template. Also in the case you have posted you have not put in the options value, you may have already trieg it though.
 
Iberon 说:
It could be intended for use within scenes, to stop and play sounds in a battle or something similar. Try calling it from different places to see if it works then, such as a trigger in a mission template. Also in the case you have posted you have not put in the options value, you may have already trieg it though.
errrr,in fact I have tried the options value 0,1 or2. Maybe you are right, I am going to try it in battle field.
 
Iberon 说:
It could be intended for use within scenes, to stop and play sounds in a battle or something similar. Try calling it from different places to see if it works then, such as a trigger in a mission template. Also in the case you have posted you have not put in the options value, you may have already trieg it though.
tried in battled play_track works, stop_all_sounds doesn't................
 
Some of the operations simply don't work. (They might not be used by native at all.) There's nothing you can do about that.

Don't know about that one in specific, though. You might want to search the native files (Ctrl F the operation) to see if it's used anywhere in native. If it is, check where it is being used, and how, and if it actually works ingame or not.
 
I tried asking Armagan a long time ago, but he never replied.  In every context Ive tried to use it, it has never worked.
 
grailknighthero 说:
I tried asking Armagan a long time ago, but he never replied.  In every context Ive tried to use it, it has never worked.
bad news for me. hope it can work in 95X
 
后退
顶部 底部