Page 1 of 1

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

Posted: Sat Feb 25, 2006 10:12 am
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:

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

Posted: Sat Feb 25, 2006 11:21 am
by Trans
Does this mean we can add movies that we have made or only ones that are already in-game?

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

Posted: Sat Feb 25, 2006 11:26 am
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?

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

Posted: Sat Feb 25, 2006 11:46 am
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:

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

Posted: Sat Feb 25, 2006 2:05 pm
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 :)

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

Posted: Sat Feb 25, 2006 8:00 pm
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 ;-)