Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Loading sounds from lang folder?
IlDucci Offline
Junior Member

Posts: 5
Threads: 2
Joined: Oct 2016
Reputation: 1
#3
RE: Loading sounds from lang folder?

(10-24-2016, 11:31 AM)Mudbill Wrote: The way file loading works in Amnesia is that it checks the "resources.cfg" file for each entry present. It looks through all those folders (and subfolders if AddSubDirs="True") listed in order until it finds a file with the specified filename (regardless of the file path).

If you have a file named mysound.ogg within the lang folder and another file named mysound.ogg within the sounds folder, it will find and use the first one it can locate, based on the resources file. If the resources list "/lang" first, it will find the first file. If it lists "/sounds" above the lang folder, it will find the second file instead. Once it finds a file, it stops searching for it, basically ignoring any duplicates.

Your solution is probably to edit the resources.cfg file.

Anyway, are you trying to do a language mod, as in a custom voiceover in another language? Are you trying to override the player's "breathing/jump/scare" sounds as well? Ideally (of course) your mod shouldn't overwrite any present files, but rather load them differently. I haven't looked at how the voiceovers are done, so I'll have to investigate to give a more accurate answer.

Yeah, we're doing a full Castilian Spanish voiceover (It's 99% complete) and I'd hoped to put things in the lang\esp folder, avoiding the overwrite of the sounds folder. (I'm the technical guy, the voice director is somebody else) I'll try the resources thing.

EDIT: The lang folder is actually absent from the resources.cfg file.
(This post was last modified: 10-24-2016, 11:42 AM by IlDucci.)
10-24-2016, 11:40 AM
Find


Messages In This Thread
Loading sounds from lang folder? - by IlDucci - 10-24-2016, 10:50 AM
RE: Loading sounds from lang folder? - by Mudbill - 10-24-2016, 11:31 AM
RE: Loading sounds from lang folder? - by IlDucci - 10-24-2016, 11:40 AM
RE: Loading sounds from lang folder? - by Mudbill - 10-24-2016, 12:48 PM
RE: Loading sounds from lang folder? - by IlDucci - 10-24-2016, 12:49 PM
RE: Loading sounds from lang folder? - by Mudbill - 10-24-2016, 09:09 PM
RE: Loading sounds from lang folder? - by IlDucci - 10-24-2016, 09:55 PM



Users browsing this thread: 1 Guest(s)