Sound file issue

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Sound file issue

Post by RayB »

I have defined two new ropes, a 'rope' and a 'magic rope'. I also have a script in my dungeon which handles using the ropes. This script contains two different sounds I have defined, one for climbing up and one for climbing down. Everything worked great!

THEN, I decided to change the climb down sound. So, I created a new sound, placed it in the 'mod_assets\sounds' folder after renaming the old one. So now I've got the new sound in the folder with the same name as the old one. I then reloaded the dungeon. However, when I climb down the original sound plays instead of the new one. I even tried exiting the program but that didn't work either. I am sure there is no definition or script in my mod which points to the old sound. There can't be because I renamed it! I have no idea how Grim 2 is even finding the old sound to play it, yet it does.

Any idea how this is happening?

P.S. I finally got it to work by renaming the sounds in the define files (and of course, changing the names of any references to them in my script) but I am still very curious how Grim 2 could play the old sound after a complete (from desktop) restart when there was no code referring to the old sound.
User avatar
THOM
Posts: 1281
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Sound file issue

Post by THOM »

Mh - the only thing that comes to my mind is, that Grimrock loads by default it's original assets that are included in the game-file. If you want the game to load assets (or definitions) from another place you have to change the path in the init-file so that it points to your file.

Could that be a reason?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
Post Reply