A super irritating bug!
dieseljesus
Member Posts: 50
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.
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
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?
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.
Skypename: "Ryanshitlipz"
thnx
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left