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
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: Ice Cream Jonsey, AArdvark, Kent

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

Beta.h extension crediting compatibility problem

Post by Bainespal » Thu Mar 14, 2013 11:00 am

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:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:59:  Error:  Unknown compiler directive:  version_obj
C:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:60:  Error:  Unknown compiler directive:  {
C:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:61:  Error:  Unknown compiler directive:  in
C:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:62:  Error:  Unknown compiler directive:  desc_detail
C:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:63:  Error:  Unknown compiler directive:  " by Bert Byfield, Mike Snyder, and Roody Yogurt"
C:\Documents and Settings\Bainespal\IF\Hugo\Library\beta.h:64:  Error:  Unknown compiler directive:  }
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

Post by Roody_Yogurt » Thu Mar 14, 2013 11:17 am

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

Post by Roody_Yogurt » Thu Mar 14, 2013 2:11 pm

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
version_obj follow_version "Follow Version 2.0"
{
	in included_extensions
	desc_detail
		" by Kent Tessman";
}
#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

Post by Bainespal » Thu Mar 14, 2013 3:18 pm

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

Post by Roody_Yogurt » Thu Mar 14, 2013 3:22 pm

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

Post by aron123 » Thu Oct 09, 2014 2:28 am

Thanks for share....

Post Reply