GTA: Modification Area
Would you like to react to this message? Create an account in a few clicks or log in to continue.
GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Cutscene(s) information EmptySun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Cutscene(s) information EmptyThu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Cutscene(s) information EmptyThu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Cutscene(s) information EmptyThu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Cutscene(s) information EmptySat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Cutscene(s) information EmptyFri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Cutscene(s) information EmptyFri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Cutscene(s) information EmptyTue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Cutscene(s) information EmptyMon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))
Log in

I forgot my password



April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

Calendar Calendar


You are not connected. Please login or register

Cutscene(s) information

Go down  Message [Page 1 of 1]

1Cutscene(s) information Empty Cutscene(s) information Wed Feb 11, 2009 10:38 am

gtasbigfoot

gtasbigfoot
Admin

Description


A cutscene is a pre-animated sequences before, during or after missions, of the game. There are made to give the help of the storyline of the game, what things, or characters are like, etc.

In San Andreas cutscenes are loaded by the main.scm file, camera movement and things, can not be controlled, via the main.scm file. Cutscene data is usually stored externally in the cuts.img archive. To be more correct; San Andreas/anim\cuts.img

Each cutscene consists of 3 files, all 3 must, and do, have the same file name, but with a different file extension (.cut, .ifp and .dat).

Modifying of existing cutscenes is possible, however, new cut scenes may not be added to the game, only if they have a file name that already exist in game. This is because a internally hardcoded table, in the EXE, which links each cutscene.

Modifying


Obviously the.cut file is loaded first, as this contains the important data of the cutscene,(e.g. offset, models). Models of the cutscene are usually stored in the models\cutscene.img archive. And, this file is split up into sections.

INFO



The info section has information of the offset. Its format is the following:

Code:

info
offset X Y Z
end

MODEL


The model section has information about the models that the cutscene uses.
Pay, attention that the model does not need to be defined in the IDE's.
Obviously, the model and texture must have the same name, like normally.
The model section also attaches models to animations in the IFP-animation archive. Its format is the following:

Code:

model
1, name, animation
end

The first, digit is always 1, and not even read by the game. There is a limit to 50 entry's in that, I think.

EXTRACOL


This sets the active interior's color:

Code:

extracol
Number
end

Extra colours can be edited in the timecyc.dat file.

TEXT


The text section displays a GXT entry at an certain point of time relative to the cutscene start. The numbers are integers and define the time in milliseconds.

Code:

text
starttime, length, gxt
end


UNCOMPRESS


The uncompress-section uncompresses the IFP animations.

Code:

uncompress
Animation
end


PEFFECT


This sets the particle effect and sets an particle effect from the effects.fxp; I may need to create a topic on the effect.fxp later, if you wish me to just say.
The bone is a number of the body part, the particle effect is attached to.

Code:

peffect
effectname, starttime, endtime, unknown_number, bone, X, Y, Z, don't know,  don't know,  don't know
end

REMOVE


Removes an static object being placed at specified coordinates.

Code:

remove
Objectname, X, Y, Z
end

MOTION


This is not even read by the game.


ATTACH


This is rarely used. And I don't know the meaning.
Never looked into it, much.

DAT


The dat file has information about the camera moving, movements during the cutscene time.
It has 4 blocks:

Code:

Block1: Rotation
Block2: Zoom
Block3: CameraPositions
Block4: CameraTargetPoints

So, Each block starts with an integer number being the number of entries in the block, followed by its content and ended by a semicolon.
Each line is marked as finished by an just a comma.

The file describes 3 lanes, the last two are not read by the game.
This gives a general format:



Code:

TimeOffset,Lane1,Lane2,Lane3,

The Time Offset is a value which defines the time of the event in game seconds. The game interpolates the curve between the 2 points.

Block1 - Rotation
Code:

TimeOffset,Rotation(Lane_1),Rotation(Lane_2),Rotation(Lane_3),

Describes the rotation around the vector towards the target place/point in Euler angles.

Block2 - Zoom
Code:

TimeOffset,Zoom(Lane_1),Zoom(Lane_2),Zoom(Lane_3),

Defines the focal of the camera for each lane.

Block3 - Cameraposition
Code:

TimeOffset,X(Lane_1),Y(Lane_1),Z(Lane_1),X(Lane_2),Y(Lane_2),Z(Lane_2),X(Lane_3),Y(Lane_3),Z(Lane_3),

Defines the position of the camera, relative to the offset point.

Block4 - Target
Code:

TimeOffset,X(Lane_1),Y(Lane_1),Z(Lane_1),X(Lane_2),Y(Lane_2),Z(Lane_2),X(Lane_3),Y(Lane_3),Z(Lane_3),

Defines the position of the target of the game camera, relative to the offset point.

IFP


An Animation Package IFP file, including the animations used for the cutscene.
The positions of the bones and animated objects in the animation are relative to the offset, defined in the INFO section of the .cut file.



Issues, & Difficultly


Well, yes, creating a cutscene is quite hard, but the most hardest thing is actually, how long it takes, to make one. And the animation, of the cutscene is quite hard to get perfect.

You can make small cutscene's using SCM coding, although not as advanced, it's possibly more easy(judging on the amount, of scripting), and a lot more quicker, plus, if you get anything wrong, it's much more easy to correct.

SCM


There are the opcodes made for loading the cutscenes and, etc.

Code:

0244: set_cutscene_pos 8@ 11@ 14@

This opcode sets the cutscene position. (3 parameters).

Code:

02e4: load_cutscene_data 'PROLOG1'

This opcodes loads the cutscene data. (1 parameter).

Code:

02e7: start_cutscene

Starts the cutscene(load it first). (0 parameters).

Code:

02e8: $5202 = cutscenetime

Stores the cutscene time to a varible. This only used once. (1 parameter).

Code:

02e9:  cutscene_reached_end

Used as a condition, checks if the cutscene has finished. (0 parameters).

Code:

02eA: end_cutscene

Ends a cut scene. (0 parameters).

Code:

03b7: process_cutscene_only 0

Process the cut scene, I myself, have never used this. (1 parameter).

Code:

06b9:  cutscene_data_loaded

Used as a condition, checks if the cutscene has loaded. (0 parameters).

Code:

08d0:  cutscene_skipped

Used as a condition, checks if the cutscene has been skipped. (0 parameters).

Code:

08f0: set_cutscene_model 'model' texture 'texture' // 8-byte strings

Sets the cutscene model and texture, I myself. have never used this. (2 parameters).

http://gtamodding.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum