[Data] [Tutorial] Creating Units, Weapons, and Adding Sound

Blackveiled

Formerly, Ban-Lord
Reaction score
157
This is a more informative version of my tutorial I posted before.


Getting Started
Before we get started with creating the unit, first you should check and make sure your data editor's settings are similar so you go through this guide with ease.
kb2Dlz22.png


What You Will Learn
  • How to create a unit
  • How to create an actor
  • How to associate the actor with a unit
  • How to create shooting animations for your unit
  • How to add sound to your unit
  • How to create a weapon and effect for your unit


Information
This post will be updated later with a library of field values in the data editor for you to work with.

Creating The Unit
To begin the tutorial, you're going to need to open your Data Editor and open the Units data type. Next, click the data dropdown menu (or right click in the data list), and add a new object. The unit for this tutorial will be based off of a Marine.

vNfFbiAO.png


Be sure your fields match the image above, if you wish to choose another unit change the field values setting to whichever unit you would like to base your new unit off of. Hit OK and your new unit will be created.

There is no model or sound information for your unit now, so that will be done in the next step.

Creating The Actor

Open the Actors data type, and now add a new object again.

IrBRQ9UB.png


Be sure your fields match the image above. Hit OK.

Now that you created the actor, you will need to link your actor to your newly created unit. As before, the unit in this tutorial was called UnitTest and it is based off of the Marine.

LAji4gSM.png


Change the field value for the unit name to your newly created unit, and scroll down to Art - Model, and adjust the model to the unit you chose. If you chose the Marine like I did, choose Marine and set it for Art - Model, Art - Model (Build), and Art - Model (Placement).

This is optional, but your unit does not have any sound. So scroll down to Sound - Group Sounds and Sound - Sounds and adjust your unit's sound to the unit you chose just like you did for the model. In this case, I set it to the marine.

cnoutB3Y.png


Now to move on to creating new weapon for your unit!

Creating The Weapon

This part of the tutorial will teach you how to create a weapon and adjust the damage of your weapon. Go to the Weapons data type, add a new object.

G86uz5wc.png


Be sure your field values match the image above.

Next, go to the Effects data type, and add a new object. You can name them the same if you want, it doesnt really matter what any of the objects are named.

BMo5EnPn.png


Be sure your field values match the image above.

Now go to your newly created effect and set the damage for your weapon at the Combat - Amount field value. You can choose any number you wish, and remember all units affiliated with this weapon will deal that much damage.

FE2hQdFr.png


Now we're going to go back to our weapon, so go to the Weapons data type. Go to your weapon you created earlier, and adjust the Effect - Effect field value to your newly created effect. This will change the damage your unit deals. Afterward, change the UI - Damage Display Effect field value to your newly created effect also. This shows the damage your unit deals on the user interface in the game. You can use the image below as a reference.

ne2OizsE.png


Weapon Attack Animations
Your weapon does not have an attack animation, so if your unit fights with their weapon it wont show any shooting even though they are shooting.

Go to the Actors data type, and add a new object. I chose the Marine earlier so I will base the attack animation off of Marine Attack.

mak8ypw.png


Be sure your field values match the image above.

Now we need to change the Attack Effect field value to the weapon we created earlier. My weapon was called WeaponTest, so the linked weapon will be WeaponTest. Afterward, your unit will have shooting animations and will actually look like they are firing their weapon and not moving their gun around. Use the image below as a reference.

TDekb5k.png


The End
That is the end of the tutorial, if you have any questions feel free to ask. I am willing to update this post with more information and add more than just creating a unit. I will probably slowly turn this into an overall unit creation guide in time. Feel free to post feedback and ask questions. Thanks for reading.
 

Tyman2007

Ya Rly >.
Reaction score
74
It's a great tutorial!

But imo should be in the resources section so that it doesn't get overrun by topics requesting assistance.

It singles it out and causes more views / is more accessible.
 

Flare

Stops copies me!
Reaction score
662
I haven't read through the tutorial itself, but one thing I noticed was the colour you use for field names and data types - it's difficult to read them when the colour is quite similar to the background it's on (although, I guess it works fine for people using the Unreal theme :p). I'd suggest either bolding it, or changing it to a colour that's more visible on both themes (if possible), or both.
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
It's a great tutorial!

But imo should be in the resources section so that it doesn't get overrun by topics requesting assistance.

It singles it out and causes more views / is more accessible.

Okay. If a mod sees it, they can move it if they wish.


I haven't read through the tutorial itself, but one thing I noticed was the colour you use for field names and data types - it's difficult to read them when the colour is quite similar to the background it's on (although, I guess it works fine for people using the Unreal theme :p). I'd suggest either bolding it, or changing it to a colour that's more visible on both themes (if possible), or both.

Okay. Adjusted to a new color and bolded. Kinda hard to find a color that looks nice on both a dark and light background. But most people will probably be set to the StarCraft 2 theme when they enter this forum.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top