Learn how to make an isometric survival shooter game with this project from Unite training day 2014.
Known Issues:
Please turn “annotations” on, as we try to annotate these videos if any issues are found. Many people turn annotations off, and miss these comments.
Unity 5: NavMesh needs to be baked with a different step height.
A step height of 0.35 should be used.
For the various animation controllers, when setting up the transitions, you need to uncheck the box for “Has Exit Time” in each transition. If you do not, you run into problems like the remainder of the Idle animation playing before the Move animation starts. [@Socrates]
Additional issue that a number of people have run into: For the various animation controllers, when setting up the transitions, you need to uncheck the box for “Has Exit Time” in each transition. If you do not, you run into problems like the remainder of the Idle animation playing before the Move animation starts.
I’m on Step 2 of the Sharp Shooter tutorial and noticed the Environment prefab is not being loaded correctly. This is a fresh download of the Survival Shooter, and I placed it into a new project (I previously did this same project in unity 4, but now getting errors so I decided to start over…it’s a long story).
Also, MonoDevelop’s autocomplete is not working properly as well. Vector1, Vector2, or Vector3 is not loading properly. Nor are any of the transform methods.
I had to change the shader on the floor from an Legacy shader to a current one. This really helped make it look better. I was also getting some visual artifacts in the build with the Legacy shader.
If you’re getting errors on the environment, what are they?
The black artifacts are most likely bad lightmap data. In Unity 5, Enlighten will try and automatically bake anything marked static, like our environment here. Currently these meshes don’t all have valid Lightmap UVs for Enlighten to bake to as the project wasn’t initially intended for baking, so you get these weird black areas of overlaps and repeats.
If you go to the project’s models folder, select each environment and prop mesh and tick Generate Lightmap UV’s in the asset’s Inpsector Model tab, wait for Unity to create some valid UV’s, then let Enlighten rebake, then you shouldn’t see these weird errors anymore (hopefully!)
:)Another problem?
First image from video tutorial on Unity 4.6 secound on my Unity 5 project
i don’t have inaccuracy % so what to do insted changing it?
When reading errors, the details can be broken down into:
The path to the item causing the error:
Assets/Scripts/Player/PlayerMovement.cs
The line number in the script (if we are pointing to a script), in this case, line 44:
(44,17)
The error number:
error CS1525
The error description:
Unexpected symbol `{’
So, if you go to your script and look at line 44, you’ll see a “{” that the compiler feels is out of place.
The trick here is trying to find out why this apparently valid closed brace is out of place.
If the compiler hits a brace that it’s not expecting, and you feel it’s correct, then back up a few steps! The compiler has tripped up and fallen down on that brace. What it’s expecting is the second close parentheses that is missing from line 43!
if(Physics.Raycast(camRay, out floorHit, camRayLenght, floorMask)
… should be:
if(Physics.Raycast(camRay, out floorHit, camRayLenght, floorMask))
Note the two opening parentheses: After the “if” and after the “Raycast”. These both need to be closed.
There is a phenomenon that I like to call a “cascade of errors”. Once one error has been detected and one piece is out of place, the compiler will get confused and it can find other issues that may or may not be legitimate after the first error.
At quick glance this error looks like the compiler was confused by the previous error:
The final error is simply saying “I’ve reached the end and things are not correct. I didn’t read everything correctly, and the script is now done. Help!”:
Survival Shooter Tutorial - 4 of 10 - Adding Enemy one - Unity Official Tutorials (new)
Hi, at 12:24 minute i’ve a GUI different from the one used in tutorial, how do i apply same values in my unity 5 version, check the images attached
tut_img is a printscreen from the video tutorial.
my_img is a printscreen from my unity 5 window
for example i dont have the field “With Inaccuracy”…
"I am also new and currently working on this but I started it out on unity 5. Based on the change log in unity 5. “NavMesh bake settings: Removed width/height inaccuracy and allow to set voxel size instead.”
With that I tried enabling Manual Voxel Size and set Voxel size to 0.25 which is the default then it baked properly and runs with no error. Zombunny is following the player."
Hello!
It seems that I’ve done everything as explained in the second video,
except in the state machine “entry”, and “exit” thing.(cause they didn’t have it in 4.6) but I think I got it to work,
because when I hit play I can see the progress bars in the state machine go on and on,
the transitions work as well!
but in the game view - the animations aren’t playing. its just a little sleepy survivor… stuck there…
(just to point out - the character moves and rotates perfectly… again - its just the animations).
i’m overcame by technology once more.
Any suggestions?
i’m sorry for asking too many questions but… something weird happend after i finished chapter 6 and everything worked fine the backgroung and the scene setting… disappeared… sort of…
yes to everything, BUT!
I decided to redo this tutorial, this time I remembered something that I did, I saved the first code before the instructor said to do so, and when the thing asked me if I wanna convert the line endings or keep them, I chose to keep them (not smart of me.)
THIS TIME I pressed “Convert”, Now everything works. (after I unchecked “Has exit time” in the transitions in the state machine.)
If you are using MonoDevelop, there is a setting to make them convert automatically. It not only avoids this issue, it avoids all those annoying pop-ups asking if you want to convert.
Tools → Options
Scroll down to Text Editor → General
Set “Line ending conversion” to “Always convert line endings”.
If you are using Visual Studio, I’d expect it to have a similar setting, though I don’t use the software and so do not know where it is.