Could anyone help me??

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

Tony Vaz
Posts: 4
Joined: Sat Mar 08, 2003 1:11 pm

Could anyone help me??

Post by Tony Vaz »

I've been programing stuff for some time now, and know a bit on C, java, html... However I can't get to compile anything with the Hugo compiler.
Supposedly, I write the code in a word processor, like notepad, then save it so it becomes a ".hug" file; right? To do this, I used a neat trick I learnt when programing java: in notepad, when I saved, instead of typing say "game", then clicking on save, I typed: "game.hug", then saved. I did this on the sample game that was available on the coffee company website. I take it there was no need to debug anything in it, but passed it though the debugger anyway just to make sure.
At this point, I take it the debugger did its work, but gave me no notification message. Then I tried to compile the sample, only to tell me it cannot compile. :sad: What am I doing wrong? I have given it many hours of work in vain... Can anyone help??

Roody_Yogurt
Posts: 2256
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

Um, well, when you open the compiler, click on 'cancel' to close the initial compiling window, then click on 'options' and go to setup...

Then make sure that the program is looking for your libraries and things in the right places and fix it if it's wrong.

That's the most likely error, although I'd also consider using a better editor (instead of notepad) like PFE or EditPlus or something.

looper
Posts: 94
Joined: Mon Feb 24, 2003 12:32 am
Location: CA

Post by looper »

You could also have inadvertently saved your file as game.hug.txt

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

Re: Could anyone help me??

Post by Ice Cream Jonsey »

Tony Vaz wrote:To do this, I used a neat trick I learnt when programing java: in notepad, when I saved, instead of typing say "game", then clicking on save, I typed: "game.hug", then saved. I did this on the sample game that was available on the coffee company website. I take it there was no need to debug anything in it, but passed it though the debugger anyway just to make sure.
At this point, I take it the debugger did its work, but gave me no notification message. Then I tried to compile the sample, only to tell me it cannot compile.
You're running the compiler on the sample.hug file and not the debug file, right?

You'd also want to make sure that you have the Hugo Library in the same directory you have Sample.hug in. I can't remember off the top of my head if Sample requires the library, but it won't hurt to have it there.

(Also, if you get a successful compile, by default it won't say anything. )

If all of this maps what you're doing, try noting what the first compile error is, and typing it here in this thread. You can also send me the file you're trying to compile at beaver@zombieworld.com, and I'll take a look at it for you and see if I can figure out what the deal is. We'll get you goin' on this, m'man!
the dark and gritty...Ice Cream Jonsey!

Tony Vaz
Posts: 4
Joined: Sat Mar 08, 2003 1:11 pm

Post by Tony Vaz »

Thanx u all 4 such a quick reply!! :smile: I'm gonna try all of ur suggestions & if I still can't get this right, I'll mail u, Ice Cream.
Thanx again.

Tony Vaz
Posts: 4
Joined: Sat Mar 08, 2003 1:11 pm

Post by Tony Vaz »

I DID IT!!! I COMPILED!!! Ok, get a grip on urself... The answer was real simple: to put the sample with the rest of the library files, and get Hugo to know where to find these.
Thanx again 4 helping me out on this.

Post Reply