Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] splitting BUILD

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire] splitting BUILD
  • Date: Tue, 16 Mar 2004 09:49:19 -0800

> Quoting Mads Laursen <dossen+sgl AT daimi.au.dk>:
> > If I may make an observation: One important difference between the old
> > and the new style is whether BUILD runs prepare_install. Could this be
> > detected, or is the layering of processes such that cast cannot detect
> > that prepare_install has been run? If it can be detected, then the
> > choice between styles can be defered till after BUILD.
> >
> > Just my (currency) a_small_amount
>
> We could just test for "INSTALL", and if it exists, run BUILD as the new
> style,
> and if not, use the old style BUILD (i.e. no prepare_install after BUILD,
> but
> during), that would (IIRC) allow us to keep the BUILD file named the same.
>
> -sandalle
>

This whole problem is more elegantly solved by placing a grimoire version
file at the head of every tree. I believe it is easy to figure out what
grimoire a spell is being cast from during pass 4 (where this stuff
happens), Dufflebunk can you confirm the existance of said function? So
one could just source that file to determine what version of cast_spells
to run.

Alternatively (and perhaps more dangerously) the script could contain the
cast_spells function instead of a version number. And whichever one is
appropriate to that grimoire would be there and it would a set of
pre-defined API functions (a different api than the spell one of
course). And going _even_ further, it could override some of the sorcery
api if necessary. Something to think about.


-Andrew
--
________________________________________________________________________
|Andrew D. Stitt | astitt AT sourcemage.org |
|irc: afrayedknot | afrayedknot AT t.armory.com |
|aim: thefrayedknot or iteratorplusplus | |
|Grimoire Guru ham/smgl, Porting Team Lead | ftp://t.armory.com |
|Author and Maintainer of Prometheus | |
-------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page