Page 1 of 1

How to add a Movie?

Posted: Sun Apr 27, 2014 7:50 am
by thelegend
Hello Gametoast,
i have a small question. For my map I want to add a movie. I want to replace the 501st legion intro with my intro. But where I add the movie file (.avi)?

Re: How to add a Movie?

Posted: Sun Apr 27, 2014 12:57 pm
by Marth8880

Re: How to add a Movie?

Posted: Sun Apr 27, 2014 1:07 pm
by Anakin
is it also possible with this method to replace the whole Menu Background with a video??

Re: How to add a Movie?

Posted: Sun Apr 27, 2014 1:08 pm
by Marth8880
Technically yes, considering the console versions have such a background, but I don't think anybody's figure it out yet. You could probably try e-mailing psych0fred about it. Yes, he still replies.

Re: How to add a Movie?

Posted: Sun Apr 27, 2014 3:48 pm
by [RDH]Zerted
In terms of switching to full screen movie backgrounds, we figured that out a long time ago.

Here's part of a custom GC script that'll allow you to full-screen a specific movie. I didn't tested it, so it might have minor typos. Note: It only works on movies played through ifelem_shellscreen_fn_StartMovie()

Code: Select all

if Anakin_ifelem_shellscreen_fnStartMovie ~= nil then
	print('ERROR: Fullscreen movie script has been loaded twice or someone else forgot to rename "Anakin_ifelem_shellscreen_fnStartMovie" to start with their own username')
else
	if ifelem_shellscreen_fnStartMovie == nil then
		print("ERROR: Fullscreen movie script has been loaded too early.  ifelem_shellscreen_fnStartMovie() doesn't exist yet")
	else	
		Anakin_ifelem_shellscreen_fnStartMovie = ifelem_shellscreen_fnStartMovie
		ifelem_shellscreen_fnStartMovie = function(movieName, loop, nextMovieName, fullscreen, ...)  --the exact "..." characters are required for unpack() to work
			if movieName == "anakinsMovie" then  --TODO change anakinsMovie to the name of whichever move you want full screened in the shell
				fullscreen = 1
			end

			return Anakin_ifelem_shellscreen_fnStartMovie(movieName, loop, nextMovieName, fullscreen, unpack(arg))  --if this line doesn't work change "arg" to "args"
		end
	end
end

-- use "fullscreen = nil" if you want to unfull-screen a movie
-- use "fullscreen = 2" if you want the movie to be fully visible in widescreen with bars on either side
---- specifically 2 causes:
------ local right, bottom, b, w = ScriptCB_GetScreenInfo()
------ left   = right * (1 - 1/w) * 0.5
------ top    = bottom * (1 - 1/w) * 0.5
------ width  = right/w
------ height = bottom/w
---- verses 1 which causes:
------ local right, bottom, b, w = ScriptCB_GetScreenInfo()
------ left   = 0
------ top    = 0
------ width  = right  - left
------ height = bottom - top
Files of Interest
ifs_era_handler.lua (in SWBF2 v1.3patch RecoveredSource.7z)
ifs_elem_shellscreen.lua (in Common\Scripts)

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 3:27 pm
by thelegend
I tried it to convert my .avi file to .bik but it doesnt work. I dont know why. Everytime If I start, and "bink" my file it stops.
I have searched for other to .bik converters but they dont convert them to bik.

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 3:32 pm
by Marth8880
What are the exact steps you've taken to try to convert the .avi?

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 3:57 pm
by thelegend
Ok. I have started the Radvideo.exe (hope this is the correct name) and choosed my .avi file. After that I pressed "bink it". A new window was shown up. After that I pressed Bink. It started a new window. After few seconds it stops and a window says: "radvideo.exe have to be closed"

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 4:10 pm
by Marth8880
Try using the encoding parameters as listed in the text document "Add A Preivew Video.txt" located in GameData\addon\AAA-v1.3patch\docs\howtos. You'll probably want to change the set resolution to 640x480, though.

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 4:24 pm
by thelegend
Hm..I tied it..but It doesn´t work.
I am going to reinstall the video tools and try it again.

Re: How to add a Movie?

Posted: Tue Apr 29, 2014 9:15 pm
by GAB
I think it is worth mentioning that, although I have a post in the thread linked by Marth describing steps I took to attempt to make custom movies play before a mission, I've never managed to get past this error which prevented the movie from being played:

Code: Select all

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\movie\RedMovie.cpp(669)
Segment 0x3936077a does not exist in movie 0x436ddf48
psych0fred said it was probably not being included in some req file, but even after checking things I never really managed to get rid of the error.

So if you come across my post expecting it to be a tutorial, keep in mind that it is not. If you're just looking for clues how to make it fully work, my post might help. Also, if you manage to make it work by following the method in the aforementioned thread or any other method that does not replace the retail ingame.lvl please let me know.