There are two ways to fix the AllocateFormatAndData() bug as of v1.5:

  • You can turn on the “nosound” flag for your client, which will completely disable the sound for the game and thus fix the problem.
  • It seems that the underlying issue might be XNA selecting the wrong sound driver when you have more than one installed, such as a second sound card or a modem being recognized as an audio device. Some people have reported success by disabling the conflicting devices and have been able to get the game running WITH SOUND!

14 Comments to AllocateFormatAndData()

  1. payjack's Gravatar payjack
    May 14, 2009 at 4:52 pm | Permalink

    Warning, Client will hang when there is no / only a faulty Net Connection (suspecting “Serverbrowser waiting for Reply”)

  2. Sharpo's Gravatar Sharpo
    May 15, 2009 at 12:30 am | Permalink

    Disabling the sound made the game stop crashing when loading!
    The game is awesum!!

  3. MNB's Gravatar MNB
    May 15, 2009 at 1:07 pm | Permalink

    Change lava brightness pleaaaaase

  4. Nyman's Gravatar Nyman
    May 15, 2009 at 1:30 pm | Permalink

    This game is starting to be bored with the new options… Ban sucks, Anarchy sap rules. 1.3 RIP

  5. payjack's Gravatar payjack
    May 16, 2009 at 6:12 am | Permalink

    Hm… with the lack of a Lift and the increased Pricetag on Ladders we now see Staircases digged into the Dirt. How about making one-step Cubes Act as Ladders?
    My “Space” Key is screaming for Mercy already 😉

  6. Poltifar's Gravatar Poltifar
    May 16, 2009 at 6:58 am | Permalink

    YAY! It worked, finally. Thanks Zach!

  7. August 20, 2010 at 7:48 am | Permalink

    *Disabling the sound made the game stop crashing when loading!
    The game is awesum!!*
    do you disable sound?

  8. compsciguy's Gravatar compsciguy
    August 21, 2010 at 9:09 pm | Permalink

    You edit the client.config file so that the line that normally reads “nosound = false” instead reads “nosound = true”. If you are running Vista (or possibly Win7) you will probably need to run Notepad with Administrator (“elevated”) privileges or you won’t be able to save it. And if you need to ask how to run with Admin privs, well…

  9. Win7x64Sucker's Gravatar Win7x64Sucker
    September 9, 2010 at 5:02 am | Permalink

    It would appear that the nosound=true fix for the get_Adapters exception does not work within Windows 7 x64 on its own. You also need to run the client as Administrator.

  10. lucas's Gravatar lucas
    September 21, 2010 at 9:54 pm | Permalink

    mine doesnt work at all i turned the sound off still doesnt work:(

  11. compsciguy's Gravatar compsciguy
    September 22, 2010 at 9:02 am | Permalink

    Well, then, the crash you are getting is not caused by the AllocateAndFormatData() issue. Could you post the text of the error message you get? Or better yet, post a link to a screenshot?

  12. October 27, 2010 at 1:42 pm | Permalink

    HELP my infinimer doesnt even load … it crashes before start (program is not ansvering) i tried disable sounds but nothing 🙁

  13. Milo's Gravatar Milo
    October 27, 2010 at 1:43 pm | Permalink

    aswell XNA 3.0 throws error 2098 🙁 (in instalation)

  14. October 27, 2010 at 8:51 pm | Permalink

    Well, since the program depends on XNA 3.0, and XNA didn’t install right (evidenced by the error during installation), you probably need to reinstall XNA. If it keeps throwing the error during the install, try copy/pasting the error message into Google and seeing what you can find.