Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2167
Auto-translated
Juss456
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.
GetMapDataPath gives the same result, but only if the xdb file is located in Maps/SingleMissions/MapName/.
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)");
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля

Statistics

Welcome our newest member: artem