Jump to content
Sign in to follow this  
xyth

Unity Tutorials for 7D2D Modders

Recommended Posts

I started a series of new video tutorials that will hopefully make it easier for folks to get into using Unity.

 

A18 Version Only :  I will add a link to a A19 version once stable is released.

 

This first video walks you through loading the template tutorial project into your copy of Unity 2018.2.x. I don't cover downloading Unity and installing it as that is covered well by Unity. By the end of tutorial 1 you should have everything loaded that you will need to begin basic modding in Unity. The Unity project template is on my github repo and is preconfigured with the exportbundles script and has all known tags preconfigured. The first video covers downloading and installing that project folder.

 

A18 version: Download it at:https://github.com/7D2D/Templates-and-Utilities

 

At the same location there is a version 2 of the template that adds the new export script that is compatible with Linux and OSx clients, fixing the tag location on the flag so it can be picked up, and changing the shader to show the cutout on the flag. I left the old one as it follows the video exactly but use the new version when you can. Its also built on a slightly newer version of 2018.2 so if you get a popup about a different version just hit continue and it will update the template to whatever version of Unity you have loaded.

 

Video #1: Setting up Unity

 

 

After watching this, there is a short second video on how to make your own flag for the Fun with Flags modlet.

 

Video #2: Making a Flag

 

 

Let me know what you think and if anything isn't clear so far. I will address those at the beginning of tutorial 3.

 

Happy modding!

Edited by xyth (see edit history)

Share this post


Link to post
Share on other sites

I'm trying to get your flags to show on Linux. I have found a bug. I can't git to save my life, so I'll describe it here:

 

Linux's file system is case sensitive. The naming of folders and files is crucial. Your "Items.xml" file should start with a lower-case "i" -- "items.xml"

 

(The file in https://github.com/7D2D/A17Mods/tree/master/FunwithFlags/Config)

 

When that fix is made, the mod loads on Linux.

 

HTH.

Share this post


Link to post
Share on other sites
I'm trying to get your flags to show on Linux. I have found a bug. I can't git to save my life, so I'll describe it here:

 

Linux's file system is case sensitive. The naming of folders and files is crucial. Your "Items.xml" file should start with a lower-case "i" -- "items.xml"

 

(The file in https://github.com/7D2D/A17Mods/tree/master/FunwithFlags/Config)

 

When that fix is made, the mod loads on Linux.

 

HTH.

 

Thanks. I'll fix and try to remember that

Share this post


Link to post
Share on other sites

Thanks for the tutorial.

I've added a flag but I'm unable to pickup or hit the new flag.

 

Edit: Got it working by applying the tag to the pole itself.

Edited by NerdScurvy (see edit history)

Share this post


Link to post
Share on other sites

The tutorial for Unity and the projects are very helpful. Thanks a lot for that.

But what would be important is a description of the tags. It would be important to know when which tag can be used and what effects these tags have. Could you write a short description for the tags in the sample project?

Share this post


Link to post
Share on other sites

Tags are used by the game code as an identifier. Some tags identify entity body parts like E_BP_Head, others identify properties like T_Deco for distant trees or E_Vehicle for vehicle entities. The tag most often used is T_Mesh_B which makes a block interactable. I am not aware of anyone using any tags other than the ones I have listed here but that may change as modders dig deeper into the code to try new things.

Share this post


Link to post
Share on other sites

Added version 2 of the template that:

 

Adds the new export script that is compatible with Linux and OSx clients

Fixes the tag location on the flag so it can be picked up

Changes the shader to show the cutout on the flag.

 

I left the old one as it follows the video exactly but use the new version when you can. It's also built on a slightly newer version of 2018.2 so if you get a popup about a different version just hit continue and it will update the template to whatever version of Unity you have loaded.

Share this post


Link to post
Share on other sites
[ATTACH=CONFIG]27335[/ATTACH]

 

FUN WITH FLAGS! Thanks for tutorials!

 

Amazing work! ♥♥♥♥load of copy-paste... Would you like to share your modlet? :D

Share this post


Link to post
Share on other sites

Where did you get all the tags from? I'm trying to figure out what all I need tag-wise on a new turret I'm making. Completely new to this stuff.

Share this post


Link to post
Share on other sites

We find them but poking around in the game code. You won't need anything but T_Mesh_B for a block like a turret.

Share this post


Link to post
Share on other sites

Use the template that Xyth has provided, it has the tag manager already configured with all the tags.

Share this post


Link to post
Share on other sites
Use the template that Xyth has provided, it has the tag manager already configured with all the tags.

 

 

what file is it in?, the to XythTutorials don't load in any unity.

Share this post


Link to post
Share on other sites
what file is it in?, the to XythTutorials don't load in any unity.

 

You need to go re-read the OP.......

Share this post


Link to post
Share on other sites
@Xyth what unity is used know? and what is the proper entity prefab file billed?

 

Unity 2019.1.14 works well

Share this post


Link to post
Share on other sites

I bleave your Templates-and-Utilities XythTutorialsV2 and 0ne is out dated I get this error when using either one. and theres more of them.

 

C:/Program Files/Unity Projects/2019.1.14f1/XythTutorialsV2/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/FastAction.cs(24,45): error CS1644: Feature `out variable declaration' cannot be used because it is not part of the C# 4.0 language specification

Share this post


Link to post
Share on other sites

That's an invalid version of textmeshpro, which isn't needed.

 

The tutorial project template is now updated for 2019.1

Share this post


Link to post
Share on other sites

It would be nice to see more tutorials for advanced things. For example, I am trying to automate some things related to storage, but I don't know how to script my custom assets to interact with vanilla assets in C#. Not just that, but how to piggyback off of the existing inventory system and extend it further.

 

I haven't been able to find any resources that can point me in the right direction, but your tutorials are the closest thing I have found, just on a basic level.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...