Off Topic / Can I add and play some wmv files into game ?

Author
Message
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 28th Dec 2014 18:32
One big question:
Can I add and play some wmv files into game ?
Thanks in advance if you answer me.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 29th Dec 2014 16:46
This is need to can add some story video file in game.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 5th Jan 2015 18:33
No one idea ?!?

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 5th Jan 2015 20:28
Simple answer is no, at this stage video files are not supported

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 6th Jan 2015 06:08
Post in the feature request board. Its something we want for sure. It was in FPSCx9 not sure why its not in Reloaded yet.

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
tomjscott
User Banned
Posted: 9th Jan 2015 17:46
Yes, this is possible, but only by invoking an external video player such as mplayer or windows media player. I can't remember the exact syntax, but it is done using the os.execute LUA command. There should be information on this in some thread in the scripts forum. I've posted it there before, as far back as version 1.007.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 19th Jan 2015 09:22
tomjscott wrote: "Yes, this is possible, but only by invoking an external video player such as mplayer or windows media player. I can't remember the exact syntax, but it is done using the os.execute LUA command. There should be information on this in some thread in the scripts forum. I've posted it there before, as far back as version 1.007."

Yes, I've try bellowed lua script with a trigger, but not working



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
tomjscott
User Banned
Posted: 19th Jan 2015 14:32
It looks like you're killing the player as soon as you start it. It looks like the intention of your code starting with video_started is somehow intended to pause things for 20 seconds, but that is not what will happen. You're going to start wmplayer and kill it immediately with that code.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 20th Jan 2015 20:41 Edited at: 20th Jan 2015 20:47
I've try another code, but the wmplayer not autoplay the wmv file.

I put in the WMP executable shortcut, (after "\wmplayer.exe") this code:



(The Windows Media Player (v 11) start and direct play the video if I click om hes "exe" command).

And in scriptbank this "video.lua" script:



The WMP still start in game, but don't play.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
tomjscott
User Banned
Posted: 20th Jan 2015 21:30
You have Playing instead of NowPlaying and I don't see a video file name either. To be honest, though, my experiments with wmplayer have been less than the best. I switched to mplayer myself and have a much better play experience. I even integrated a playvideo function into Omega Core that uses mplayer.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Jan 2015 08:39 Edited at: 21st Jan 2015 12:31
I think the WMP just must to start playing in the video.lua script because the video it is already in the

WMP shortcut command (for wmplayer.exe):



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
tomjscott
User Banned
Posted: 21st Jan 2015 15:38
Your code snippet still says Playing instead of NowPlaying. Here is the command line help for wmplayer that might help you out.

https://msdn.microsoft.com/en-us/library/windows/desktop/dd562624(v=vs.85).aspx

Also, the best way to debug this is to simply go to a command line prompt and try typing the command manually to see if it works there. That might tell you what is wrong or help you figure out the correct way to get it working on your system.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Jan 2015 20:03 Edited at: 21st Jan 2015 20:42
It's true, I just copy the old command for the WMP in my previous post.

Te correct command for the WMP who working now is:





and the actual video.lua script is:



The WMP it's opening in game, but I must manually start the Playing, like in picture attached here.

Of course, the part with os.execute("Task Exit wmplayer") is not in lua code for the moment.

P.S. Better was if I can add the dos command in the video.lua script. I mean to can add the WMP path (C:\myvideofile.wmv) after "Task NowPlaying" of video. lua script:



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."

Attachments

Login to view attachments
tomjscott
User Banned
Posted: 21st Jan 2015 20:36
You should really try mplayer instead. It works far better. It even automatically kills the player when the video is done playing, which is not something wmplayer allows you to do anymore.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Jan 2015 20:44 Edited at: 21st Jan 2015 20:59
I've try the mplayer too, but for me not working well. I use windows XP -SP3 (x86)....

Later edit: and now not anymore from were to I can download "mplayer", I found just some Media Player Classic or other the same,

like this "MPlayer for Windows 2014-09-29 (Build #127)" <- this is ok ?

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Jan 2015 22:51 Edited at: 21st Jan 2015 22:54
I made-it first step with the Windows Media Player !

Now must find the right way to can stop that video after finishing playing.

Here is the actual code, I have no clue about the lua scripting, so sorry for mess in it :



And the video (Don't know why the Bandicam not take the corect sound like the Fraps) :



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."
tomjscott
User Banned
Posted: 22nd Jan 2015 04:06
Here is where I got the version I'm using.

https://mplayerhq.hu/design7/news.html

But I don't remember the specific download link or anything like that.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 23rd Jan 2015 12:11 Edited at: 23rd Jan 2015 12:16
I want to use the WMP to can be played in any windows OS. So, the user is not forced to install additional video software to can view the video in game.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea

"The best forum, game software, operating system or web platform, it's that software which can give you most of the options and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-05-03 08:57:28
Your offset time is: 2024-05-03 08:57:28