#In which matgabriel actually was wrong and everything everyone else said to do was correct after all
1 messages · Page 1 of 1 (latest)
oh cool
I assume that you are calling it to wrong component, like component on a prefab
RequestCountDownSimple is being called on a ClockManager before its Awake method
To see that we need to know how are you calling RequestCountDownSimple
Here#s the pastebin
enclosed class this time
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Whether or not a different ClockManager has had awake called is not relevant
so what's the verdict here
Okay and using this code changes anything
Or the result is same
In Awake, after setting minutes:
Debug.Log($"{gameObject.name}'s Awake method has set the length of minutes to {minutes.Length}",this);
In TMPUpdate, as the first line of the function:
Debug.Log($"{gameObject.name}'s TMPUpdate method wants to use a Minutes array of length {minutes.Length}",this);
Put those in there, make sure to keep the ,this. Show me a screenshot of your console with the error and these logs visible, but don't stop playing or clear the console.
With all due respect that's a waste of time Debug.Log(array.Length) confirms that the array exists and has length X
the code works as intended in the encapsulated isolated class
Stop
Do as I say if you want your problem solved
Or just fuck all the way off and leave the server
however when called from another class the arrays go null, I have no way of cleanly showing the code of the class that calls it, it's too complex and convoluted
but it's a point of attack at least
I am not going to humor you. Post what I asked or leave the thread. I will not continue otherwise.
The waste of time is you
So it is relevant that Where you call RequestCountDownSimple
I would suggest not making assumptions about debugging methods
I don't understand why it would be, makes no sense whatsoever
Listen buddy, I know way the hell more than you do and I am trying to solve your problem. Do what I say
The time of the call being relevant I can understand, I can check that with a debug.log
but from where it's called should not be of any relevance
If you want help, follow directions instead of arguing, otherwise you're just wasting your time and ours
Every assumption you have made has been wrong. I cannot trust any of the information you provide. So put in the logs and show me, because I can believe Unity
So stop acting like you know better than us and do what requires to fix the issue.
I cannot show you my 5 million line class that calls the method. I'd be copy pasting until tomorrow morning
We could have had this solved half an hour ago if you just did what I asked
Show.
The
Console
I can tell you that the time of the call is clear, the value passed is clear, and the method is only called once
This does not require five million lines
I honest to God do not believe so lol
Digi literally told you what to show holy shit
And I honest to god know more than you do. Follow my instructions.
I am doing it now
I appreciate you taking the time even though you wish me to hell already lol
You've lost the rights to courtesy. Show me the logs I asked for. Follow all the instructions. Keep the game running and don't clear the console
I admire your tenacity digi I'm just here to 🍿
I will have a work meeting within the next 20 minutes or so, so let's try to solve this quick
Called it
Oh look! You're referencing prefab 😄
What the hell I said
And if you had told us where the fucking function was called we would have seen that
so it was relevant
okay so blabla I'm a retard, yes I know
the issue is I am referencing a prefab ?
and we do know more than you
I never claimed otherwise
It's not. The call sight has the reference towards prefab
It demonstrably is not
Well that's splitting hairs
It is, in fact, your exact problem
the issue was the reference pointed at a prefab
No, it literally is the exact issue
GameObject g = Resources.Load("EndlessCanvasUIModule") as GameObject;
GameObject gg = Instantiate(g, transform.position, transform.rotation);
gg.transform.parent = transform;
gg.transform.localPosition = Vector3.zero;
clock = gg.GetComponent<ClockManager>();
this is how I created my clock manager
You are calling RequestCountDownSimple on a prefab. If you had answered the fucking question when it was asked, we would have seen that
but I had g.GetComponent<ClockManager>(); in the last line instead of gg.
So the class you are doing that is problem like we said
If I had known this I would not have had this whole issue lmao
The problem is not that you are a retard, it's that you are just extremely obnoxious and unhelpful when receiving help from people who spend their spare time assisting people in this way. Can you really not see how this is the case?
Well the issue has to be SOMEWHERE
How am I obnoxious?? I get insulted here nonstop lmao
Why refuse to investigate further into the code?
Because you're an asshole
Okay, so I will take that as the answer to my question at the end.
You just can't see how it's obnoxious
I think I know better 'too'. Just like you guys
And we would have noticed it if you got your head removed from your own anus and answered the question
that doesn't make me bad, makes me just the same as you guys.
Reflect on that maybe.
I'm not throwing insults around
In which matgabriel actually was wrong and everything everyone else said to do was correct after all
There are programmers here with TONS of experience debugging issues like this. All they want is to get to the root of the problem, but you fight it every step of the way. It's like calling a mechanic, but then when he tells you to open the hood, you lock it shut for like 30 minutes and refuse to let him look inside.
It's just a waste of everybody's time.
well I guess it's true that his debug line found the issue
Including your own
Yes. Because I am much, much better at this than you are.
You should listen when people who are better at this give you advice
yeah, you've proven that
I didn't know that before hand though!
I was operating under the same assumption that I know better that you were
I will still give two cents. Always name your prefab postfixed with prefab so you won't do this again.
only in hindsight can I know you actually did know better
Well that's the wrong way to receive help in my humble opinion.
good advice
You can generally assume anyone willing to help you with any problem probably knows more about it, or they wouldn't have offered help
Why call for a mechanic to diagnose your car if you will just assume you know more than the mechanic?
probably true
well thank you
I know you think I'm an obnoxious asshole and retard yada yada but I appreciate you taking the time lol
I will solve other people's problems even if I have to drag them kicking and screaming to them
Jesus, that's a lot of messages...