Announcing: How to add intro and outro movies in your maps.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Announcing: How to add intro and outro movies in your maps.

Post by Qdin »

Hey ya'll.

since the first day I had the modding tools, I managed to use intro and outro movies which is in the game.

They work in Single Player (Instant Action) and 3 minute ago, I played the map on-line with Dragonum - so these movies actually works online!

all you gotta do, is to create a new map, and in the .lua file(s) you add this:

-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()

SetAIDifficulty(2, -8, "medium")
AllowAISpawn(REP, true)

SetMissionEndMovie("ingame.mvs", "geomon02")
AddAIGoal(3, "Deathmatch", 100)
ScriptCB_SetGameRules("campaign")
ScriptCB_PlayInGameMovie("ingame.mvs", "geomon01")
SetMissionEndMovie("ingame.mvs", "cormon02


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}


--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

conquest:Start()

EnableSPHeroRules()

end

etc.

notice the green codes. There's actually a reason, that there are 2 SetMissionEndMovie

I tried with only one of them, but then nothing happens - so I guess it's vital to have an extra SetMissionEndMovie which matches the ScriptCB_PlayInGameMovie.
Nonetheless, it'll only play the last SetMissionEndMovie.

and it DOES work in Multiplayer.

in case you're not all convinced, I'm gonna upload the map to the Gametoast Downloads Area: it plays the Geonosis Intro, and ends with outro of Knightfall :P

I've only let it play it in Clone Wars, so you can see the difference with movies and without movies :)

I hope you all can enjoy it :wink:
Trans

RE: Announcing: How to add intro and outro movies in your ma

Post by Trans »

Does this mean we can add movies that we have made or only ones that are already in-game?
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Announcing: How to add intro and outro movies in your ma

Post by Qdin »

That'll be my next mission.

All I need now, is some .bik files, and then I'm gonna experiment with those files so we can get costum made movies into our maps! :P

btw, does anyone knows where I can get some sort of .bik exporter/converter?
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Announcing: How to add intro and outro movies in your ma

Post by Leviathan »

Of course, Qdin ! Just download RAD Game Tools' Bink and Smacker tool, in order to convert any video-file (Apple QuickTime, Microsoft AVI and WMV movies, etc...) into *.BIK ones... :wink:
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Announcing: How to add intro and outro movies in your ma

Post by Qdin »

Alrighty!

just done that :P

I'm experimenting with different folders to see if I'm lucky enough - and also changing LOTS of wierd stuffs in the .mfcg and .mlst files :roll: so it matches the .bik file I have :)
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

RE: Announcing: How to add intro and outro movies in your ma

Post by Rends »

This thread belongs to SWBf2 modding!


And Qdin, did you fiddle out how to change the loading screen?

Mustafar doesn´t fit well to my coruscant maps ;-)
Post Reply