sound
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Re: sound
It's difficult for anyone to know what's wrong, as things currently stand. A good place to start is by posting your WML.Elmor wrote:what can be the problem, I just don`t know where to start
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
Re: sound
No it shouldn’t. Only .cfg files and directories containing them should be included. Including anything else does nothing but waste your and Wesnoth’s time.Azeal wrote:Your _main file should have the directory in it like this {~add-ons/my_era/sound/}. Otherwise the folder it is in should be included when you call the music with wml.
Re: sound
Yeah, 8680 is right. Including your sound, music, images or maps directories does absolutely nothing. Yet for some reason a lot of people seem to do it.8680 wrote:No it shouldn’t. Only .cfg files and directories containing them should be included. Including anything else does nothing but waste your and Wesnoth’s time.Azeal wrote:Your _main file should have the directory in it like this {~add-ons/my_era/sound/}. Otherwise the folder it is in should be included when you call the music with wml.
- Pentarctagon
- Project Manager
- Posts: 5567
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: sound
Do you have [binary_path] in the _main.cfg?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: sound
Code: Select all
[binary_path]
path="data/add-ons/Wesnoth_era"
[/binary_path]
{~add-ons/Wesnoth_era/wera.cfg}
{~add-ons/Wesnoth_era/abilities.cfg}
[+units]
{~add-ons/Wesnoth_era/units/}
[/units]
Re: sound
Let's say you have a sound file called
This is also said in the WML reference, by the way: InterfaceActionsWML#[sound]
my_sound.ogg
. You would place it inside the directory Wesnoth_era/sounds/
. Now, with a correct binary path (and yours is correct), Wesnoth will now look in that directory for sound files. So, if you want to use the sound somewhere, you just use it by its name, my_sound.ogg
This is also said in the WML reference, by the way: InterfaceActionsWML#[sound]
UMC Story Images — Story images for your campaign!