PDA

View Full Version : TRNG - Animation scripting tutorial


Titak
02-06-08, 18:08
Hi :wve:

I've created a TRNG - Animation Scripting tutorial (http://www.tombraiderforums.com/showthread.php?p=2747018&posted=1#post2747018).

It tells you some basic stuff about animaton scripting for TRNG.
I've also included some examples on how you can make certain 'TREP moves' possible.

Happy scripting! :D

matrix54
02-06-08, 20:41
CAN" GET THEM TO WORK-SO MANY ERRORS!!:hea:

But thanx for it though!! I'll luv ya for ever!!!

Titak
03-06-08, 16:34
Then you must be doing something wrong.
The scripts work. ;)

Make sure you are using NG Center to compile/build your scripts and that you are indeed using TRNG tomb4.exe.

jeffrey van oort
05-06-08, 14:00
Then you must be doing something wrong.
The scripts work. ;)

Make sure you are using NG Center to compile/build your scripts and that you are indeed using TRNG tomb4.exe.

LOL if there are 1000 scriptlines:D and 60% of them is incorrect. I can feel the frustration:D Madness, Terror:D Evviiilll:D

Titak
05-06-08, 21:49
Actually, getting to know this whole new scripting business, and I'm not only talking about animation scripting, can indeed be very frustrating.
There are so many possibilities and you do have to work within the limits of the scriptcommands and put the right commands/conditions in the right place for it all to work properly. I'm not even close to knowing all of it.

Some of the more easier scripts are:
Rain= RAIN_SINGLE_ROOMS
LevelFarView= 120 (set viewdistance for a level)
Equipment= PISTOLS_ITEM, 0 (to remove pistols from inventory)
Equipment= BIGMEDI_ITEM, 0 (to remove medipacks from inventory)
(The Equipment scripts can also be used under Lara's start position so she can start a level(set) without equipment, just like the start-up inventory can be adjusted with TREP. :D)

Not many fields, only a couple of conditions that can be used. :D

My advice is to put in one new scriptcommand and the time and keep testing your level untill it works properly.
Then add the next one and test it. When working properly, put in the next one and test it again, and so on.
It is easier this way to find mistakes and it helps you to gain better understanding of this new scripting business. ;)

And it is very important to exactly follow the rules Paolone has set for the scripting.

jeffrey van oort
06-06-08, 14:23
Does it mean that TRNG can have rain but TREP does not feature rain/snow etc possibilities?

Titak
06-06-08, 19:20
You can have rain and snow in TRNG. :D

As well as cold breath and freezing water and other types of damage rooms, like poisenous gas rooms. :D

And you can even set the intensity for the rain/snow, just like you can with water waves.
1 = very little rain/snow, 4 = heavy rain/snow. :D

TREP also has a rain/snow feature. You need to create a flipeffect for it and then you trigger that flipeffect in LE. But you can't set the intensity. ;)

God Horus
07-06-08, 00:47
I am using TRNG for my upcoming debut level, Belly of the Beast.

I seem to be having the same problem Matrix54 is having, I keep getting errors!

Lara's Backpack
07-06-08, 05:35
I have to agree with God_horus and Matrix - I was eager to expirment with this, but Im going erros in the ng center that prevent it from building the script; here's the log:



Remove old .dat files from folder: C:\Program Files\Core Design\trle\script

Scanning SCRIPT.TXT

Scanning ENGLISH.TXT

Found 359 standard strings

Found 0 extra ng strings

Scanning SCRIPT.TXT completed: OK

ERROR: argument 'KEY1_ACTION' is not valid decimal numeric value and neither correspond to some NG constant mnemonic

SYNTAX ERROR, the 2th argument is not a valid number in command: Animation=

Scanning ENGLISH.TXT

Found 359 standard strings

Found 0 extra ng strings


And the animation= 's from my script:

Animation= 446, KEY1_ACTION + KEY1_UP, IGNORE, IGNORE, ENV_MONKEY_CEILING, 1027, IGNORE, -164
Animation= 257, KEY1_ROLL, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, -234; monkey 180

ukraider
07-06-08, 07:45
I have no problems with the same animation commands I've copied & pasted them from your post into my script and this is a screenshot after building it. Have you installed the latest update for the scripter it's version 1.1.0.42 dated 22 May and should be installed into the main scripter folder, you should also use NGLE version 1.1.7.4. But the log entry Found 0 extra ng strings in your post suggests to me that you don't have the latest update installed. The second pic shows all the files you should have in the scripter folder.



http://www.laras-workshop.co.uk/trf.jpg

http://www.laras-workshop.co.uk/ngscript.jpg

Titak
07-06-08, 08:54
Thank you ukraider! :hug:

Yes, do make sure you have the latest scripter and also the latest Tomb_NextGeneration.dll. :D

Remember that TRNG is still in development and new things get added regularly and bugs get fixed.
So check the TRNG homepage regularly for updates and update your TRNG with these new updates! This is important to keep track of things and to make sure everything works properly.
I have also stated this in my TRNG welcome thread (http://www.tombraiderforums.com/showthread.php?t=126237). ;)

ukraider
07-06-08, 09:15
So check the TRNG homepage regularly for updates and update your TRNG with these new updates!

I'd like to add one point to this I've found from bitter experience that when updating the NG.dll file it's best to delete the old one before installing the newer version rather than just overwriting it, even though in theory it should make no difference. In the past I have simply updated mine by overwriting it and encountered problems, which where only solved by deleting the dll file and installing it again. :)

Lara's Backpack
07-06-08, 09:41
Thank you ukraider! :hug:

Yes, do make sure you have the latest scripter and also the latest Tomb_NextGeneration.dll. :D

Remember that TRNG is still in development and new things get added regularly and bugs get fixed.
So check the TRNG homepage regularly for updates and update your TRNG with these new updates! This is important to keep track of things and to make sure everything works properly.
I have also stated this in my TRNG welcome thread (http://www.tombraiderforums.com/showthread.php?t=126237). ;)

I redownloaded TRNG from the official TRNG site today, before I attempted this... I also copied and pasted your command lines Titia which means the problem must be something else. I'll keep fiddling with it and see what turns up

Titak
07-06-08, 17:32
I'd like to add one point to this I've found from bitter experience that when updating the NG.dll file it's best to delete the old one before installing the newer version rather than just overwriting it, even though in theory it should make no difference. In the past I have simply updated mine by overwriting it and encountered problems, which where only solved by deleting the dll file and installing it again. :)
Thank you for that tip! :tmb:

@ Lara's Backpack:
Did you also download the latest scripter version and Tomb_NextGeneration.dll?
Only updating the NGLE is not enough. It is the above files that make the difference. And then it is wise to follow ukraider's advice when you replace your old Tomb_NextGeneration.dll. :D

Lara's Backpack
08-06-08, 01:50
EDIT: I'm an idiot :p I was putting the command lines into the wrong level script :vlol: The cutscene version, not the playable one... common mistake... or not *glows red*

Sorry Titia! Keep up the good work