• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Mod - Movies

Just got stuck watching the Oxbay video again.
Argh!

This mod will enable you to (well, sorta) turn off movies, and it makes _all_ movies skippable.
First, add
#define ENABLE_VIDEOS 0 //set to 0 to disable videos
somewhere in build settings.

Then, open interfaceinterface.c
Find function void StartVideo(string vidName)
scroll down to
bPlayVideoNow = true;
Replace from there until the end of the function with:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->bPlayVideoNow = true;

    // NK enable break all videos

    /*if( vidName=="Artefact" ||

 vidName=="BlackPearl" ||

 vidName=="Ending" ||

 vidName=="Invasion" ||

 vidName=="Temple"

 ) {*/ bBreakVideoDisable = true; //}

    //else {bBreakVideoDisable = false;}

    // NK <--



    // NK allow disable videos

    if(!ENABLE_VIDEOS)

    {

 PostEvent("ievntEndVideo",0);

 return;

    }

    // NK <--



    SetEventHandler("Control Activation","IVideoBreak",0);

    if(!IsEntity(aviVideoObj))

    {

 Trace("Can`t create video player");

 PostEvent("ievntEndVideo",0);

    }

}<!--c2--></div><!--ec2-->

This is a hack. The video will play for ~1/4 of a second and then stop.
I didn't want to wast the time finding how to _actually_ skip the video. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
I just delete the movies from the game files. I've seen every one of them so many times it's not even funny.
 
i rename them. i can't bring myself to actually delete them <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />



<b>nathan</b>, was there a problem with doing this:

find this line:

<b>SendMessage(&aviVideoObj,"ls",MSG_SET_VIDEO_PLAY,GetVideoFileName(vidName));</b>

(just above the chunk of code yuo quoted)
and replace with:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    if (ENABLE_VIDEOS == 0)

    {

 Trace("Video was skipped. MWAHAHAHAHA!!!");

    }

    else

    {

 SendMessage(&aviVideoObj,"ls",MSG_SET_VIDEO_PLAY,GetVideoFileName(vidName));

    }<!--c2--></div><!--ec2-->


? i dunno if you've already tried that, seems a bit less `hack-y` that way <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

otherwise, i've found another hack. you could edit this function in PROGRAMINTERFACEinterface.c:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->string GetVideoFileName(string baseName)

{

    if( GetTargetPlatform()=="pc" ) return baseName+".wmv";

    return baseName+".xmv";

}<!--c2--></div><!--ec2-->

because if it doesn't find a video with the right filename it simply skips <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Heh, yes, I rename them too... Although there WAS that Disney one I overwrote with my PA! cannonball meltdown, LOL... The only thing was, it had the wrong URL on it. I should look into fixing that, except that it's just like the other movies, well, ya seen it once, and think it's annoying the other 99 times you see it. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

I *do* like that one in the Temple, tho. That one is pretty cool.

And the Trailer one is pretty nice, I have to say...

Anyhoo, sorry, <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" /> Rambling ...
 
hey nathan i dunno if you read this? i think it's nicer if you add the 'if' statement around the sendmessage command, which doesn't even let the videos start, rather than stopping them after they've started <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Shoot, sorry, forgot to reply here. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" /> Yeah, changed it to your method before comitting. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
{The rename filename version}
 
Back
Top