Hugor with new video support

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

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

Hugor with new video support

Post 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.
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post 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.
the dark and gritty...Ice Cream Jonsey!
User avatar
RealNC
Posts: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post 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).
User avatar
RealNC
Posts: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post 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.
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

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: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post 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.
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post 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.
the dark and gritty...Ice Cream Jonsey!
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

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: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

I had it happen again and it was up for hours.
the dark and gritty...Ice Cream Jonsey!
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

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: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

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: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC »

Sure.
User avatar
pinback
Posts: 14593
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Re: Hugor with new video support

Post by pinback »

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: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post by RealNC »

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

Re: Hugor with new video support

Post 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.)
the dark and gritty...Ice Cream Jonsey!
User avatar
Ice Cream Jonsey
Posts: 23505
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new video support

Post by Ice Cream Jonsey »

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: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post 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.)
User avatar
RealNC
Posts: 1673
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new video support

Post 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.
Post Reply