Movies...

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
Yodakid
Second Lance Corporal
Second Lance Corporal
Posts: 117
Joined: Sat Nov 22, 2008 5:43 pm
Projects :: Something old
Games I'm Playing :: TES Online AC Unity
xbox live or psn: No gamertag set
Location: Finland

Movies...

Post by Yodakid »

Okay, The last time have I spent on trying to get custom ingame movies without replacing any files. I know that no one have done it before but I just wanted to try. I came so far that the game is loading my movie (at least think so) but then it chrashes. Here's the errors:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(561)
attempted to allocate from invalid heap -1

Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(538)
Allocating 33 bytes failed - no free blocks left in Heap -1 ()
I'm not asking for a sulotion, I'm only asking what this errors means.

EDIT: Also found this:
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\RedEngineFL\movie\RedMovie.cpp(669)
Segment 0xbfde5399 does not exist in movie 0x436ddf48
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Movies...

Post by Grev »

The movies were not released with the modtools.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Movies...

Post by Fiodis »

Yep. But...are custom movies possible?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Movies...

Post by Maveritchell »

Fiodis wrote:Yep. But...are custom movies possible?
Short story: Yes, but they currently overwrite stock movies.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Movies...

Post by Fiodis »

Ah, thank you for the explanaition, Mav! I'm afraid explanaitions spawn more questions, though. Normally I refrain from posting those leads, but this time I'll let one slip through, only because it is a simple yes-no. Does that break online compatability?
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 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: Watching your PC over your shoulder. No, the other sholder....

Re: Movies...

Post by Master_Ben »

Maveritchell wrote:
Fiodis wrote:Yep. But...are custom movies possible?
Short story: Yes, but they currently overwrite stock movies.
But in Custom Movies REsearch in the FAQ, Zerted wrote:
What We Can Do So Far:
-Replace the retail ingame.mvs with one containing your custom moive. Note, this will remove all the retail movies and is not shippable with your mod map.
-Play any custom movie in the shell from any file through a modified shell
So what's going on?
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: Movies...

Post by [RDH]Zerted »

The v1.3 patch allows you to add custom movies to your map. However, it only displays them in the map selection screen (i.e. in the shell instead of in the game).

The code that displays the inshell movies gives those RedMemory errors when used in a normal game. I don't know it if will work inside a cGC, since those maps are loaded slightly differently.

There is a movie research topic somewhere on GT that has almost all the the custom movie info, as well as the basic changes needed inorder for the shell to display the map's custom movies. The exact code for the inshell movie playing was in the v1.3 patch's source, but I lost that...

The error message is saying some internal data structure in the game is trying to get memory but is failing to do so. I forget exactly what the problem is for the 'does not exist' message, but I've gotten it a bunch of times and it can be fixed. I believe it deals with what lvl it is loading to read the movies from and how the movie was munged into that lvl. It is that or you forgot some lines in the movie config files (or both).
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 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: Watching your PC over your shoulder. No, the other sholder....

Re: Movies...

Post by Master_Ben »

Ooooohh. The selection screen. I see.
Yodakid
Second Lance Corporal
Second Lance Corporal
Posts: 117
Joined: Sat Nov 22, 2008 5:43 pm
Projects :: Something old
Games I'm Playing :: TES Online AC Unity
xbox live or psn: No gamertag set
Location: Finland

Re: Movies...

Post by Yodakid »

As you know I've been trying to get a custom ingame movie (as in campaign) to work without replacing any files. I've failed, so now I'm going to leave this movie stuff.
At last, this was what I ended up with:
This is what my errorlog says:
Hidden/Spoiler:
custom_SetMovieLocation()
custom_GetGCButtonList()
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
and at the end:
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\RedEngineFL\movie\RedMovie.cpp(669)
Segment 0xbfde5399 does not exist in movie 0x436ddf48
My video was named lopmon01 and the file was named ingama.mvs
I tryed to call it into the game with this lua codes:
ReadDataFile("dc:movies\\ingama.mvs")
ScriptCB_PlayInGameMovie("dc:movies\\ingama.mvs","lopmon01")

Also edited ingame_movies.mcfg in C:\BF2_ModTools\data_TES\Common\mission
to look like : (a part of it)
Hidden/Spoiler:
// Deathstar
MovieProperties()
{
Name("lopmon01");
Inherit("ingame_template");
Movie("ingama");
SegmentList()
{
Segment("lopmon01", 1.0, 0);
}
}
Also note that when I removed the movie file from addon I got this:
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\GameMovie.cpp(399)
Unable to find open movie segment lopmon01
Post Reply