scripting and animation tutorials ?

scripting and animation tutorials ?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

scripting and animation tutorials ?

Post by Wombat »

someone got any ? is there any tutorial on the internet explaining basics of using Scriptor and Servo ? (according to Smoth's threard i assume these are best programs). Maybe someone will bother to make one?
User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: scripting and animation tutorials ?

Post by FireStorm_ »

Animaters used to need Scriptor (opposed to lets say notepad or wordpad) because it is able to convert to COB.

Now I'm trying to teach myself scripting and Lua animations by looking at a lot of treads and files. Good thing about Lua is that you don't have to compile and so one can use practically any text editor.

I use LuaEdit as recommend by this Lua tutorial: http://lua.gts-stolberg.de/en/index.php?uml=1

I don't know Servo but I keep Spring open and my mod running while editing a units script. (type '/cheat' and '/luarules reload' to update change) It is far from ideal i suspect, but i'm still learning anyway.

Hope that helps. If I'm successful I might share how I managed, but for now I also would like to read a tutorial (instead of making one).
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: scripting and animation tutorials ?

Post by oksnoop2 »

If you needed lua script examples you can look at CA or Conflict Terra's SVN.
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: scripting and animation tutorials ?

Post by Wombat »

FireStorm_ wrote: I use LuaEdit as recommend by this Lua tutorial: http://lua.gts-stolberg.de/en/index.php?uml=1

I don't know Servo but I keep Spring open and my mod running while editing a units script. (type '/cheat' and '/luarules reload' to update change) It is far from ideal i suspect, but i'm still learning anyway.
now thats something ill have to remember, thx
User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: scripting and animation tutorials ?

Post by FireStorm_ »

I opened up CA stable-8025, and it wasn't as rich with Lua unit scripts as I hoped/remembered.

This looks far more helpful (and quite impressive), now that I've found it:
http://code.google.com/p/conflictterra/ ... vn/mods/CT

Is any of the units a transport (preferably ground)? I'd greatly appreciate seeing such an example.
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: scripting and animation tutorials ?

Post by oksnoop2 »

Not yet we only have an air transport. I think we have yet to create the ground transport due to..lack of skill?...unwillingness to work?..Borderlands?. Once we get that hammered out I will be sure to alert you. In the mean time if you figure out how to do ground transport please share :-).
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: scripting and animation tutorials ?

Post by CarRepairer »

Code: Select all

local trans = piece "trans"

function script.TransportPickup ( passengerID ) 
	UnitScript.AttachUnit ( trans, passengerID ) 
end

function script.TransportDrop ( passengerID, x, y, z )
	UnitScript.DropUnit ( passengerID, x, y, z ) 
end
Result:
http://cakhorse.ytmnd.com/
User avatar
FireStorm_
Posts: 666
Joined: 19 Aug 2009, 16:09

Re: scripting and animation tutorials ?

Post by FireStorm_ »

Haha, it worked! I was a little surprised when the unit-to-be-transported instantly showed up in the arms of the transporting-unit (where i put the piece to attach to), but now I can fiddle about trying to make it look good.
Tanks CarRepairer
User avatar
SanadaUjiosan
Conflict Terra Developer
Posts: 907
Joined: 21 Jan 2010, 06:21

Re: scripting and animation tutorials ?

Post by SanadaUjiosan »

The ground transport's been put off mostly because getting the air transport to work was an enormous pain. I'll definitely be looking here when I get that done.
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: scripting and animation tutorials ?

Post by Wombat »

CarRepairer wrote:http://cakhorse.ytmnd.com/
:>
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: scripting and animation tutorials ?

Post by REVENGE »

I would start out by taking a unit you know and looking at the bos script. If you have the model open in Upspring, you can see how the commands correspond to the different pieces and how they move, etc. But I wouldn't dwell too much on COB/BOS Womb, the lua scripting is what you should move onto after you have a basic understanding of how the animation should work.
Post Reply

Return to “Game Development”