Another strange thing...
Posted: Tue Feb 08, 2005 7:04 pm
**EDIT**
Well, it's working now. So, like, nevermind. I'd write up what the problem was, except I still don't know. I wasn't changing code at all, just compiling, running, deleting incorrect .hex, repeat, and suddenly it started to work.
Thanks to my ANONYMOUS BENEFACTOR for his kind assistance.
Okay, so I'm doing the time-honored thing of ripping off Kent's code and sticking it into my own to see what happens.
In this case, it's from Guilty Bastards: a simple 'version' routine:
So. I stick 'Version' into my init routine, and the routine itself (changing the game/author name to my own) below the main routine (see end of message for my init), and the code does two things:
1) Describes the first room first. ("Empty room". This is a very empty room..")
2) Immediately after that, executes 'Version', but with GB/Kent still in the credits.
[edit] and 3) running the .hdx file through the debugger displays correctly. The engine isn't.
Is this some diabolical Tessmanian plot? What gives?
My Init routine:
Well, it's working now. So, like, nevermind. I'd write up what the problem was, except I still don't know. I wasn't changing code at all, just compiling, running, deleting incorrect .hex, repeat, and suddenly it started to work.
Thanks to my ANONYMOUS BENEFACTOR for his kind assistance.
Okay, so I'm doing the time-honored thing of ripping off Kent's code and sticking it into my own to see what happens.
In this case, it's from Guilty Bastards: a simple 'version' routine:
Code: Select all
routine Version
{
color LIGHT_RED
"\BGuilty Bastards\b"
color TEXTCOLOR
"Copyright (c) 1998 by Kent Tessman"
print "\nRelease "; RELEASE; " "; serial$;
#ifset BETA_TEST
" \B(beta-test version)\b"
#endif
print newline
"Written using the Hugo Compiler ";
print HUGO_VERSION
"\B(New players should type \"help\".)\b"
#ifset BETA_TEST
"\n\B(NOTE: This beta release is intended for testing only, not for
distribution to the general public. Please report any errors,
bugs, etc. to the author.)\b"
#endif
#ifset DEBUG
"\n\B(Compiled with DEBUG set)\b"
#endif
}
1) Describes the first room first. ("Empty room". This is a very empty room..")
2) Immediately after that, executes 'Version', but with GB/Kent still in the credits.
[edit] and 3) running the .hdx file through the debugger displays correctly. The engine isn't.
Is this some diabolical Tessmanian plot? What gives?
My Init routine:
Code: Select all
routine Init
{
display.title_caption = "Red River and Gulf"
counter = -1 ! Player will start at turn 0.
STATUSTYPE = 2 ! Display time.
TEXTCOLOR = BRIGHT_WHITE
BGCOLOR = DARK_GRAY
color TEXTCOLOR, BGCOLOR
cls
Version
prompt = ">"
player = you
location = emptyroom
old_location = location ! store player's last location before
! the current one.
move player to location
FindLight (location) ! Dispels darkness in the start room
DescribePlace (location) ! Forces room title to appear without ! typing 'look' first.
location is visited ! room has been visited
#ifset USE_PLURAL_OBJECTS
InitPluralObjects
#endif
}