Adding local video to sprcial actions?

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
thegreengrenade
Posts: 3
Joined: Tue Mar 12, 2019 12:10 am

Adding local video to sprcial actions?

Post by thegreengrenade »

I brought a video into the scenario attachments, but I can't figure out how to add it to the event editor. I want to have a fake news broadcast pop up when certain triggers happen. If anyone cant detail the process, or provide a link to another thread or tutorial video I would be grateful. Thanks.
Whicker
Posts: 665
Joined: Tue Jun 19, 2018 9:54 pm

RE: Adding local video to sprcial actions?

Post by Whicker »

interesting idea - according to the docs you can do it, and I was able to get it to work but there are some options that are not documented that I think you would want to use.

http://www.warfaresims.com/index.php?s=New+in+v1.07%3A

scroll down to the bottom - new in 1.09:
New attachment type: Local video file (local = stored on hard drive, not streamed e.g. YouTube). Has option for full-screen or windowed mode, and optional delay before playing. The video file must be in WMV format (the “Movie Maker” application included in Windows can easily convert almost any media format to WMV).

I added an wmv as an attachment, then went to the folder in the AttachmentRepo folder to get the guid and then in the lua console did:

ScenEdit_UseAttachment ('c5c07d4e-fdb6-47a7-a113-35d901d79806')

and it popped up immediately - full screen - and started playing. I could not close it - it closed on its own when it was over. I think for this to work it would need to be wrapped in an html message, but not sure how you could do that.

It also ate up a lot of memory even though it was only 6 seconds or so.
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Adding local video to sprcial actions?

Post by michaelm75au »

I think the ESC key should stop it.
Michael
thegreengrenade
Posts: 3
Joined: Tue Mar 12, 2019 12:10 am

RE: Adding local video to sprcial actions?

Post by thegreengrenade »

Ahh, I think the AttatchmentRepo folder was the missing step. Thanks for the link to that other page. I remember reading that you could do it, but I forgot where to find the page again. Hopefully I can compress them down to a manageable size.
thegreengrenade
Posts: 3
Joined: Tue Mar 12, 2019 12:10 am

RE: Adding local video to sprcial actions?

Post by thegreengrenade »

Everything worked out just like you said, but I can't find the options to reduce window size and delay playing time as it said in the new in v1.09. Did you come across it in your attempt? Having it full screen is a little annoying, especially if I want to keep the resolution down. I see how the MBs could pile up as my goal is to have scenarios with many different sides and I really want media coverage of specific events to affect the postures of different sides and video would be more immersive than just a text special message. Plus I'm a video editor so it would be more fun for me to create as well. I thought about just putting hyperlinks to separate web page, but I don't want to limit the scenario only to those online and I don't want my scenario file to hog up everyone's hard drive either. IDK maybe my goals are a little lofty for the game lol.
Whicker
Posts: 665
Joined: Tue Jun 19, 2018 9:54 pm

RE: Adding local video to sprcial actions?

Post by Whicker »

I like the idea, but not sure the game is ready for it. Close though maybe.

I didn't find any documentation for the options.

I would love to be able to attach any media - including images/video. And have the html browser be more robust - as it is it is a bit limited from a styling point of view. If the html message was full html5 capable (not even sure this is the problem, but I have not has much success with anything other than limited inline css) and the attachment paths could be used it would be super cool - you could style a pop up message really well and include images and videos as needed.
i224747
Posts: 89
Joined: Fri Nov 06, 2015 1:19 am

RE: Adding local video to sprcial actions?

Post by i224747 »

ORIGINAL: Whicker
...
it would be super cool - you could style a pop up message really well and include images and videos as needed.

He is right
Dimitris
Posts: 15541
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: Adding local video to sprcial actions?

Post by Dimitris »

So the request is.....?
Whicker
Posts: 665
Joined: Tue Jun 19, 2018 9:54 pm

RE: Adding local video to sprcial actions?

Post by Whicker »

just to be able to do more with the html message pop up - as it is I don't think you can embed an image, you can embed a video but you can't control it much. Would be nice if you could style things better. There is an attachment type for video, seems like there should be one for images. There also needs to be some documentation for it as well, cause even though video is a supported attachment there really wasn't any info on what you could do with it.

As it is even the briefing/description are like coding html for an email - very old school and limited (for example if you want to style an li you have to style every li rather than having a style section to style all li's). If whatever browser those are using could be more modern (full html 5 would be awesome) then it would be nice to have that as well- though I realize that is a different issue than this post which is about having an event pop up an html message and having that message support media such as images and video better.

I think my request would be that (in addition to supporting images as an attachment) the html message, description and briefing all supported an internal style section where at the top you could have:

Code: Select all

 <style>
 body {background-color: powderblue;}
 h1   {color: blue;}
 p    {color: red;}
 </style>
 

sorry for the uncreative example, copy and paste from w3schools.
Whicker
Posts: 665
Joined: Tue Jun 19, 2018 9:54 pm

RE: Adding local video to sprcial actions?

Post by Whicker »

not saying this is a big deal though, I think the fact that you can have an html message is awesome on its own, just could be more awesome.
Post Reply

Return to “Tech Support”