Hugor request/improvement - for RealNC

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

Post by Ice Cream Jonsey »

Yes, making this a sticky right now.
the dark and gritty...Ice Cream Jonsey!

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

Post by Ice Cream Jonsey »

RealNC wrote:Just finished all new builds:

http://83.212.107.13/~realnc/hugor/icj/Hugor-icj.zip

All builds use the shiny new audio engine, so there's no license problems, no chipmunk speed with some of the MP3s and no horrible audio quality when resampling is needed.

MIDI and Video support is disabled.

All the previous info on how to package the game still applies:

http://www.joltcountry.com/phpBB2/viewt ... ght=#82020
Nikos, is it correct in saying that this is the latest build for Hugor?
the dark and gritty...Ice Cream Jonsey!

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

Post by RealNC »

These builds lack opcode support, but otherwise, they should be fine.

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

Post by RealNC »

Oh, and no MIDI support. So Crimson Spring's MIDI music won't play.

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

Post by Ice Cream Jonsey »

Is the MIDI thing something that Hugor won't have? (Not me trying to give you work to do, just asking because I can't find if there was a discussion on it.)
the dark and gritty...Ice Cream Jonsey!

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

Post by RealNC »

I'd need to implement native MIDI for all three platforms. And on Windows it's a deprecated API (but since it's Windows, they'll be providing the API anyway for probably the next 10 years or so.)

The old audio engine is just SDL_mixer, which does implement MIDI for all platforms (and thus Hugor 1.0 has MIDI support), but it has shitty support for non-MIDI stuff. Which is why I wrote a new audio engine.

However, that also means I now need to support MIDI myself, and doing three implementations for each platform is more work. What I want to do is just do MIDI synthesis in the interpreter and ship a soundfont (SF2 file) with it. Which also means it will sound better, and most importantly, will sound exactly the same on all platforms. In Hugor 1.0, MIDI sounds completely different between Windows, Linux and Mac.

I'm also toying with the idea of letting the game use its own soundfont.

Right now, all parts are actually in place. The only thing that's missing is finding a soundfont file that a) sounds good, b) is small (something like 5MB), and c) is redistributable without worrying about copyright infringement.

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

Post by RealNC »

Btw, this is the new audio engine:

https://github.com/realnc/SDL_audiolib

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

Post by Ice Cream Jonsey »

the dark and gritty...Ice Cream Jonsey!

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

Re: Hugor request/improvement - for RealNC

Post by Ice Cream Jonsey »

You're right, putting text in those boxes rather than just images is going to result in problems. What I'm saying is that relying on a specific font and size is not gonna work. For example, "Terminal" at 10pt is just too tiny for me. And I assume for other people too. It's not a scalable font. It's a bitmap font, and as such 10pt means different things for, say, 20" monitors and 27" monitors if they both are 1920x1080. On a 20", 10pt is going to be tiny. It will not scale.

I'll include a CFG override that you can set something like:

fixedFont = "Terminal,10"
I tried this out today and I might have messed something up?

I changed a file called dawn.cfg to look like this:

Code: Select all

[Identity] 
; Application name. 
; If this is set, authorName must also be set. 
appName = Fallacy of Dawn

; Author/organization name. 
; If this is set, appName must also be set. 
authorName = Jolt Country

[Display] 
; Start in fullscreen mode. 
; true or false. 
fullscreen = true

; Maximum display width in fullscreen mode. 
; The value is in pixels. 
fullscreenWidth = 1920 

; Hide the menu bar. 
; true or false. 
hideMenuBar = true 

; Left/right margin in pixels. 
marginSize = 5 

; Size of proportional-width font. 
; The value specifies a point size, not pixels. 
propFontSize = 15

; Size of fixed-width font. 
; The value specifies a point size, not pixels. 
fixedFontSize = 11

; Default Fixed Font for Windows.
fixedFont = "Terminal,11"   

; Use a bilinear filter when scaling images. 
; true or false. 
imageSmoothing = true 


[Media] 
; Pause audio when application loses desktop focus. 
; true or false. 
backgroundPauseAudio = true

Previousiy the authorName was my name. By changing it, my understanding is that I create a new registry key.

However, when I did that, the fixedFont defaulted to Courier New at 11 points instead of picking up Terminal 11. Is it possible that Hugor is not reading those values correctly? I can put a zip up if that would help troubleshoot.
the dark and gritty...Ice Cream Jonsey!

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

Re: Hugor request/improvement - for RealNC

Post by Ice Cream Jonsey »

And ACTUALLY, rather than fight the world on this (I am fighting the world on this) I am going to change the box on the right to not be of a different color.
the dark and gritty...Ice Cream Jonsey!

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

Re: Hugor request/improvement - for RealNC

Post by Ice Cream Jonsey »

OK, I changed Fallacy of Dawn to not have a cyan inventory window. It's just black so it looks like it lines up.
the dark and gritty...Ice Cream Jonsey!

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

Re: Hugor request/improvement - for RealNC

Post by RealNC »

Ice Cream Jonsey wrote:
Mon Oct 05, 2020 10:43 am
I changed a file called dawn.cfg to look like this:

Code: Select all

[Identity] 
; Default Fixed Font for Windows.
fixedFont = "Terminal,11"   
Previousiy the authorName was my name. By changing it, my understanding is that I create a new registry key.

However, when I did that, the fixedFont defaulted to Courier New at 11 points instead of picking up Terminal 11. Is it possible that Hugor is not reading those values correctly? I can put a zip up if that would help troubleshoot.
That's because I never actually got around to implement that and then forgot about it :mrgreen:

It would be nice if you could open feature requests for stuff like that here:

https://github.com/realnc/hugor/issues

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

Re: Hugor request/improvement - for RealNC

Post by Ice Cream Jonsey »

I am happy to do that. I will do that! And thanks again for Hugor. It's important to me that you know how much I appreciate it.
the dark and gritty...Ice Cream Jonsey!

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

Re: Hugor request/improvement - for RealNC

Post by Ice Cream Jonsey »

Okay, I opened it up. I changed Fallacy of Dawn to look like this:

Image

So right now I do not need that feature. It'd be a "nice to have" for Cyberganked but that's at least a while away. And Jesus, you are doing all of this in your spare time so please don't think I am pestering you about it in any way!
the dark and gritty...Ice Cream Jonsey!

Post Reply