MegaGlest Forum
Archives (read only) => Vanilla Glest => General discussion => Topic started by: BASH2003 on 12 August 2011, 22:54:18
-
So i was trying to replace sounds for the citizen unit in the USA faction. But for some strange reason, when i replace a sound file with my own, Glest complains that the sound file cant work. For instance, i wanted to replace the file "worker_ack1.wav". So using a sound recorder program, i recorded my voice, then when i saved the file, i named it "worker_ack1.wav" in order to replace the original sound. So instead of the guy saying "ok", i wanted him to complain about having to work. however, when i tried the usa faction within Glest, to my surprise, Glest spat out an error message on me saying that there was an error loading a sound file, so then i couldnt play the USA faction as a result. the strange part is that Glest some how knew that the sound file " worker_ack1.wav" was actually a different sound. So thats totally weird because how could Glest be able to tell the difference between the original and the one that i recorded? So unfortunately i learned that Glest doesnt like it when original sound files are replaced with a different sound with the same filename as the original. It still creeps me out just thinking about it cause it makes it look as if Glest somehow has a mind of its own. And here i thought that since Glest was open source, it meant that i can replace files. Its just funny also, because many of the new factions that ive tried, the people there have the same spanish accents as from the Tech faction. So what seems to be the problem? Is there a way to replace these tiresome tech and magic voices that i keep hearing in these factions? or do the creators of glest dont permit people to change the sounds? your help would be greatly appreciated.
-
Sounds can easily be changed. There's a lot of things to note though:
Firstly, are you recording the sound as a wav originally? If you record as an MP3 and rename it to wav that just won't work. Glest currently supports OGG and WAV only, MP3 is a proprietary format, and due to that, it will likely never be supported. If you're using a program like Audacity, be sure to use "export as wav".
Secondly, is the quality of the sound file a realistic amount? If it's extremely high, there have been issues where the file will not work. Something like 16 bit WAV or Quality 5 OGG is best. This can be set in audacity's preferences menu.
Next, is there any caching on your system (eg, a non-admin account or even some admin accounts if UAC is on in windows vista/7)? UAC can generally cause changes to files in the program files to actually be copied to appdata. The whole thing is a giant confusing headache, and all the more reason to use either GAE or MG, which better handle multiple users, or if you're the only user, you could turn off UAC.
If none of these, please post the error message that Glest gives. Also, since you simply say "glest", I assume you are using regular Glest, which is no longer in development and generally most players use GAE or MegaGlest now, and many mods use specific features that require one of those engines.
As a note, before you get the wrong idea, Glest fully allows you to use any file you create, be it sound, image, model, XML, whatever. You'd see that the Apocalyptic Dawn (https://docs.megaglest.org/Military) mod has fully unique sounds, for example, not using any of the original Magitech (https://docs.megaglest.org/Magitech) sounds.
-
Im listing here too!.
Did this work for you?
-
first of all, i am using Mega Glest. second, i recorded my sound using that little sound recorder program that comes with windows. I saved it as a wav file. so i would say that the only reason why the sound doesnt work is because the quality of the sound i recorded was a realistic amount.
Caching on my system? nope, i dont think that's causing it, i use windows xp professional. And i dont know what UAC is.
So im assuming that there is a certain type of wav file that Glest requires in order for the sound to work?
Should i record the sounds in audacity instead?
-
Should i record the sounds in audacity instead?
Getting a usable and useful sound recording is much more likely in Audacity. Ogg vorbis sounds also work, by the way.
-
Getting a usable and useful sound recording is much more likely in Audacity. Ogg vorbis sounds also work, by the way.
As a side note, if using the much higher compression and better quality ogg files (seriously, there's no reason to use wav over ogg, and dunno why mods usually only use ogg for the music and wav for the sound effects), you can't change the file extension, you must instead change the link to the file in the XML.
More information: https://docs.megaglest.org/XMLs