28-09-19, 22:30 | #1 |
Member
Joined: Aug 2019
Posts: 15
|
TR4 cutscenes replay
Thanks to Sapper and T4Larson work on deciphering the file format, I have been able to read the cutseq.pak file and play the cutscenes from TR4.
It's not polished yet and I still have a little work to do, but it does work (it's not on my site, I will update my other post when it is ready). However, some data are missing in this file, and I wanted to know if someone would know where to look for them... In some cutscenes, Lara is firing with guns then takes the guns back to her holsters. So, we would need something like anim commands to handle this, but there are (it seems) no such data in the cutseq.pak file... In other cutscenes, some objects have to be hidden/shown at some points during the replay, so it's something that have to be described somewhere too. I looked at the padding data that were not described in the Sapper / T4Larson document, but it's not there, the padding are all-0 data. I had a look at the script.dat file too (in fact, I read the description in the TRosetta Stone doc), but I can't see any command that would give such information. So, hoping someone would have an idea, or else it's hard-coded into the .exe file (it would have been so easy to put that in the cutseq file...). It seems people are able to create cutscenes with the TRLE editor (or with a custom tool?): is it right? If yes, are they able to use special commands during the playback, like hide/show objects, use a meshswap, ... ? That would be a great news if it's possible, as it would mean those data are somewhere indeed and can be retrieved. |
28-09-19, 22:54 | #2 |
Member
Joined: Dec 2010
Posts: 2,773
|
Hi Popov!
You might want to look at file "DELTAPAK.C" from TOMB5-decompile project. Though the code is based off PSX, I believe the cutseq format is the same across all platforms (PSX, PC and DC). See: https://github.com/TOMB5/TOMB5/blob/...LTAPAK.C#L3034 Though I haven't looked into the cutseq.pak/cutseq.jiz format in great detail since decompilation has not reached the stage of cutscenes, the code in DELTAPAK.C might be useful to decipher the missing bits you require. Cheers. |
28-09-19, 23:48 | #3 |
Member
Joined: Aug 2019
Posts: 15
|
Thanks Gh0stBlade!
Indeed, data is hardcoded, there are some programming that check specific frames in specific cutscenes to take special actions (draw weapons, hide objects, etc)... I guess you don't have the same routine decompiled for TR4 ? In any case, this is really a shame Core did not use anim commands embedded into the cutseq.pak file to handle that... Would have been too easy I guess |
29-09-19, 02:48 | #4 |
Member
Joined: Sep 2007
Posts: 1,684
|
Need to find the array of cutscene control routine pointers in TR4 I guess.
CUTSEQ_ROUTINES cutseq_control_routines[] Last edited by sapper; 29-09-19 at 02:50. |
29-09-19, 04:48 | #5 |
Member
Joined: Jul 2009
Posts: 7,393
|
There are animation commands that mske lara draw and fire her pistols, they're a bit buggy though, the holster meshes dont quite swap properly.
|
06-10-19, 20:52 | #6 |
Member
Joined: Jul 2012
Posts: 4,286
|
|
06-10-19, 22:01 | #7 |
Member
Joined: Aug 2019
Posts: 15
|
|
Thread Tools | |
|
|