Purple Screen

I reproduced it. Thanks for all the tips. I now see the reason why this is happening and will fix it for Alpha 1.11.

Until then please make sure that:

  • The texture pack image has power-of-2 width and height (128, 256, 512, 1024 etc.)
  • The texture pack is not too large. I’ve seen 1024 working on my phone while 2048 does not, but it depends on how much free memory there is and so may be device dependent. Default texture pack is 256×256.
  • The texturepack file name is not too long (up to 16 characters should be safe), and does not contain fancy characters (english letters, digits, underscore are definitely fine)

Otherwise the texture pack may brick the game and require a reinstall until I release a fix in 1.11.

What is happening: during the initialization the game renders all block images later used in the UI. If this process fails (for example because the blocks texture is invalid), due to a mishap on my side the game becomes stuck before the main menu screen appears.

I also want to investigate why the purple screen appears. The screen should just show some rubbish – but it’s purple. This means that purple may be also rendered under UI/game when everything is OK, slowing down the framerate a bit. That would be cool because I could remove it and speed things up for free :-)

Edit: Ok it seems I’m not drawing purple under the game, so no perf gains there. It’s XNA clearing backbuffer to purple if nothing was drawn on it to avoid garbage on screen.

20 Comments

  1. survivaler
    Posted April 20, 2012 at 17:24 | Permalink | Reply

    This was a big problem for alot of people!

    • survivaler
      Posted April 20, 2012 at 17:25 | Permalink | Reply

      someone posted about it in the forum

  2. Posted April 20, 2012 at 17:54 | Permalink | Reply

    I was Googling about this before, I came across this:

    “A purple color denotes that a render target’s contents have been cleared by the XNA framework automatically for you. You can stop it from clearing the contents by using RenderTargetUsage.PreserveContents in the constructor of the RenderTarget2D.”

    This was in regard to a different app/game but seemed like it might be related.

    • survivaler
      Posted April 20, 2012 at 18:00 | Permalink | Reply

      Instantdiocy is no idiot

  3. the Masteriii
    Posted April 20, 2012 at 18:11 | Permalink | Reply

    Ok what is if I already have the purple sceen? will the bugfix make it go away or will I have to reinstall game and it just wouldn’t happen a second time ?

    • Posted April 20, 2012 at 18:32 | Permalink | Reply

      It will go away.

      • Posted April 20, 2012 at 19:54 | Permalink | Reply

        That’s cool =)

      • the Masteriii
        Posted April 20, 2012 at 22:31 | Permalink | Reply

        Ah :D Thank you so much! I knew you would do it :D good thing that I haven’t reinstalled the game yet, so I won’t lose any data if that works :)

  4. survivaler
    Posted April 20, 2012 at 20:25 | Permalink | Reply

    Now we got animals I think we should get more weapons

  5. xX70 FEAR 70Xx
    Posted April 20, 2012 at 21:27 | Permalink | Reply

    Kaalus there is a problem with the animals. Like after a certain period with out you around they will disappear to somewhere. So if you can please fix that for aphla 11.1. thank you

  6. xX70 FEAR 70Xx
    Posted April 20, 2012 at 21:27 | Permalink | Reply

    Kaalus there is a problem with the animals. Like after a certain period with out you around they will disappear to somewhere. So if you can please fix that for aphla 11.1. thank you

    • the Masteriii
      Posted April 20, 2012 at 22:35 | Permalink | Reply

      I think that happens if you are further away from the animal. That happens because the game renders the animals again when you come back and doesn’t keep the old positions of them in mind. In fact because of this it is now impossible to have a pet, but kaalus already said he’ll do something to make it possible that animals doesn’t disappear anymore(at least a few as pets… there will probably have to be a limit because the phone shouldn’t break down)

  7. CATZ RULE
    Posted April 21, 2012 at 03:30 | Permalink | Reply

    You people are insane! you worry about making texture packs while some people (including me) Cant even figure out how to download them. or make it work. can you please add cats, saplings, make the leaves go away when all the wood is gone, get wheat seeds from tall grass and other animals.

    • Posted April 21, 2012 at 15:40 | Permalink | Reply

      The leaves already go away after all the wood is gone. Downloading texture packs is easy, you just download them from the forum, I agree on the seeds and saplings though.. not particularly cats though.

    • Tanner
      Posted April 21, 2012 at 17:43 | Permalink | Reply

      Good idea on the tree I hate mining all the leaves…

  8. survivaler
    Posted April 21, 2012 at 06:14 | Permalink | Reply

    This is a feature that will be useful but easy to make. Sometimes when I break stuff and I go to collect to them in creative they don’t go into my inventory even if it empty. So my request is to let the items,in creative,to enter your inventory

    • Posted April 21, 2012 at 10:04 | Permalink | Reply

      In creative you already have all items so what’s the point? They would just clutter your 4 slots.

  9. Tanner
    Posted April 21, 2012 at 07:26 | Permalink | Reply

    Lol kaalus said it may (brick) the game… Lol I did that before…

  10. bilpocalypse
    Posted April 24, 2012 at 08:00 | Permalink | Reply

    It is device dependent. I can run 2048 x 2048 on my phone with few issues. Have even run 4096 x 4096, but as soon as i get a text or call the 4096 will purple screen. I generally use 1024 though, as it runs glitch free for the most part.

  11. kc
    Posted November 22, 2012 at 19:34 | Permalink | Reply

    Remove the dogs.

Leave a Reply. No swearing please.

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s