Hugor with new video support

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: AArdvark, Ice Cream Jonsey

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Hugor with new video support

Post by RealNC » Tue Dec 25, 2018 3:22 pm

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.

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Tue Dec 25, 2018 6:03 pm

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.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Wed Dec 26, 2018 10:27 am

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).

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » 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.

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Fri Dec 28, 2018 9:25 pm

I can do it - I will charge my Mac tomorrow and give it a go.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Fri Dec 28, 2018 9:36 pm

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.

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Sun Dec 30, 2018 11:06 am

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.
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Sun Dec 30, 2018 11:07 am

Oh and in the above case, cyberganked.exe had been running for maybe less than a minute.
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Sun Dec 30, 2018 11:11 pm

I had it happen again and it was up for hours.
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Tue Jan 01, 2019 11:21 am

I discovered that my Mac is out of energy - charging it now so I can test the video stuff.
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Sun Feb 10, 2019 3:01 pm

I really fucked up. RealNC, would you still like this tested on a Macbook?
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Mon Feb 11, 2019 7:48 am

Sure.

User avatar
pinback
Posts: 13189
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Re: Hugor with new video support

Post by pinback » Mon Feb 11, 2019 8:40 am

Just gotta wait for that badboy to finish charging! Shouldn't be long now.
Above all else... We shall go on... And continue!

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Mon Feb 11, 2019 1:06 pm

Image

User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Wed Feb 20, 2019 11:25 am

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.)
the dark and gritty...Ice Cream Jonsey!


User avatar
Ice Cream Jonsey
Posts: 21698
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey » Tue Feb 26, 2019 9:19 am

I will turn on guest posting here and I will test video this week.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Mon Mar 18, 2019 9:46 am

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.)

User avatar
RealNC
Posts: 1382
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC » Fri Mar 22, 2019 3:26 pm

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.

Post Reply