scripting and animation tutorials ?
Moderator: Moderators
scripting and animation tutorials ?
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?
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: scripting and animation tutorials ?
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).
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).
Re: scripting and animation tutorials ?
If you needed lua script examples you can look at CA or Conflict Terra's SVN.
Re: scripting and animation tutorials ?
now thats something ill have to remember, thxFireStorm_ 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.
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: scripting and animation tutorials ?
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.
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.
Re: scripting and animation tutorials ?
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
.

- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: scripting and animation tutorials ?
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
http://cakhorse.ytmnd.com/
- FireStorm_
- Posts: 666
- Joined: 19 Aug 2009, 16:09
Re: scripting and animation tutorials ?
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
Tanks CarRepairer
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: scripting and animation tutorials ?
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.
Re: scripting and animation tutorials ?
:>CarRepairer wrote:http://cakhorse.ytmnd.com/
Re: scripting and animation tutorials ?
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.