A super irritating bug!

dieseljesusdieseljesus Member Posts: 50
edited November -1 in Working with GS (Mac)
Hello. I have one last idiotic bug.

This is what i have, and what is happening.

I got some help from you guys to do a system where i spawn tokens and give them a unique number.

When press
- Game.TokenCount + 1

spawn actor
- Change attrib: Self.TokenNumber to Game.TokenCount

Hope you know what i mean. For each token, give every token a new number, ok?

But the problem is when i have spawned say 5 of these tokens, and delete them all at once, they are still there even though i reset the token count etc.

* Spawn 5 tokens, they are numbered 1,2,3,4,5.
* Delete them all at once.
* Spawn 5 new tokens, They will be numbered 1,2,3,4,5 but the next token will be named 11,12,13,14 etc.

What i mean is that they are all old tokens, saved in memory. No matter if i reset the self.TokenNumber, TokenCounter etc, i will still get this result.

Also, all tokens have a visible value that i can change. I save this value into the actor. When they are deleted and new ones are spawned, the old values are there and i cant change them. What is happening is that im basically spawning the same actors over and over again.

Anyone got an idea for this? If anyone is up for it, you are welcome to take a look at it.

I appreciate ANY help with this.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Did you try making the value random? Or thats not how you want it, not exactly sure i understand what you want, sorry im running off no sleep :p
  • dieseljesusdieseljesus Member Posts: 50
    Hey guys. I give each token a random number now. Its hard to explain, but here is a few screenshots to show what i mean:

    I spawn 4 tokens. They are given a unique number. In this case 1-4. The counter total are updated.
    http://www.minorempire.se/mtggrimoire/BugSS-A.png

    i Clear every token by pressing my "Delete All" button. When a token is destroyed, that one get the self.tokenNumber set to 0 just to see if its respawned again. If it is respawned again, i will get a number of tokens with number "0".

    I Spawn 4 NEW tokens. The same amout i just destroyed are spawned again with the number 0. The Total Token Counter works, and AFTER all old tokens are spawned again, new Unique Tokens are spawned again. In this picture, you can see the 4 old tokens spawned as 0.
    http://www.minorempire.se/mtggrimoire/BugSS-B.png

    I need empty and reset tokens when i delete them. I cant spawn old tokens again, since that would mean a broken app. One idea was to keep on adding to the TokenCounter and the Self-TokenNumber, like if 1,2,3 is delted, the next one spawned is 4, but its not working. I have been working on this now for almost 2 days and its driving me crazy. Any ideas?
  • dieseljesusdieseljesus Member Posts: 50
    Anyone got a clue to this? :)
  • dieseljesusdieseljesus Member Posts: 50
    To clear some things out (Since most ppl dont seem to know what i mean ;D )

    If i have a few actors. Spawned the same, but modified after spawned. The uniqueness is saved in the self.* attributes.

    When i destroy one of them, and spawn another one. The last one that was modified gets spawned again!

    How can i totaly reset the self values to get a unique one? I HAVE tried to modify attributes to set the self.* to 0 or whatever, but no work.
  • dieseljesusdieseljesus Member Posts: 50
    Thsirtbooth: Ahh, that would be wonderful. Here's my skype. Add me and we can talk there maybe?

    Skypename: "Ryanshitlipz"

    thnx
  • dieseljesusdieseljesus Member Posts: 50
    TshirtBooth: Add me to skype and i can explain there if its ok?!
  • dieseljesusdieseljesus Member Posts: 50
    Bump! Anyone got an idea for this? It cant be an impossible problem to solve? When this bug is sorted, i can work on the final touches and then add it to the app store.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    its a bug with spawned instances that should be fixed in the upcoming release.
  • dieseljesusdieseljesus Member Posts: 50
    Thanks for the reply. Hmmm, so one cant expect a solution to that before that release, or is there a work around? Will it be long before that release? Im just wondering because if i cant solve this problem with the tokens not updating, i cant release the app.
  • dieseljesusdieseljesus Member Posts: 50
    Have been trying to figure out a way around this, and im seriously going to start over in Unity soon. This is doing my head in!
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Work on something else for a few days while you wait for .9 when the bug is fixed.
  • dieseljesusdieseljesus Member Posts: 50
    True, but im seriously tired of this project now. :( I know what you mean, and i probably should, but like i said, im a bit tired of this.
  • alcamiealcamie Member Posts: 53
    CodeMonkey said:
    its a bug with spawned instances that should be fixed in the upcoming release.

    And that release will be?????
  • dieseljesusdieseljesus Member Posts: 50
    Well, if its not fixed in the near future and there is no work around, there is no other option than to do the app in another editor. So i really hope that it will be solved soon.
  • design219design219 Member Posts: 2,273
    This thread title is a potential game idea. Could be all kinds of fun.
  • VoidedSkyVoidedSky Member Posts: 1,095
    Haha yes, it would land in the top ten for sure, i can c it now "Super Irritating Bug" overcomes Doodle Jump! Lol
Sign In or Register to comment.