Custom Movies Research (FAQ)

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

1st Lieutenant
User avatar
Posts: 432
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world

Re: Custom Movies Research (FAQ)

Postby GAB » Mon Nov 26, 2012 4:17 pm

I'm not sure if he's back or not. I just contacted him via e-mail.

Gametoast Staff
User avatar
Posts: 2973
Joined: Sun Feb 26, 2006 7:36 am
Location: USA
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set

Re: Custom Movies Research (FAQ)

Postby [RDH]Zerted » Fri Jan 31, 2014 6:29 am

:sleep: I wish I knew GAB's post existed over the summer. I would have had time to give movies another look. If you guys post on any of my old research topics or any new info comes out on areas I was working in please send me a PM. I don't have time to watch the forums and stay on top of SWBF2 anymore. At the moment I'm trying to get a thesis approved for a RTS AI.

Anyway, I think thanks to swbfgamers Psych0fred posted an old SWBF1 test map: Datanabproto.zip. It has some movie related files in it that are worth a look to anyone researching moves. I'm not sure if it has anything new, but at least it's an example instead of just the SWBF1 movie docs. Or maybe SWBF1 has lots of examples and I don't recall reviewing them.

Related swbfgamers threads:
http://www.swbfgamers.com/index.php?topic=7067.0
http://www.swbfgamers.com/index.php?topic=6677.0

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Custom Movies Research (FAQ)

Postby AceMastermind » Wed Jul 15, 2015 3:23 am

All the shipped bik movies separated and named:
Crawl
Shell
Training
Ingame[1]
Ingame[2]
Ingame[3]

I broke up Ingame.mvs into 3 archives because of the size. You'll need RAD Video Tools to watch them.

I'm having no luck trying to get movies working completely from projects in the addon folder with vanilla SWBF2 (1.1)
The closest i've come was getting these type errors:
Message Severity: 2
C:\Battlefront2\main\RedEngineFL\movie\RedMovie.cpp(669)
Segment 0x66e6fad5 does not exist in movie 0x985c8f54

There must be something simple we're just not seeing.

Gametoast Staff
User avatar
Posts: 2973
Joined: Sun Feb 26, 2006 7:36 am
Location: USA
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set

Re: Custom Movies Research (FAQ)

Postby [RDH]Zerted » Wed Jul 15, 2015 10:11 am

It could simply be broken for mod maps. Does your movie code work if you run your map as a shell map? Are you willing to post all the steps you've done or do they match what others have tried?

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Movies Research (FAQ) - Preview Videos

Postby AceMastermind » Thu Jul 16, 2015 11:43 pm

Your guide in the first post for Steps For Replacing ingame.mvs works fine when using existing names. If you want to try a custom .bik file name (segment) then you'll also need to edit ingame_movies.mcfg in data_ABC\Common\mission and add a new MovieProperties() block.

I wanted to see how far I could customize the naming so I opened mission.req and changed this part:
Code: Select all
ucft
{
    REQN
    {
        "config"
        "ingame_movies"   
    }

to this:
Code: Select all
ucft
{
    REQN
    {
        "config"
        "somename_movies"   
    }


I went into data_ABC\Common\mission and created a new file named somename_movies.mcfg and copied this into it:
Code: Select all
MovieProperties()
{
     Name("abcmon01"); //called from LUA
     FadeInTime(0.0);
     FadeOutTime(0.0);
     Movie("ingame"); //mvs file or hard coded label?
     SegmentList()
     {
        Segment("abcmon01", 1.0, 0); //bik video
     }
}


Added this to my ABCc_con.lua at the bottom of ScriptPostLoad:
Code: Select all
ScriptCB_PlayInGameMovie("ingame.mvs", "abcmon01")


The mvs file is named ingame. My movie property in the mcfg file was named abcmon01

Munged and it still worked, the movie played at the beginning of the level. That was as far as my customization went.

Changing the name of the ingame.mvs to anything else breaks the whole thing.
Placing the ingame.mvs anywhere but GameData\DATA\_LVL_PC\MOVIES wouldn't work.
I tried to get the mvs location read from addon by trying these:
Code: Select all
ScriptCB_PlayInGameMovie("..\..\..\Addon\ABC\data\_LVL_PC\Movies\ingame.mvs", "abcmon01")
ScriptCB_PlayInGameMovie("dc:Movies\\ingame.mvs", "abcmon01")

to no avail.

There are no file names stored in the mvs file. I don't know if the game knows which movie to play is by order or some kind of crc thing.

ingame.mvs is mentioned in the BattlefrontII.exe at 0x3C05F4

I'm interested in this from Zerted's 2nd post
Code: Select all
ScriptCB_SetDCMap(movieFile)

I think i'll play around with that and see what happens.

Previous

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest