lfnetwork.com mark read register faq members calendar

Thread: I want to play a movie in my mod
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-10-2004, 04:31 PM   #1
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
Im sorry to bother you guys again, but could i get the exact script for how to issue a movie? Just cuz its kind of a bear looking for them.


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 12-17-2004, 01:40 PM   #2
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
Might i be able to use the QueueMovie Script? And where do i put my movie file so that it will play it?


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 12-17-2004, 01:45 PM   #3
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Quote:
Originally posted by Gsccc
Might i be able to use the QueueMovie Script? And where do i put my movie file so that it will play it?
Here is a sample script I sent to someone to play movies in between the two modules:
Code:
void main()
{
// Send you to the caves on Dantoine after
// playing a video showing the Leviathan
StartNewModule("danm14ae","", "05r");
}
To simply play a movie, use:
Code:
PlayMovie( string sMovie );
You can also use the Queue movie script:
Code:
//replace FALSE by TRUE if you want it to be skipable when hitting esc.
QueueMovie( string sMovie, FALSE);
Edit: put the movie file in the Movies folder

...and next time for technical question like this, start a new thread - re-edit: anyways, I splitted the thread to make a new one

Last edited by Darth333; 01-18-2005 at 11:02 AM.
Darth333 is offline   you may: quote & reply,
Old 12-17-2004, 01:51 PM   #4
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
ok so where does the name of the movie go? in the " "? and what does 05r mean? And what do i save my movie as?

THX


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 12-17-2004, 01:54 PM   #5
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Quote:
Originally posted by Gsccc
ok so where does the name of the movie go? in the " "? and what does 05r mean? And what do i save my movie as?

THX
check the movies folder, you will understand: 05r IS the name of the movie.

And for the format, check the Guide for the Newbie

I am splitting the thread.
Darth333 is offline   you may: quote & reply,
Old 12-17-2004, 02:56 PM   #6
Renegade Angel
The Darkside Has Cookies!
 
Renegade Angel's Avatar
 
Join Date: Mar 2004
Location: Pennsylvania
Posts: 1,160
Very useful Darth.
This should be put under Do you want to mod SWKotor?Then start here!


98 percent of the teenage population has tried some type of drug or underage drinking at some point. Put this in your sig if you like potatoes.
Renegade Angel is offline   you may: quote & reply,
Old 12-18-2004, 02:39 AM   #7
PoM
Senior Member
 
Join Date: Sep 2004
Posts: 1,145
I agree with Chains!

Edit: Ah, it's there.
Under "Scripting" Named: Starting cutscenes.
PoM is offline   you may: quote & reply,
Old 01-09-2005, 04:50 PM   #8
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
so then whould it look like this?
Code:
void
{
PlayMovie( "jargo");
}
EDIT: Ok i got it to work but now i have a bigger problem, i put the script on the onEnter table of my module and now it keeps playing over and over agian, 3 times until it went to the cutscene between Detrus and Sorion. Is there a way i can make the script fire only once?

EDIT2: Ok fixed that too, ok nevermind all fixed up.


I don't need you no more in this world. I'll meet you in the next one, and don't be late.

Last edited by Gsccc; 01-09-2005 at 05:06 PM.
Doc Valentine is offline   you may: quote & reply,
Old 02-26-2005, 11:04 PM   #9
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
Ok now I have run into a very big problem, its not playing the intro movie. I set it up EXACTLY as i did in A new Foe, only its not working. The script acts like its not even there. I go into the module and i just sit there with no intro scroller. The dialogue doesnt even auto initiate. I'm wondering if something has changed in tsl. I looked at the TSL nwnscripts in kotor tool but its exactly the same as the one for kotor 1 so im not quite sure. My movie file is kallked dud.bik. here is the code
Code:
void main()
{
PlayMovie("dud");

object oPC=GetFirstPC();

 AssignCommand(OBJECT_SELF,ActionStartConversation(
oPC,"adon"));
}


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 02-26-2005, 11:22 PM   #10
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
ok, so i found the problem, turns out there is an extra parameter now in TSL i have to enter some kind of integer

// 733. PlayMovie
// Playes a Movie.
void PlayMovie( string sMovie, int nStreamingMusic = FALSE );

Its says i have to make some kind of integer false, can anyone give me an example as to how to set this script up?

EDIT:
OK after doing some EXTENSIVE digging, if found out the krea movie initation and it starts just like mine does, only mine doesnt work. Does ANYONE know whats going on here?


I don't need you no more in this world. I'll meet you in the next one, and don't be late.

Last edited by Gsccc; 02-27-2005 at 12:08 AM.
Doc Valentine is offline   you may: quote & reply,
Old 02-27-2005, 10:23 AM   #11
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
i just fired the following script from an armband and it works perfectly:
Code:
void main ()
{
PlayMovie ("KreMov01");

}
For custom movies, add a new entry to movies.2da


Otherwise, check if your custom movie is in your movie folder unless it is a problem with the movie format.

edit: and your mailbox is full Gsccc
Darth333 is offline   you may: quote & reply,
Old 02-27-2005, 10:32 AM   #12
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
K im in the 2da file now it looks like this:
Row Lable ll strrefname ll always show ll order

now i know what to put in row label, but as for strrefname does it matter what .tlk reference i put in there can i just copy one from the other movies or will it cause it to have problems?


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 02-27-2005, 10:43 AM   #13
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
Ok now I have a strange problem, i just put the script "adon" on my npc's onspawn script to

Code:
void main() 
{
PlayMovie("KreMov01");

}
And when i got into the module, nothing happened, i even tried putting this script in the OnEnter header of the module ARE file and nothing happened. Are scripts compiled differently for KOTOR 2 or something??? I dont understand why it isnt working.


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Old 02-28-2005, 06:00 AM   #14
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Quote:
Originally posted by Gsccc
... i just put the script "adon" on my npc's onspawn script...
Try attaching the script somewhere else.
If you want a script to play when you enter a module, use this:
Code:
void main()
{
// Sends you to the caves on Dantoine after
// playing a video showing the Leviathan
StartNewModule("danm14ae","", "05r");
}
Attach the script to a door (onOpen event or something like this - I don't have the game with me right now) or a dlg or whatever method you are using to get you into the new module.
Darth333 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > I want to play a movie in my mod

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:37 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.