GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Broken GS File

POLYGAMePOLYGAMe Posts: 3,470Member
edited 6:41AM in Tech Support
I thought it would never happen to me... but it did.

I had two attributes, one a boolen named PlayerDead and one, an integer named Life. I have no idea why I did it as I should have just been using the Life integer to control whether or not the ship is dead. Anyway, I went through and removed all instances of PlayerDead and set everything up to look for Life instead. When I ran the game... black screen of death... actors not spawning, dying, yada yada.

Luckily, I back up a lot so I haven't lost anything.

My question is this. I really want to optimise the code... is GS going to do this every time I go through and remove stuff? Really annoying as leaving it in there is just plain messy...

Comments

  • chosenonestudioschosenonestudios Posts: 1,714Member
    make sure theres no missing attribute or anything... Your games not broken.. It just cant run with missing attributes
  • POLYGAMePOLYGAMe Posts: 3,470Member
    Hmm, I'm fairly certain I got em all. Thanks though, I'll have another look through :)
  • firemaplegamesfiremaplegames Posts: 3,206Member
    Yes, the black screen is caused by a syntax error.

    Sometimes an extra/missing parenthesis, but usually a 'dangling' Attribute...

    Look at all of your Rules for 'self' and 'game' with no Attribute attached.

    Check the 'otherwise' sections as well.
  • POLYGAMePOLYGAMe Posts: 3,470Member
    Found em all... some were hiding as I'd edited the actors attributes within the viewer, not the prototypes. All sorted :)
This discussion has been closed.