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?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Loading sounds from lang folder?

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.

(This post was last modified: 10-24-2016, 11:32 AM by Mudbill.)
10-24-2016, 11:31 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)