Simple Mod Tutorial - Part Two
Posted: 25 Feb 2009, 20:28
There's three (3) essential parts to create a new unit.
1) Modeling/Texturing: this includes getting a simple object and giving it features. Once you have your object and you want to texture it look at this tutorial. Once you're finished with that part move along to this tutorial. They're both very good tutorials and not outdated so there's no excuse there. *Your finished myunit.s3o should go into your "Objects3d" folder of your mod*
*Do NOT go on to step 2 if you have not completed step 1*
2) FBI & Tags: this part is where you define your unit and tell it what it CAN do. I won't go over all of the tags because there is a beautiful document with those already here for us (http://spring.clan-sy.com/wiki/Units:FBI). All of these tags are very thoroughly explained. *If your model is a .s3o file your objectName tag should look like this: objectName=myunit.s3o* If you're a complete noob and you did not understand what an FBI is then read along, otherwise you may move on to step 3. An FBI is just a simple text (.txt) with an .fbi ending instead of .txt. A simple application like notepad will suffice. So, when you finish your myunit.fbi file you should put it in the "Units" folder of your mod.
3) Coding: this is where players see whether your mod is worth their time. This defines HOW your unit does what it does. You will need Scriptor. There's one thing you MUST check before compiling any script. When you open Scriptor select the menu "Script," and click "Settings." Once there, make sure your Linear constant is set to 65536.000000 and your Angular constant is set to 182.000000. Since most of what the newbie "modders" are doing nowadays is making a blob that shoots a laser or a projectile I took the liberty to go ahead and comment the Arm Stumpy script from BA 6.31 here. Once you are done with your script you may go ahead and compile it. Make sure it's saved to the "Scripts" folder of your mod.
*The model, fbi, and script names MUST all be the same!!!*
Now that I have my unit, how can I use it in game? This is the easiest part.
1) First, you must define it in the Armor file. Just open the Armor text file and add your unit where it first best. Eg: A level 2 plane fighter should go under the [L2FIGHTERS] group. All you need to do is type the model's name and an armor value (always 99?). So we can go ahead and type in myunit = 99; *Do NOT forget to put a semilcolon (;)!*
2) Unless your new unit is the Commander, you want a factory or another unit to be able to build this unit. For this, we go into the SIDEDATE.TDF file inside the "gamedate" folder of your mod. You can open and edit this file with Notepad or a similar application. So lets say I just made a unit for the Core faction and I want my Commander to be able to build it. I will go under the group [CORECOM] and add my unit in there. The easiest thing to do is to add it to the end of the line, that was we don't have to retype numbers. So now (using BA 6.31) your [CORECOM] group should have a new canbuild26=myunit; Once you are done with this you may save it and close all that.
Your new unit is now complete and ready to be tested. If you want to share this exciting new addition with your buddies you should compile the mod. How to do this? I've found that the most compatible format for testing is .sdz, which is just a simple Zip file. So, open your Mod folder and put everything in it into a new Zip file. Once you have all the folders in the Zip file you should rename it so it reads "MyMod.sdz" instead of "MyMod.zip."
You are now ready to share this with your friends and play with your new laser-shooting blob.
I hope this helps all of you beginners. If you have any more questions you may post them here.
1) Modeling/Texturing: this includes getting a simple object and giving it features. Once you have your object and you want to texture it look at this tutorial. Once you're finished with that part move along to this tutorial. They're both very good tutorials and not outdated so there's no excuse there. *Your finished myunit.s3o should go into your "Objects3d" folder of your mod*
*Do NOT go on to step 2 if you have not completed step 1*
2) FBI & Tags: this part is where you define your unit and tell it what it CAN do. I won't go over all of the tags because there is a beautiful document with those already here for us (http://spring.clan-sy.com/wiki/Units:FBI). All of these tags are very thoroughly explained. *If your model is a .s3o file your objectName tag should look like this: objectName=myunit.s3o* If you're a complete noob and you did not understand what an FBI is then read along, otherwise you may move on to step 3. An FBI is just a simple text (.txt) with an .fbi ending instead of .txt. A simple application like notepad will suffice. So, when you finish your myunit.fbi file you should put it in the "Units" folder of your mod.
3) Coding: this is where players see whether your mod is worth their time. This defines HOW your unit does what it does. You will need Scriptor. There's one thing you MUST check before compiling any script. When you open Scriptor select the menu "Script," and click "Settings." Once there, make sure your Linear constant is set to 65536.000000 and your Angular constant is set to 182.000000. Since most of what the newbie "modders" are doing nowadays is making a blob that shoots a laser or a projectile I took the liberty to go ahead and comment the Arm Stumpy script from BA 6.31 here. Once you are done with your script you may go ahead and compile it. Make sure it's saved to the "Scripts" folder of your mod.
*The model, fbi, and script names MUST all be the same!!!*
Now that I have my unit, how can I use it in game? This is the easiest part.
1) First, you must define it in the Armor file. Just open the Armor text file and add your unit where it first best. Eg: A level 2 plane fighter should go under the [L2FIGHTERS] group. All you need to do is type the model's name and an armor value (always 99?). So we can go ahead and type in myunit = 99; *Do NOT forget to put a semilcolon (;)!*
2) Unless your new unit is the Commander, you want a factory or another unit to be able to build this unit. For this, we go into the SIDEDATE.TDF file inside the "gamedate" folder of your mod. You can open and edit this file with Notepad or a similar application. So lets say I just made a unit for the Core faction and I want my Commander to be able to build it. I will go under the group [CORECOM] and add my unit in there. The easiest thing to do is to add it to the end of the line, that was we don't have to retype numbers. So now (using BA 6.31) your [CORECOM] group should have a new canbuild26=myunit; Once you are done with this you may save it and close all that.
Your new unit is now complete and ready to be tested. If you want to share this exciting new addition with your buddies you should compile the mod. How to do this? I've found that the most compatible format for testing is .sdz, which is just a simple Zip file. So, open your Mod folder and put everything in it into a new Zip file. Once you have all the folders in the Zip file you should rename it so it reads "MyMod.sdz" instead of "MyMod.zip."
You are now ready to share this with your friends and play with your new laser-shooting blob.
I hope this helps all of you beginners. If you have any more questions you may post them here.