Concise modding guide?

all the posts about work on 3D models creation should go there
Post Reply
--=Ender=--
Posts: 8
Joined: Fri Dec 25, 2009 7:35 pm

Concise modding guide?

Post by --=Ender=-- » Sun Dec 27, 2009 4:32 am

I've just downloaded wings3d and made my two first models today :D . I'd like to texture, animate, and ultimately add them to TA. However, I don't know what to do beyond making a model... are there any concise step-by-step guides on how to make and add a unit into TA? I've tried to piece this together but the info seems sparse. If anyone could offer links to such sites, I'd hug you I'd be so happy. Anyway, here's a few pics of my first models... keep in mind they are my first and I just got the program today lol :wink: !
Image
Image

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Concise modding guide?

Post by xpoy » Sun Dec 27, 2009 8:58 am

It's very diffrent to other game.

For TA, you should transform modle into 3do, then write scipt for the model. I didn't make sure it's must and ever didnt know how to write.
But babah and zuzuf should know all about this. /:^]

DOT
Posts: 151
Joined: Sat Sep 19, 2009 11:56 am

Re: Concise modding guide?

Post by DOT » Sun Dec 27, 2009 9:47 am

for animating is Scriptor needed

just look on some cob scripts like armstump.cob

it isnt difficulty to learn it


you need to make on piece =
adding all the pieces that you model has for example you model has 2 piece one is piece1 and other is piece2

then you do on piece = piece1, piece2;
this is important otherwise TA*/Spring Will whine

the rest i guess it is self explainable about move and rotate



TA3D has support for s3o As far as i know but it might be buggy and 3dm support TA3D variant

it supports UV Mapping , and more..

3DM is the native TA3D model support as far as i know


making UVMapping is easy or hard it depends of you complexity of your model higher complexity = more difficulty


by the way your models isn't that bad for a bloody novice

they are good

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Concise modding guide?

Post by zuzuf » Sun Dec 27, 2009 12:44 pm

You may want to have a look at this:
http://downloads.ta3d.org/misc/tadesign%20guide/
=>;-D Penguin Powered

--=Ender=--
Posts: 8
Joined: Fri Dec 25, 2009 7:35 pm

Re: Concise modding guide?

Post by --=Ender=-- » Sun Dec 27, 2009 2:37 pm

Thanks for all the replies :D ! I'll have to take a better look at that link!

--=Ender=--
Posts: 8
Joined: Fri Dec 25, 2009 7:35 pm

Re: Concise modding guide?

Post by --=Ender=-- » Wed Dec 30, 2009 10:49 pm

Now that I've learned the basics of how to create a 3d model and texture it, I was hoping someone could point me to some tutorials on how to write a script for my creations. I haven't the foggiest clue as to where I should start :| . If anyone could provide any feed back, that would be awesome! As proof that peoples comments and advice are not wasted, here is my first simple but complete model of a Borg cube! Thanks again to all that have already posted :D
Image

made the texture in MS paint lol :lol: And here's a more complex model of a warship in-the-works:

Image

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Concise modding guide?

Post by zuzuf » Wed Dec 30, 2009 10:59 pm

looks nice :).

The link I have previously posted also points to a interesting document concerning BOS files (click the BOS link on the left) which describes everything you need to know to understand how it works (which script functions should be implemented and what they do, and almost everything about TA's BOS scripting language).

If you want to make a TA3D Lua script you should have a look at the list of Lua function available: http://trac.ta3d.org/browser/trunk/docs ... otypes.txt.

For both OTA and TA3D scripting I recommend looking at some unit script files, they are quite interesting :).
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Concise modding guide?

Post by Balthazar » Thu Dec 31, 2009 9:22 am

Conserning TA scripting - look here http://tauniverse.com/forum/showthread.php?t=39038

DOT
Posts: 151
Joined: Sat Sep 19, 2009 11:56 am

Re: Concise modding guide?

Post by DOT » Thu Dec 31, 2009 9:35 am

You sir you texture and uv mapping is very good


by the way COB/BOS Example:

Code: Select all

#define TA			// This is a TA script

#include "sfxtype.h"
#include "exptype.h"   //what script files should be included

piece  base, flare, turret, barrel; //defines  what piece the model has important!

static-var  restore_delay; // allows you to apply some additonal script function like the unit can only shoot if its not moving  good for artillary  it is impossible to do an "hit-and-run" on 100 ton shell moving 
// artillerry o_o

// Signal definitions
#define SIG_AIM				2


SmokeUnit(healthpercent, sleeptime, smoketype)
{
	while( get BUILD_PERCENT_LEFT ) //if the unit has this health percentes  it starts to smoke
	{
		sleep 400;
	}
	while( TRUE )
	{
		healthpercent = get HEALTH;
		if( healthpercent < 66 )
		{
			smoketype = 256 | 2;
			if( Rand( 1, 66 ) < healthpercent )
			{
				smoketype = 256 | 1;
			}
			emit-sfx smoketype from base;
		}
		sleeptime = healthpercent * 50;
		if( sleeptime < 200 )
		{
			sleeptime = 200;
		}
		sleep sleeptime;
	}
}

