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

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

Re: Custom Movies Research (FAQ)

Post by GAB »

I'm not sure if he's back or not. I just contacted him via e-mail.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Custom Movies Research (FAQ)

Post by [RDH]Zerted »

: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
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Custom Movies Research (FAQ)

Post by AceMastermind »

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.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Custom Movies Research (FAQ)

Post by [RDH]Zerted »

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?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Movies Research (FAQ) - Preview Videos

Post by AceMastermind »

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.
TemueraBeatsBaker501
Private Recruit
Posts: 23
Joined: Tue May 08, 2018 4:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2 05 + BF2EA
xbox live or psn: LethalSwampApe

Re: Custom Movies Research (FAQ)

Post by TemueraBeatsBaker501 »

Heads up I downloaded these files and plan to AI enhance. These are probably the rawest versions of these videos I can get. If they're interlaced I'll deinterlace.
TemueraBeatsBaker501
Private Recruit
Posts: 23
Joined: Tue May 08, 2018 4:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2 05 + BF2EA
xbox live or psn: LethalSwampApe

Re: Custom Movies Research (FAQ)

Post by TemueraBeatsBaker501 »

Man these look gorgeous deinterlaced and upscaled. Will post a link here when done and post a link to this thread in vid description.
TemueraBeatsBaker501
Private Recruit
Posts: 23
Joined: Tue May 08, 2018 4:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2 05 + BF2EA
xbox live or psn: LethalSwampApe

Re: Custom Movies Research (FAQ)

Post by TemueraBeatsBaker501 »

Post Reply