Auto-translated
writes constantly in the console that the file cannot be found. I've tried many options. Can you tell me whether to start specifying the path with GetMapDataPath()... or with the folder where the file is stored in the map? And what does xpointer refer to? Maybe if I understand the principle, I'll finally figure it out.
In such cases, xpointer is always written, but I don't know what it's for.
Regarding the "file not found" error... I don't know, I managed to fix it, and I tried it.
Create a new Sound (try creating a NewFolder first – I named it "zaz", then create a NewObject in it – I also named it "zaz"), click the [...] next to SrcName, and specify your sound. Once again, it should be in the root folder, but not one created during game installation. In my case: "D:\games\Nival Interactive\Heroes of Might and Magic V - Tribes of the East\Complete\zaz.ogg". Then export, save, exit, and look for the created xdb file inside the map, and specify the path to it in the script. You can probably do it without exporting as well.
My script:
Play2DSound ("/zaz/zaz.xdb#xpointer(/Sound)");