Is this correct for custom hero streams: http://www.mediafire.com/file/eai0mm6nh6o3plm/BOT.zip
How do I add this to my .lua for the custom hero stream to work?
SND Sound Help (Hero Spawn Sound) [Solved]
Moderator: Moderators
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
SND Sound Help (Hero Spawn Sound) [Solved]
Last edited by LitFam on Sun Oct 22, 2017 3:50 pm, edited 1 time in total.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: SND Sound Help (Hero Spawn Sound)
Please post the contents of the files in code tags. Thanks.
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: SND Sound Help (Hero Spawn Sound)
Code tags do you mean I post the code here instead of a download link?
EDIT
Is there anything that I need to add to the .lua code Marth8880?
Do I do this in global instead of the BOT folder in sounds/worlds?
EDIT
Is there anything that I need to add to the .lua code Marth8880?
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: SND Sound Help (Hero Spawn Sound)
Is this all that's in the REQ file? There should also be a section listing your SND file(s).LitFam wrote:Code: Select all
ucft { REQN { "str" "align=2048" "bot_vo" "bot_vo_slow" } }
EDIT:
Okay so I looked at the files you included in the ZIP file, and it appears that in the REQ, you've listed your SND file in the STR section; SND files must be listed in the CONFIG section.
Resources:
http://www.secretsociety.com/forum/down ... 0Guide.txt (see section titled "Sound Data Flow")
EDIT 2:
Oh, and to answer your question regarding the LUA, sound LVLs generally must be loaded with ReadDataFile, and STM/ST4 files must be opened with OpenAudioStream.
Resources:
https://github.com/marth8880/SWBF2-Lua- ... oclua#L288
https://sites.google.com/site/swbf2modt ... soundhooks (see section titled "OpenAudioStream")
https://github.com/marth8880/SWBF2-Lua- ... oclua#L135
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: SND Sound Help (Hero Spawn Sound)
Do I build this in global?
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: SND Sound Help (Hero Spawn Sound)
No. It should be in your world's sound folder, e.g.:
Code: Select all
data_ABC\Sound\worlds\ABC\
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: SND Sound Help (Hero Spawn Sound)
Thank you marth8880 I will credit you.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: SND Sound Help (Hero Spawn Sound)
No need to credit me my dude.
-
- Recruit Womprat Killer
- Posts: 10
- Joined: Sat Jun 11, 2016 6:34 am
- Projects :: Malastare Plains
- xbox live or psn: PSN: swgaming1015
Re: SND Sound Help (Hero Spawn Sound) [Solved]
I had a similar problem when trying to add a hero spawn voiceover. Here's what I have in my LUA:
OpenAudioStream("dc:sound\\tes.lvl", "tescw_music")
OpenAudioStream("dc:sound\\tes.lvl", "tes");
Here's my sound folder:
tes.req
tescw.req
tescwmusic.stm
tescw_music1.snd // My voiceover is at the bottom after the music.
Any ideas why the voiceover isn't showing up ingame? Thanks.
OpenAudioStream("dc:sound\\tes.lvl", "tescw_music")
OpenAudioStream("dc:sound\\tes.lvl", "tes");
Here's my sound folder:
tes.req
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler: