Page 1 of 1

Movies...

Posted: Thu Jan 29, 2009 5:37 pm
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

Re: Movies...

Posted: Thu Jan 29, 2009 6:57 pm
by Grev
The movies were not released with the modtools.

Re: Movies...

Posted: Thu Jan 29, 2009 7:15 pm
by Fiodis
Yep. But...are custom movies possible?

Re: Movies...

Posted: Thu Jan 29, 2009 7:17 pm
by Maveritchell
Fiodis wrote:Yep. But...are custom movies possible?
Short story: Yes, but they currently overwrite stock movies.

Re: Movies...

Posted: Thu Jan 29, 2009 7:28 pm
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?

Re: Movies...

Posted: Thu Jan 29, 2009 7:36 pm
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?

Re: Movies...

Posted: Thu Jan 29, 2009 7:46 pm
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).

Re: Movies...

Posted: Thu Jan 29, 2009 8:01 pm
by Master_Ben
Ooooohh. The selection screen. I see.

Re: Movies...

Posted: Fri Jan 30, 2009 6:20 pm
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