A downloadable tool for Windows

Buy Now$6.95 USD or more

RerouteAudio allows to reduce clutter in compiled GameMaker: Studio / GameMaker Studio 2 games by modifying the games to load generated audio files from sub-directories. The process is completely automatic - no additional setup is required 

Simple use:

Drag a data.win (VM) or an .exe file (YYC) onto RerouteAudio executable.
Audio files will be organized by following patterns:
pfx_sound_name.ogg -> pfx/sound_name.ogg
pfxSoundName -> pfx/SoundName

Advanced use (via command prompt):

RerouteAudio <path to .win/.exe> "rx1" "rp1" "rx2" "rp2" ...
rx# are regular expressions (global match) to be ran on filenames.
You can use something like https://regexr.com to experiment with them.
rp# are replacement-values. Insert $1, $2, etc. for matched results.
For example, you could do

e.g. RerouteAudio D:/test/data.win "^(snd)_(.+)$" "$1/$2"

to move any "snd_some.ogg" to "snd/some.ogg".
Add --preview parameter to preview the actions without changing anything.

System requirements:

RerouteAudio is a ~50KB, .NET 2.0 application. It should run on anything that runs GameMaker and/or GameMaker games themselves. Non-.NET binaries can be compiled upon request.

Supported platforms:

GameMaker: Studio only dumps all audio files straight into the executable directory on Windows, therefore RerouteAudio works with that (both normal and YYC exports).

GameMaker Studio 2 places [most?] audio assets into a "snd" directory automatically, but RerouteAudio can still be used to organize them better (e.g. split them into "sounds" and "music" directories).

Limitations:

For compatibility reasons, renamed audio paths may not be longer than original paths. Fortunately, however, extensions on audio files are optional, therefore you always have 4 "free" symbols from that.
Otherwise, original audio paths depend on resource names, so renaming the sounds in GM will affect how they are named on export.

StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorYellowAfterlife
Made withGameMaker
TagsGameMaker

Purchase

Buy Now$6.95 USD or more

In order to download this tool you must purchase it at or above the minimum price of $6.95 USD. You will get access to the following files:

RerouteAudio.zip 23 kB

Comments

Log in with itch.io to leave a comment.

How plays this with audiogroups?

Each audio group gets packed into an audiogroup#.dat file and runner loads them by inserting the number into that template - so you can’t really move individual groups into sub-folders like you can with sounds.

Is this compatible with GMS 2.3?

(+2)

Apparently yes. Also GMS2.3 no longer (?) places audio files into snd/ subdirectory so I guess my asset is useful again.

that’s awesome!