Beta.h extension crediting compatibility problem

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page

Moderators: Ice Cream Jonsey, AArdvark, Kent

Bainespal
Posts: 151
Joined: Fri Jul 09, 2010 8:59 am

Beta.h extension crediting compatibility problem

As of the latest updates to Roodylib, newmenu.h and beta.h, when I compile with both BETA and USE_EXTENSION_CREDITING set, I get these errors:

Code: Select all

C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;59&#58;  Error&#58;  Unknown compiler directive&#58;  version_obj
C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;60&#58;  Error&#58;  Unknown compiler directive&#58;  &#123;
C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;61&#58;  Error&#58;  Unknown compiler directive&#58;  in
C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;62&#58;  Error&#58;  Unknown compiler directive&#58;  desc_detail
C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;63&#58;  Error&#58;  Unknown compiler directive&#58;  " by Bert Byfield, Mike Snyder, and Roody Yogurt"
C&#58;\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h&#58;64&#58;  Error&#58;  Unknown compiler directive&#58;  &#125;
When I comment out either of the lines to unset one or the other of those two settings, the game compiles. So, it appeas that the current version of Beta.h is incompatible with the code for the new extension crediting feature.

Roody_Yogurt
Posts: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee
I would guess that "beta.h" was included before "roodylib.h". Is this not the case?

Roody_Yogurt
Posts: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee
I added this code to all extensions with crediting:

Code: Select all

#ifset USE_EXTENSION_CREDITING
#ifclear _ROODYLIB_H
#message error "Extension crediting requires \"roodylib.h\". Be sure to include it first!"
#endif
&#123;
in included_extensions
desc_detail
" by Kent Tessman";
&#125;
#endif
I don't think it's quite important enough to merit a new upload of everything, but it'll be in all future releases (and is already up on the bitbucket pages).

Bainespal
Posts: 151
Joined: Fri Jul 09, 2010 8:59 am
Roody_Yogurt wrote:I would guess that "beta.h" was included before "roodylib.h". Is this not the case?
Yes, that was the problem. I now have beta.h included directly after roodylib.h. I've actually been pretty confused about where I should include beta.h, because I upgraded my source file to include the Roodylib routines after originally building it off of the standard shell. I'm particularly confused by this from the beta.h documentation:
If you are including "roodylib" and have an init routine that calls Init_Calls, you don't need to do anything.
I've looked at Init_Calls, and it doesn't appear to have anything to do with beta.h. I don't understand.

Roody_Yogurt
Posts: 1993
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee
Yeah, I can see how this might be confusing. If you weren't using RoodyLib, you'd have to add a call to BetaInit in your init routine.

The documentation is trying to explain that if you are using a roodylib-utilizing shell that calls Roodylib's Init_Calls routine (like the shells distributed with RoodyLib do), you don't need to do anything other than include the "beta.h" file. Roodylib handles everything else.

aron123
Thanks for share....