#No Speed variable
1 messages · Page 1 of 1 (latest)
@gray niche here
I've already created a thread what's this for?
So we don't have to see your nonsense in the main channel. If you want to go around wasting people's time, you can do it here out of sight.
To try to get you to provide basic information related to your issue so that it can be resolved
Have fun
Get to my previous thread, much information is there plus with CarController script fully through the link!
Wasn't needed to create another thread.
What
is
the
error
Answer
When you have an error, and you announce that to a discord channel you can't just never provide information about it, never provide the code that causes it, and just go on rambling about other parts of your intentions
just provide the context
@gray niche Don't ping me into another thread that also doesn't have the information I asked for
Just look at your fucking console and tell me what the error is
It'll, just get there, because I'll continue that thread.
Brone. Please stop being difficult. Understand that people want to help
They're asking to see the error in the console
brone how hard is it to say a line number? you know what numbers are?
Can you please show a screenshot of the error in unity?
Just wait, I'm trying to send it.
shouldn't take a half hour of 8 people begging to help you
Yeah.
is this a power play
Don't goad them any further @autumn zephyr
My pc was turned off cause no charge, now just launched it ..
Okay, we'll wait. When it's done, just take a screenshot of the error in the unity console
Then we can see which line the error actually is
Then we can point out which line in your script has the issue
That's all Digi has been asking for. I understand you're frustrated, but so is everyone else
So let's just restart first. Like your PC :p
Yeah, I'm sorry. Beginner problems...
Also this nonsense of asking questions when you're not actively available to use the program is unacceptable. This is the third time I've seen you admit to it.
Next one you're getting moderated for it. It's wasting time.
Unity's taking too long to launch...
We don't need to hear it
Lol...
an hour ago
if (Speed => 50)
What is this symbol
it's just the speed!
Same solution different line
if (Speed >= 50) is what you actually want
The speed is =>?
let me check!
That will only solve one of the errors
The comparison symbols read as you would speak them. "Greater than or equals to". Not "Equals or greater than". => in C# means a bunch of other things
changed them and they're not fixed!
Your other issues are as digi says, you can't just mention speed and expect it to know about the car controller
I was asking for attaching the script!
you have to reference the car controller and refer to it
I answered this one already
Look...
carController.Speed
I want the whole script...
It's an object, not script.
Go fuck yourself
It shouldn't be hard to understand where that goes, your errors should be underlined in red
Digi, if you want to behave like this, leave the thread.
So, you were saying to me wasting time, I gave you the error, the script. Didn't you help?
It's been days
I answered you
Good, you don't have to participate either
you don't want to use this.Speed
You want to use the speed from car controller
as Vertx has also told you
If it's not obvious where these problems are, then I'm concerned your IDE is not configured, as it should be all clearly underlined in red
Yet not fixed!
I
#854851968446365696 configure your IDE.
what
How?
what universe are you in that I say "Don't use this.Speed" and your solution is to add this.Speed
your followplayer script doesn't have a definition for Speed
so this.speed is a compilation error
Pointless to continue without a working IDE
I'm using Visual Studio with installed package of C#
it's not configured
Cool, you need to configure it
#854851968446365696 has a step by step tutorial for it
just follow it
skip the parts you've done, do the parts you haven't
Just made two changes! External edito, attached to Unity!
okay and now is your code lit up with red unerlines
Speed yet not fixed!
Is it underlined in red though
okay but is it showing as an error
it wasn't supposed to fix your error, rather simply allow you to see it
No!
then you aren't done go configure it
Yeah!
Did you manually install VS? Or add it via the hub
Manually downloaded and also with the package of Unity selected through it!
It's not! Said above...
you also said "yeah!" when he asked if it was showing as an error
(which means red underlined)
okay then why did you immediately contradict yourself and tell me it was
.
Ok, close VS, in the External Tools preferences of Unity, hit Regenerate Project Files, and then re-open VS via Assets/Open C# Project
and hopefully it'll work
This will take so long again to launch...
it's not really negotiable if you want to get it to work
Re-launching...
make sure "external script editor" is set to visual studio -> press "regenerate project files"
under edit -> preferences
did you regenerate the project files before re launching?
and confirm that your ide is set as the external editor
My default settings...
kk. so yes you pressed the regenerate button?
As long as the Unity workload was added when VS was installed, it should start working now
In progress...
buuuut you said you were re-launching
If not, Window/Package Manager, and see if there's an update to the Visual Studio Editor package
I got this msg!
that's fine
Aha!
Visual studio gave me a msg said there were build errors. Alsed for restart and fix so I clicked yes!
Now there are underlines of Speed!
Okay good. Now, going back to the part where multiple people answered you, when you type Speed, you are actually doing this.Speed. You don't want this's speed, you want your carController's
Yeah, have to attach them!
we're talking about the code, the code needs to refer to the speed on the car controller
It is in the car control!
I'm out I can't deal with this shit again
I think you're to the wrong direction again! My goal is just to get the Speed from CarController into followPlayer!
🤦♂️
That's literally what I just answered
this.speed refers to the speed on THIS object, which is not a car controller
and speed doesn't exist on that script
It not applied right now!
what does that mean
You sure?
i feel like you're gaslighting me into being less sure
but every time i looked at it, that was the case
It's simple, you have followPlayer, it doesn't have a Speed variable
that's your carcontroller script, not your followplayer script
look at that script, the script with the error
Oh god! Again ...
in followplayer.cs, THIS means THIS INSTANCE of followplayer
where is Speed? It's on CarController. Where is that? You have a reference to it in carController
followplayer doesn't have a speed
refer to the speed on carController.
I already know that followPlayer doesn't have Speed variable, I'm trying to get Speed from CarController. That's all.
Just attach the scripts and it'll work normally.
These errors won't work until the attachment works!
We all know what you want, you're just not listening
this.speed is NONSENSE
Every single person here has told you exactly how to do this but you're too goddamn thick to read any of it
you can't do that
you ahve to stop doing that
you have to eliminate that code
you have to write it differently
(I can't stay away it's like a train wreck)
your attempt to get speed is nonsense, you need to get it from where it exists.
I just said this is not applied! Changed it to what it was!
WHAT THE FUCK DOES THAT MEAN
"Applied" is meaningless, this is code
it's not applied?
there is no applying
Alright....
If it doesn't work at whatever the way we try, then why keep it!
I'm half tempted to overrule the English only rule and let someone translate to whatever native language this person speaks.
Because half the things they say are clearly just lost in translation.
How many times should I say, this is changed already.
"this" means followplayer. you want carcontroller
to what
Same as previous
Speed >= 50
so did you just ignore the now dozens of times you've been told what to put instead
if it's the same as previous
you did'nt change it my dude
that's the opposite of changed
this.speed and speed are the same value
Just look at line 23 of FollowPlayer, no other line.
FollowPlayer doesn't declare Speed. Trying to access Speed is therefore an error.
So where do we get Speed from? CarController.
Where in FollowPlayer does a car controller exist? carController.
On line 23, access carController to get Speed. carController.Speed
you're referencing the speed variable on followplayer WHICH DOESN'T EXIST