Fixing Game Maker: Unable to find audio resource – using default sound (Windows Ding)

GM Logo

Recently I had a problem with zX where Game Maker: Studio gave me the error “Unable to find audio resource – using default sound (Windows Ding)” after a bit of investigating I found that this was due to the file that was being pointed to by the while had an absolute directory as opposed to a relative one, which cause GM to miss a file that it a simple reference to.

So Game Maker was pointing to D:\Games\zX-Hyperblast\Studio\hyperblast\\\sound\audio\snd_death_cyborg_large.wav instead of just snd_death_cyborg_large.wav

There were about 76 of files with this kind of error in them. So I wasn’t going to sit around and hand edit all of them, the GM editor is rather slow, and I doubt hand editing each .gmx file was going to be much faster. So I wrote some python programs to edit them for me. (I think it likely took me longer to write the programs than it would have taken to just edit the bloody files, but the practise was good. And hopefully I can share some tools with other people to help them out.)

The two scripts GMSoundDiff, and GMSoundSimple sorts through the .gmx files and browsers the xml to see where it is pointing and if there is a file at the location it is pointing, if there isn’t it will write the name of the .gmx file and the name of the audio file it is trying to find. GMSoundSimple will strip out the absolute directory of  the sound files so they will just be relative, but there are a couple of implementations that are specific to zX in there, but I rather doubt those are likely to be that big of an issue, and if people really want to use them I can go back and fix up the scripts so that they are more generalized for people to use.

I suppose that there are two quirks that go with this. The scripts are command line and require you to have Python 3.3.x+ installed and you your path to bash the scripts. The scripts will also only work if placed in the Sounds file in Game Maker. This unfortunately does mean that this is really more something for programmers to speed up debugging GM than something for every GM dev to just use. I’m likely going to write more scripts for speeding up working with GM as I go along and find annoying places where the editor is simply lacking, and when I accumulate enough of these I’ll probably just bundle them to gether into a neat little programme that you can point at a GM project and it will just work from that. But I really woulnd’t expect that any time soon.

The scripts have a nice little GitHub Repo and if you want to know more about the scripts or are actually using them I would suggest getting in touch with me on Twitter if there is something going wrong with the scripts.*

*Disclaimer: these scripts will edit you .gmx files which Game Maker DOES NOT recommend you do! So you do so at your own risk. You might want to be using a Version Control System to make sure that you do lose any essential data.

93 thoughts on “Fixing Game Maker: Unable to find audio resource – using default sound (Windows Ding)

  1. Pingback: writeessay

  2. Pingback: Buy generic cialis

  3. Pingback: Viagra 20mg

  4. Pingback: Viagra or cialis

  5. Pingback: Canadian viagra

  6. Pingback: Buy generic cialis

  7. Pingback: Cialis online

  8. Pingback: Purchasing viagra on the internet

  9. Pingback: Cialis for sale

  10. Pingback: Cialis generic

  11. Pingback: Cialis generic

  12. Pingback: Buy cialis online

  13. Pingback: Cialis generic

  14. Pingback: Cialis coupon

  15. Pingback: page

  16. Pingback:

  17. Pingback: go to the page

  18. Pingback: go to the page

  19. Pingback: this web page

  20. Pingback:

  21. Pingback:

  22. Pingback: taken from here

  23. Pingback: a source

  24. Pingback: this web page

  25. Pingback: page

  26. Pingback: go here

  27. Pingback:

  28. Pingback:

  29. Pingback: visit the source

  30. Pingback:

  31. Pingback: i'll provide a link

  32. Pingback: more information

  33. Pingback: visit web page

  34. Pingback: based on these data QN7Yv

  35. Pingback: read more

  36. Pingback:

  37. Pingback: click to read more

  38. Pingback: click to to learn more

  39. Pingback:

  40. Pingback: link mDeaQ

  41. Pingback:

  42. Pingback:

  43. Pingback: more information MXAwP

  44. Pingback:

  45. Pingback: page

  46. Pingback:

  47. Pingback: as reported here 8B60

  48. Pingback: click to to learn more

  49. Pingback: more on this page 3UQV7

  50. Pingback: i provide a link

  51. Pingback: article source

  52. Pingback: click to to learn more

  53. Pingback: just click for source uSE

  54. Pingback: latestvideo sirius594 abdu23na4558 abdu23na36

  55. Pingback: new siriustube610 abdu23na4940 abdu23na56

  56. Pingback: read completely

  57. Pingback: hd videos tubepla.net85 afeu23na4311 abdu23na69

  58. Pingback: sfgjidfgn952 afeu23na5964 abdu23na89

  59. Pingback: tubela.net173 afeu23na4838 abdu23na6

  60. Pingback: Cialis 20 mg best price

  61. Pingback: more info

  62. Pingback: read completely

  63. Pingback: address

  64. Pingback: click to to learn more izPkO0

  65. Pingback: more info KnA3

  66. Pingback:

  67. Pingback: continued here

  68. Pingback: based on these data

  69. Pingback: go here

  70. Pingback: learn more here

  71. Pingback: go to the page

  72. Pingback: view more BuHk

  73. Pingback: read further

  74. Pingback: as reported here

  75. Pingback:

  76. Pingback: click the following article

  77. Pingback: page

  78. Pingback: continued here XPIGw

  79. Pingback: continue

  80. Pingback:

  81. Pingback: go

  82. Pingback:

  83. Pingback: address

  84. Pingback: continue reading

  85. Pingback:

  86. Pingback: continued here

  87. Pingback: more info

  88. Pingback: see more ftPqxK

  89. Pingback: taken from here 2Ymz

  90. Pingback: this web page

  91. Pingback:

  92. Pingback:

  93. Pingback: