I'm trying a sample with Hugo and something is missing

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: I'm trying a sample with Hugo and something is missing

Re: I'm trying a sample with Hugo and something is missing

by Ice Cream Jonsey » Tue Sep 20, 2011 12:29 pm

Tdarcos wrote:I notice one immediately glaring omission in the Hugo programming language. Include files.

Apparently you can't break up a hugo source into multiple source files and then include them. Even Turbo Pascal version 3 supported this, and I find the omission strange.
No, you can. I ended up with this for my last game:

Code: Select all

#include "verblib.g"					! grammar must come first
#include "hugolib.h"					! standard library routines
#include "contain.h"
#include "system.h"
#include "window.h"
#include "resource.h"
#include "cango.h"
#include "config.hug"
#include "jObjects.hug"
#include "jSceneryLibrary.hug"
#include "jScenery.hug"
#include "jPluralClass.hug"
#include "jVats.hug"
#include "jDaemons.hug"
#include "jIdleDaemons.hug"
#include "jTwinDaemon.hug"
Some of those I made myself and some of those I grabbed from other sources.

This SHELL.HUG file is what a lot of people use to get started. There's an example of including libraries in it:

http://ifarchive.heanet.ie/if-archive/p ... /shell.hug

We will help you with all our might, Commander!

I'm trying a sample with Hugo and something is missing

by Tdarcos » Tue Sep 20, 2011 10:35 am

I notice one immediately glaring omission in the Hugo programming language. Include files.

Apparently you can't break up a hugo source into multiple source files and then include them. Even Turbo Pascal version 3 supported this, and I find the omission strange.

Top