Seer Posted January 4, 2022 Share Posted January 4, 2022 Аддоны могут проигрывать звуки из файла? Quote Link to comment Share on other sites More sharing options...
самолет/Eksperyment Posted January 5, 2022 Share Posted January 5, 2022 Yes, for example: https://alloder.pro/md/LuaApi/CategoryLuaSound.html Although I don't know more, playing without sound here. Quote Link to comment Share on other sites More sharing options...
Seer Posted January 5, 2022 Author Share Posted January 5, 2022 2 часа назад, самолет/Eksperyment сказал: Yes, for example: https://alloder.pro/md/LuaApi/CategoryLuaSound.html Although I don't know more, playing without sound here. Спасибо. Но я так понял, этот аддон проигрывает стандартыне звуки игры. Меня больше интересует возможность добавить в аддон файлы со своими звуками, типа mp3. И что б можно было проигрывать их в игре при нужных событиях. Там по ссылке есть функция: common.GetAddonRelatedSound( name ) , но там не очень понятно, что значит RelatedSounds аддона Quote Link to comment Share on other sites More sharing options...
logg Posted January 5, 2022 Share Posted January 5, 2022 На моей памяти был только один аддон, который воспроизводил звук не из "RelatedSounds " т.е. звуков находящихся в паках игры со своими описателями xdb. Работал он через дополнительный экзешник запущенный в фоне. Там же исходник на делфи Notifications.sha Это было в 2011 году, не знаю работает сейчас или нет. AONotifications.zip Quote Link to comment Share on other sites More sharing options...
Seer Posted January 7, 2022 Author Share Posted January 7, 2022 Спасибо. Поизучаю. Кто-то серьезно замороичился! 😃 Quote Link to comment Share on other sites More sharing options...
logg Posted January 7, 2022 Share Posted January 7, 2022 Да еще звук воспроизводился, только если в файле mods.txt писался текст с "1|" или "2|", что парсилось экзешником и воспроизводился звук. Т.е. тут нужно включать ошибки в mods.txt, включение вроде сделали в интерфейсе. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.