Page 1 of 1

Hugor with new video support

Posted: Tue Dec 25, 2018 3:22 pm
by RealNC
I've integrated libVLC into Hugor so that video can be reliably supported in Windows too, not just Linux.

The only game I know about that has video is Future Boy which only uses Cinepak videos. But if anyone intents to write a game with 4K H264 video and whatnot, well it should work since Hugor can now play anything VLC can (which is... pretty much everything :razz:)

Latest development build for Windows:

http://83.212.107.13/~realnc/hugor/test ... -12-25.zip

libVLC and its codecs do increase the size quite a bit though. However, it is loaded dynamically and Hugor.exe can still be used on its own. If the DLL files are missing, video support will be disabled.

Give it a test with Future Boy.

Re: Hugor with new video support

Posted: Tue Dec 25, 2018 6:03 pm
by Ice Cream Jonsey
Thanks - there is one thing that I have noticed that I need to track down, in terms of a possible glitch with the last one. If I leave Cyberganked open for a while (like a few hours) and then close it using the red X thing in the upper right of a window (so - not using the quit command) I have gotten crashes. I will see if I can reproduce this.

We should also see if Kent wants our help distributing Future Boy.

Re: Hugor with new video support

Posted: Wed Dec 26, 2018 10:27 am
by RealNC
I suspect a thread termination issue. This might not be related to how long the interpreter has been running. Try running a game in it and close the interpreter immediately. Try doing that a dozen times or so. Renaming Hugor.exe to the same basename as the game makes this quicker (to avoid the gamefile dialog).

Re: Hugor with new video support

Posted: Fri Dec 28, 2018 6:45 pm
by RealNC
I need help with testing video support on macOS. I don't have a real Mac anymore and am using a macOS virtual machine. LibVLC does not play video in that due to lack of hardware acceleration. So I need others to verify whether video is playing in Future Boy or not.

Can you download this:

http://83.212.107.13/~realnc/hugor/test ... -12-28.zip

And test it? It requires macOS 10.12, 10.13 or 10.14.

Re: Hugor with new video support

Posted: Fri Dec 28, 2018 9:25 pm
by Ice Cream Jonsey
I can do it - I will charge my Mac tomorrow and give it a go.

Re: Hugor with new video support

Posted: Fri Dec 28, 2018 9:36 pm
by RealNC
I also asked for help on intfiction.org:

https://www.intfiction.org/forum/viewto ... 38&t=27062

Since not many people own Future Boy, I made a small test game that shows a video loop:

http://83.212.107.13/~realnc/hugor/test ... eoTest.zip

If the video plays, what I'd like to know is whether or not the interpreter hangs when you press escape repeatedly while the video plays.

Re: Hugor with new video support

Posted: Sun Dec 30, 2018 11:06 am
by Ice Cream Jonsey
RealNC - I can separate the crash stuff in a different thread.

Here is a crash I just had:
Problem signature:
Problem Event Name: APPCRASH
Application Name: cyberganked.exe
Application Version: 1.0.0.99
Application Timestamp: 5c157fff
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 00000000
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
And I got that by quitting the program with the x up top on Windows 7.

Re: Hugor with new video support

Posted: Sun Dec 30, 2018 11:07 am
by Ice Cream Jonsey
Oh and in the above case, cyberganked.exe had been running for maybe less than a minute.

Re: Hugor with new video support

Posted: Sun Dec 30, 2018 11:11 pm
by Ice Cream Jonsey
I had it happen again and it was up for hours.

Re: Hugor with new video support

Posted: Tue Jan 01, 2019 11:21 am
by Ice Cream Jonsey
I discovered that my Mac is out of energy - charging it now so I can test the video stuff.

Re: Hugor with new video support

Posted: Sun Feb 10, 2019 3:01 pm
by Ice Cream Jonsey
I really fucked up. RealNC, would you still like this tested on a Macbook?

Re: Hugor with new video support

Posted: Mon Feb 11, 2019 7:48 am
by RealNC
Sure.

Re: Hugor with new video support

Posted: Mon Feb 11, 2019 8:40 am
by pinback
Just gotta wait for that badboy to finish charging! Shouldn't be long now.

Re: Hugor with new video support

Posted: Mon Feb 11, 2019 1:06 pm
by RealNC
Image

Re: Hugor with new video support

Posted: Wed Feb 20, 2019 11:25 am
by Ice Cream Jonsey
RealNC wrote: Fri Dec 28, 2018 6:45 pm I need help with testing video support on macOS. I don't have a real Mac anymore and am using a macOS virtual machine. LibVLC does not play video in that due to lack of hardware acceleration. So I need others to verify whether video is playing in Future Boy or not.

Can you download this:

http://83.212.107.13/~realnc/hugor/test ... -12-28.zip

And test it? It requires macOS 10.12, 10.13 or 10.14.
I did get around to trying this, but the ZIP isn't there - what location should I try to get it? (I got the test file below OK.)

Re: Hugor with new video support

Posted: Wed Feb 20, 2019 5:59 pm
by RealNC

Re: Hugor with new video support

Posted: Tue Feb 26, 2019 9:19 am
by Ice Cream Jonsey
I will turn on guest posting here and I will test video this week.

Re: Hugor with new video support

Posted: Mon Mar 18, 2019 9:46 am
by RealNC
Final build, unless somebody finds bugs:

http://83.212.107.13/~realnc/hugor/test ... -03-18.zip

Game for testing video:

http://83.212.107.13/~realnc/hugor/test ... eoTest.zip

The two major changes since the last build is the option to use OPL3 emulation for MIDI, and the ability to change the text cursor to an underline or block (these work best with fixed-width fonts; not really meant for proportional fonts.)

Re: Hugor with new video support

Posted: Fri Mar 22, 2019 3:26 pm
by RealNC
For Linux, it seems the AppImage format is quite useful. I packaged Hugor as an AppImage which should run on everything at least as recent as Ubuntu 16.04. Since AppImage is a bundle format, no dependencies are needed to be installed by the end user. Includes full audio and video support with all codecs and libraries already included. Simply right-click, extract, run:

http://83.212.107.13/~realnc/hugor/test ... -22.tar.gz

It's 64-bit only. AppImage doesn't support 32-bit.