- Home /
I got a major question
Im getting these errors. I need help, i've tried the other helps but i cant understand them. I need someone to pretty much talk to me like im 3 so i can understand this. Reading these huge pages with technical terms with loops and circles on what to do are confusing me. So if anyone can just give me a straight forward answer that would be SO VERY HELPFUL. Heres some of the errors:
Assets/Scripts/enemies/turret/Turret.js(263,28): BCE0019: 'GenerateDecal' is not a member of 'Turret'.
Assets/Scripts/weapons/Gun.js(411,43): BCE0005: Unknown identifier: 'HitType'.
They are errors like that.
You don't seem to be a coder, so I'm gonna guess you're trying to run some game you downloaded the source of. So either you're missing some files, or some files are of an old version, or the source as a whole didn't compile before you downloaded it. Best point to start for you, is the original source you downloaded and see if you can run that.
im trying to use unity to make a game, im getting those errors. and im not used to these codes, i just got unity and im trying to learn it. But im trying to test my game, and it says i have to fix the errors before i can do it. but idk how to fix it. I know about the red dot at the bottom left, you double click that etc.. idk what to put to fix it. i've been looking into it on this site and there are answer, but i cant understand them. thats what im asking. Something a 4yo can understand.
If you could paste some code in your question (edit it), it might help, but stijn is probably correct, you've probably got corrupt or incomplete file, or old ones. Or ones that never were tested.
Im slowly getting used to this. But, I deleted all my assets from the unity project tab, and added one at a time. The first thing i imported was terrains. It got errors. They say "terrain splat 1 is null" "terrain splat 0 is null" "a tree couldn't be loaded because a prefab is missing".
and thanks for all your help everyone
and if i do have corrupt/incomplete/old files, how do i fix it?
Answer by cidmodder · Mar 07, 2011 at 04:32 PM
it's hard to say without any code but usually I get those errors when I haven't definded them properly. "HitType" was probably a variable in an example script? You just don't have anything in the script that is HitType. You'll need something like HitType= whatever you want.
For the Turret I'm not really sure without seeing some code.
Your answer
Follow this Question
Related Questions
I have an error while building the game 1 Answer
jumping error!? 4 Answers
Script won't run level (platformer tutorial) 1 Answer
rigidbody' is not a member of 'UnityEngine.Object ? 4 Answers