Page 1 of 1
scripting and animation tutorials ?
Posted: 11 Jul 2010, 17:25
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?
Re: scripting and animation tutorials ?
Posted: 11 Jul 2010, 20:59
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).
Re: scripting and animation tutorials ?
Posted: 12 Jul 2010, 03:49
by oksnoop2
If you needed lua script examples you can look at CA or Conflict Terra's SVN.
Re: scripting and animation tutorials ?
Posted: 12 Jul 2010, 19:10
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
Re: scripting and animation tutorials ?
Posted: 13 Jul 2010, 09:43
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.
Re: scripting and animation tutorials ?
Posted: 13 Jul 2010, 16:09
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

.
Re: scripting and animation tutorials ?
Posted: 13 Jul 2010, 17:37
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/
Re: scripting and animation tutorials ?
Posted: 13 Jul 2010, 18:36
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
Re: scripting and animation tutorials ?
Posted: 14 Jul 2010, 04:06
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.
Re: scripting and animation tutorials ?
Posted: 14 Jul 2010, 11:19
by Wombat
Re: scripting and animation tutorials ?
Posted: 29 Jul 2010, 10:16
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.