T
Tribow
Guest
Here's how the bug basically goes. I play my game for about 10 to 30 minutes and I get an error that reads as;
"<unknown object>.pcolor(100060,-2819230827) not set before reading it."
Yet, every time this error has been thrown, this has never been the case. It doesn't matter which variable throws the error, every time I go and check the Create Event of the object that has the variable the variable is always set beforehand. It's never the same variable that throws the error. It seems to be a different variable from a different object almost every time I see this error message.
Sometimes the error message doesn't same "<unknown object>" and tells me exactly which object it is, but the issue stays the same.
Some variables throw this error more than others, but the problem doesn't seem to stem from how my code is structured. Something as simple as checking if a variable is true or false in the step event can throw this error.
From what I understand, the variable is becoming null for some reason. I just can't figure out why it is happening. Even the debugger hasn't been able to show me, even when I miraculously caught the bug red-handed the debugger only told me that the variable did indeed no longer exist.
I've tried many solutions:
-In the step event of every single object, I wrapped the code into an if statements that checks if the object itself exists before running its own step event. This was because some objects could be destroyed the moment they were created. This did not work.
-I reduced the number of instances on screen since there tends to be a lot. Maybe I had too much information going on in my game. This did not work.
-I took out the particle effects as there tends to be a lot of particles in my game. This did not work.
-I deleted every single object and replaced it with new objects with very similar code. Perhaps there was something wrong with the object itself. This did not work.
-I didn't use every object that threw the error, but this only led to a game that doesn't even function, so it didn't matter whether or not that worked.
I want to avoid resetting the entire project and coding it from scratch. I don't know if there's some corruption going on in the files, but considering I deleted every object and replaced it with new objects, that corruption would be gone if there was any (I think).
I really need help though, I simply cannot figure this out.
"<unknown object>.pcolor(100060,-2819230827) not set before reading it."
Yet, every time this error has been thrown, this has never been the case. It doesn't matter which variable throws the error, every time I go and check the Create Event of the object that has the variable the variable is always set beforehand. It's never the same variable that throws the error. It seems to be a different variable from a different object almost every time I see this error message.
Sometimes the error message doesn't same "<unknown object>" and tells me exactly which object it is, but the issue stays the same.
Some variables throw this error more than others, but the problem doesn't seem to stem from how my code is structured. Something as simple as checking if a variable is true or false in the step event can throw this error.
From what I understand, the variable is becoming null for some reason. I just can't figure out why it is happening. Even the debugger hasn't been able to show me, even when I miraculously caught the bug red-handed the debugger only told me that the variable did indeed no longer exist.
I've tried many solutions:
-In the step event of every single object, I wrapped the code into an if statements that checks if the object itself exists before running its own step event. This was because some objects could be destroyed the moment they were created. This did not work.
-I reduced the number of instances on screen since there tends to be a lot. Maybe I had too much information going on in my game. This did not work.
-I took out the particle effects as there tends to be a lot of particles in my game. This did not work.
-I deleted every single object and replaced it with new objects with very similar code. Perhaps there was something wrong with the object itself. This did not work.
-I didn't use every object that threw the error, but this only led to a game that doesn't even function, so it didn't matter whether or not that worked.
I want to avoid resetting the entire project and coding it from scratch. I don't know if there's some corruption going on in the files, but considering I deleted every object and replaced it with new objects, that corruption would be gone if there was any (I think).
I really need help though, I simply cannot figure this out.