05/11/2017
Hi all, i need help with announcer in game, i explain the problem after the strings:
Void PlaySound(Text soundName, Integer variant){
SoundLayerFirst.ManialinkPage = """""";
if(soundName == "cd"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ant}}}.ogg"/>
</manialink>""";
}
if(soundName == "30sec"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/30s.ogg"/>
</manialink>""";
}
if(soundName == "excellent"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ellent.ogg"/>
</manialink>""";
}
if(soundName == "play"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... 21Play.ogg"/>
</manialink>""";
}
if(soundName == "lost"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... s/lost.ogg"/> </manialink>""";
}
if(soundName == "win"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/win.ogg"/> </manialink>""";
}
if(soundName == "newRoundIn"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... wRound.ogg"/> </manialink>""";
}
if(soundName == "nextMap"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ionOut.ogg"/> </manialink>""";
}
}
Void DoKillStreakAnnounce(){
SoundLayerSecond.ManialinkPage = """""";
if(KillStreak == 1){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... e_Kill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Double Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 2){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... tiKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Multi Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 3){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... gaKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Mega Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 4){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... raKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Ultra Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak > 5){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... Kill_F.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Monster Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
}
}
Void TimerSound(){
if((EndTime - Now) == 30000){
PlaySound("30sec", -1);
}
if((EndTime - Now) == 10000){
PlaySound("cd", 10);
}
if((EndTime - Now) == 9000){
PlaySound("cd", 9);
}
if((EndTime - Now) == 8000){
PlaySound("cd", 8);
}
if((EndTime - Now) == 7000){
PlaySound("cd", 7);
}
if((EndTime - Now) == 6000){
PlaySound("cd", 6);
}
if((EndTime - Now) == 5000){
PlaySound("cd", 5);
}
if((EndTime - Now) == 4000){
PlaySound("cd", 4);
}
if((EndTime - Now) == 3000){
PlaySound("cd", 3);
}
if((EndTime - Now) == 2000){
PlaySound("cd", 2);
}
if((EndTime - Now) == 1000){
PlaySound("cd", 1);
}
}
I always heard these "voices" and now i can't hear these.... I tried to check on dropbox but nothing found, so i tried to ask at my friend to play this mode on his pc and these works.
So, why on my pc they don't work?
And if i want create new sounds, how can i do?
I have already some files in ogg in a new folder, i can upload on dropbox or google drive, but when i have the link, where place it in the script? And the files, need to be placed in some folder of the game?
06/11/2017
Hey guys, today i have changed manialink version="2" with manialink version="3" but it doesn't work again, i tried to change the entire command but... nothing. Please help me, or if is possible have the correct strings that work.... If need the entire script i can post link where found it, ty very much
Annihilation Announcer
Moderator: English Moderator
Re: Annihilation Announcer
Hi,
Thank you for your report.
As you stated, you switched to maniaplay version 3 which is important.
Could you try with sound files accessible to everybody? Try this for example : https://upload.wikimedia.org/wikipedia/ ... xample.ogg
If you want, you can put the sound files in the title folder MyTitleName@MyLogin/Media/MyFileName and access it through file://Media/MyFileName
I hope that helps.
Thank you for your report.
As you stated, you switched to maniaplay version 3 which is important.
Could you try with sound files accessible to everybody? Try this for example : https://upload.wikimedia.org/wikipedia/ ... xample.ogg
If you want, you can put the sound files in the title folder MyTitleName@MyLogin/Media/MyFileName and access it through file://Media/MyFileName
I hope that helps.
Re: Annihilation Announcer
Ty for help, but i'm a noob in that way, i need to understand how the code works. For example i tried to do this but it doesn't work... :
If you want see the entire script i can write here the link page.
Maybe need to know where i saved the ogg files?
I'm searching an italian guide to understand the best the maniascript.
Thank you very much ^^
Code: Select all
// Play sound
Sound::PlaySound(C_ImgBase^"Sounds/30_seconds_remain.ogg");
Sound::PlaySound(C_ImgBase^"Sounds/Play.ogg");
Sound::PlaySound(C_ImgBase^"Sounds/You_Have_Lost_the_Match.ogg");
Sound::PlaySound(C_ImgBase^"Sounds/You_Have_Won_the_Match.ogg");
Sound::PlaySound(C_ImgBase^"Sounds/NewRoundIn.ogg");
//Play sound
Sound::PlaySound(C_ImgBase^"Sounds/Double_Kill.ogg");
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Double Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
Sound::PlaySound(C_ImgBase^"Sounds/MultiKill.ogg");
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Multi Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
Sound::PlaySound(C_ImgBase^"Sounds/MegaKill.ogg");
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Mega Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
Sound::PlaySound(C_ImgBase^"Sounds/UltraKill.ogg");
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Ultra Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
Sound::PlaySound(C_ImgBase^"Sounds/MonsterKill_F.ogg");
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Monster Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
Maybe need to know where i saved the ogg files?
I'm searching an italian guide to understand the best the maniascript.
Thank you very much ^^
Re: Annihilation Announcer
I'd like the complete page if you can, so I can see what some of the variables are. Are you sure the page is compiling properly? (Ctrl + G once or twice to check)
Re: Annihilation Announcer
Hey ^^
Yep, here the new script compiled ---> https://pastebin.com/0Mb8JY6u
here the old (and for now the only that works) ---> https://pastebin.com/pDGmBNM3
Ty for your help
Yep, here the new script compiled ---> https://pastebin.com/0Mb8JY6u
here the old (and for now the only that works) ---> https://pastebin.com/pDGmBNM3
Ty for your help
Re: Annihilation Announcer
Hello,
These links doesn't work anymore because Dropbox stopped direct access to "Public" folder. Also if your friend can still hear the sounds, it's because these are saved on his cache.
These links doesn't work anymore because Dropbox stopped direct access to "Public" folder. Also if your friend can still hear the sounds, it's because these are saved on his cache.
I'm still alive I think.Author : is died during the game
Re: Annihilation Announcer
Is an honor to talk with you, finally!!!!!!!!!!!!!!!!!!
I say I like to joke because I'm always busy with work and I have little time to have fun, so what I wrote, believe me, I did not do it badly but in the good sense, sorry if I offended you.
There is nothing better than asking the script author how I can change the sounds, i would like to add my own that i found because since i play annihilation i could not stop then i find it a bit sad that there are these problems...
How can I contact you privately? I need your help
Re: Annihilation Announcer
No problem
So, for playing sounds, you need to have sounds available from a server which you can directly access (play or download), like the file Qlex provided earlier.
In the script, declare a new CUILayer variable like this (put it next to all vars declarations)
In ***Match_StartServer*** section, create a UILayer and store it, add it to all player's ui
Now, everytime you want to play a sound, all you have to do is to refresh the ManialinkPage property of your sound layer
You may not here the sound for the first time because the game needs to download it. Just try again and you should be able to hear the sound.
You can still contact me via PM here.
So, for playing sounds, you need to have sounds available from a server which you can directly access (play or download), like the file Qlex provided earlier.
In the script, declare a new CUILayer variable like this (put it next to all vars declarations)
Code: Select all
declare CUILayer m_SoundLayer;
Code: Select all
m_SoundLayer= UIManager.UILayerCreate();
UIManager.UIAll.UILayers.add(m_SoundLayer);
m_SoundLayer.ManialinkPage = "";
Code: Select all
m_SoundLayerFirst.ManialinkPage = """
<manialink version="2">
<audio looping="0" hidden="1" play="1" volume="1" data="https://upload.wikimedia.org/wikipedia/commons/c/c8/Example.ogg"/>
</manialink>
""";
You can still contact me via PM here.
Who is online
Users browsing this forum: No registered users and 1 guest