RockUnit(anglex, anglez)
{
	turn base to x-axis anglex speed <50.010989>; //if its shooting  good to "simulate" recoil effects
	turn base to z-axis anglez speed <50.010989>;
	wait-for-turn base around z-axis;
	wait-for-turn base around x-axis;
	turn base to z-axis <0.000000> speed <20.000000>;
	turn base to x-axis <0.000000> speed <20.000000>;
}

HitByWeapon(Func_Var_1, Func_Var_2)
{
	turn base to z-axis Func_Var_2 speed <105.021978>;
	turn base to x-axis Func_Var_1 speed <105.021978>; //when it got hit  
	wait-for-turn base around z-axis;
	wait-for-turn base around x-axis;
	turn base to z-axis <0.000000> speed <30.005495>;
	turn base to x-axis <0.000000> speed <30.005495>;
}

Create()
{
	hide flare;
	restore_delay = 3000; //how long the unit must the unit idle befor the script gets called
	start-script SmokeUnit();
}

SetMaxReloadTime(Func_Var_1)
{
	restore_delay = Func_Var_1 * 2;
}

RestoreAfterDelay()
{
	sleep restore_delay;
	turn turret to y-axis <0.000000> speed <90.021978>;
	turn barrel to x-axis <0.000000> speed <50.010989>;
}

AimPrimary(heading, pitch)
{
	signal SIG_AIM; //no idea but seems important
	set-signal-mask SIG_AIM;
	turn turret to y-axis heading speed <90.021978>;
	turn barrel to x-axis <0.000000> - pitch speed <50.010989>;
	wait-for-turn turret around y-axis;
	wait-for-turn barrel around x-axis;
	start-script RestoreAfterDelay(); //if the unit dosent do anything it calls tha script to restore its position/rotation
	return (1);
}

FirePrimary()
{
	
	move barrel to z-axis [-2.400000] speed [500.000000]; //self explainable
	sleep 150;

	wait-for-move barrel along z-axis;  /it waits for moving the barrel on the deffined axis and the position
	move barrel to z-axis [0.000000] speed [3.000000];
}

AimFromPrimary(piecenum)
{
	piecenum = turret; //which piece it should use for rotating
}

QueryPrimary(piecenum)
{
	piecenum = flare; //where its shooting point is
}

SweetSpot(piecenum)
{
	piecenum = base; //hitsphere ?
}

Killed(severity, corpsetype)
{
	hide flare;
	if( severity <= 25 ) //if the stumpy has an health of 100 and got damaged by 125 for example this script line gets called IIRC
	{
		corpsetype = 1;
		explode barrel type BITMAPONLY | BITMAP1;
		explode base type BITMAPONLY | BITMAP2;
		explode flare type BITMAPONLY | BITMAP3;
		explode turret type BITMAPONLY | BITMAP4;
		return (0);
	}
	if( severity <= 50 )
	{
		corpsetype = 2;
		explode barrel type FALL | BITMAP1;
		explode base type BITMAPONLY | BITMAP2;
		explode flare type FALL | BITMAP3;
		explode turret type SHATTER | BITMAP4;
		return (0);
	}
	if( severity <= 99 )
	{
		corpsetype = 3;
		explode barrel type FALL | SMOKE | FIRE | EXPLODE_ON_HIT | BITMAP1;
		explode base type BITMAPONLY | BITMAP2;
		explode flare type FALL | SMOKE | FIRE | EXPLODE_ON_HIT | BITMAP3;
		explode turret type SHATTER | BITMAP4;
		return (0);
	}
	corpsetype = 3;
	explode barrel type FALL | SMOKE | FIRE | EXPLODE_ON_HIT | BITMAP1;
	explode base type BITMAPONLY | BITMAP2;
	explode flare type FALL | SMOKE | FIRE | EXPLODE_ON_HIT | BITMAP3;
	explode turret type SHATTER | EXPLODE_ON_HIT | BITMAP4;
}
By the way i would discourage using 3DO Builder because it seems to be crash happy.. and not really Reliable/stable

since you can UVmapping i would recommend that you use 3DM Editor from here and making mods for TA3D because it has some more Advantages over OTA

like it dosent got the shitty ID Limit

and 3DM/s3o looks better then the out-to date 3do technology :mrgreen:

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Concise modding guide?

Post by xpoy » Fri Jan 01, 2010 7:34 pm

/:^]!!!
Greeting

I can't touch TA in some time, and this suck me, really sick.
Will be fine after some days, I hate this some days.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests